From: Bert Vermeulen Date: Sun, 22 Jul 2012 13:15:26 +0000 (+0200) Subject: sr: cosmetic changes X-Git-Tag: dsupstream~773 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=c7ee3ddb948b2ff36acbbe79ecc812b477ff5708 sr: cosmetic changes --- diff --git a/device.c b/device.c index 98e9fdac..3f0b60d0 100644 --- a/device.c +++ b/device.c @@ -348,18 +348,12 @@ SR_API int sr_dev_trigger_remove_all(struct sr_dev *dev) * If the specified probe of this device already has a trigger, it will * be silently replaced. * - * TODO: Better description. - * TODO: Describe valid format of the 'trigger' string. - * - * @param dev TODO. Must not be NULL. - * @param probenum The number of the probe. TODO. + * @param sdi Must not be NULL. + * @param probenum The number of the probe. * Note that the probe numbers start at 1 (not 0!). - * @param trigger TODO. - * TODO: Is NULL allowed? + * @param trigger trigger string, in the format used by sigrok-cli * - * @return SR_OK upon success, SR_ERR_ARG upon invalid arguments, or SR_ERR - * upon other errors. - * If something other than SR_OK is returned, 'dev' is unchanged. + * @return SR_OK upon success, SR_ERR_ARG upon invalid arguments. */ SR_API int sr_dev_trigger_set(const struct sr_dev_inst *sdi, int probenum, const char *trigger)