]> sigrok.org Git - libsigrok.git/commitdiff
sr: s/sr_dev_probe_name/sr_dev_probe_name_set/.
authorUwe Hermann <redacted>
Wed, 29 Feb 2012 18:17:36 +0000 (19:17 +0100)
committerUwe Hermann <redacted>
Thu, 1 Mar 2012 22:49:24 +0000 (23:49 +0100)
device.c
session_file.c
sigrok-proto.h

index 24ec602f90a21686bb42da96d712af4df36b73c3..5f8d5ed2a0f423cce66a4a1520b626ec81808fe4 100644 (file)
--- a/device.c
+++ b/device.c
@@ -238,8 +238,6 @@ SR_API struct sr_probe *sr_dev_probe_find(const struct sr_dev *dev,
  * If the probe already has a different name assigned to it, it will be
  * removed, and the new name will be saved instead.
  *
- * TODO: Rename to sr_dev_probe_name_set().
- *
  * @param dev TODO
  * @param probenum The number of the probe whose name to set.
  *                 Note that the probe numbers start at 1 (not 0!).
@@ -249,8 +247,8 @@ SR_API struct sr_probe *sr_dev_probe_find(const struct sr_dev *dev,
  *         upon other errors.
  *         If something other than SR_OK is returned, 'dev' is unchanged.
  */
-SR_API int sr_dev_probe_name(struct sr_dev *dev, int probenum,
-                            const char *name)
+SR_API int sr_dev_probe_name_set(struct sr_dev *dev, int probenum,
+                                const char *name)
 {
        struct sr_probe *p;
 
index ca639cd555347354b17587897ee37d45171e17ac..7f4e6e182d0210e16fc704308a13a517d95e5dca 100644 (file)
@@ -139,7 +139,7 @@ SR_API int sr_session_load(const char *filename)
                                                continue;
                                        enabled_probes++;
                                        tmp_u64 = strtoul(keys[j]+5, NULL, 10);
-                                       sr_dev_probe_name(dev, tmp_u64, val);
+                                       sr_dev_probe_name_set(dev, tmp_u64, val);
                                } else if (!strncmp(keys[j], "trigger", 7)) {
                                        probenum = strtoul(keys[j]+7, NULL, 10);
                                        sr_dev_trigger_set(dev, probenum, val);
index 80d15ce955a393ac13ad72c4bd991f6d29a768e3..ea9f53be3b88d175cc5849402968e4dd0ba7d0f2 100644 (file)
@@ -28,7 +28,7 @@ SR_API int sr_exit(void);
 /*--- log.c -----------------------------------------------------------------*/
 
 typedef int (*sr_log_handler_t)(void *data, int loglevel, const char *format,
-                                va_list args);
+                               va_list args);
 
 SR_API int sr_log_loglevel_set(int loglevel);
 SR_API int sr_log_loglevel_get(void);
@@ -54,8 +54,8 @@ SR_API struct sr_dev *sr_dev_new(const struct sr_dev_driver *driver,
 SR_API int sr_dev_probe_add(struct sr_dev *dev, const char *name);
 SR_API struct sr_probe *sr_dev_probe_find(const struct sr_dev *dev,
                                          int probenum);
-SR_API int sr_dev_probe_name(struct sr_dev *dev, int probenum,
-                            const char *name);
+SR_API int sr_dev_probe_name_set(struct sr_dev *dev, int probenum,
+                                const char *name);
 SR_API int sr_dev_trigger_clear(struct sr_dev *dev);
 SR_API int sr_dev_trigger_set(struct sr_dev *dev, int probenum,
                              const char *trigger);