]> sigrok.org Git - libsigrok.git/blobdiff - strutil.c
Add sr_ prefix for 'struct probe'.
[libsigrok.git] / strutil.c
index b8eb0f8e4b78c77ac34931f7caa3d2af173a0315..955adedbe5863041fea9cbe662b57f0527352346 100644 (file)
--- a/strutil.c
+++ b/strutil.c
@@ -99,7 +99,7 @@ char *sr_period_string(uint64_t frequency)
 char **sr_parse_triggerstring(struct sr_device *device, const char *triggerstring)
 {
        GSList *l;
-       struct probe *probe;
+       struct sr_probe *probe;
        int max_probes, probenum, i;
        char **tokens, **triggerlist, *trigger, *tc, *trigger_types;
        gboolean error;
@@ -117,7 +117,7 @@ char **sr_parse_triggerstring(struct sr_device *device, const char *triggerstrin
                        /* Named probe */
                        probenum = 0;
                        for (l = device->probes; l; l = l->next) {
-                               probe = (struct probe *)l->data;
+                               probe = (struct sr_probe *)l->data;
                                if (probe->enabled
                                    && !strncmp(probe->name, tokens[i],
                                                strlen(probe->name))) {