]> sigrok.org Git - libsigrok.git/commitdiff
sr: use SR_T_RATIONAL_PERIOD (new-style types)
authorBert Vermeulen <redacted>
Wed, 16 May 2012 00:07:51 +0000 (02:07 +0200)
committerBert Vermeulen <redacted>
Wed, 30 May 2012 21:56:12 +0000 (23:56 +0200)
SR_T_<type>_<parsehint>

hwdriver.c
sigrok.h.in

index 5e9cb02f51fdb64c4e08b08bdde0b286127abbeb..1103901612c89e914a97c80df0ec3402f39a4066 100644 (file)
@@ -41,7 +41,7 @@ SR_API struct sr_hwcap_option sr_hwcap_options[] = {
        {SR_HWCAP_HORIZ_TRIGGERPOS, SR_T_FLOAT, "Horizontal trigger position",
                        "horiz_triggerpos"},
        {SR_HWCAP_BUFFERSIZE, SR_T_UINT64, "Buffer size", "buffersize"},
-       {SR_HWCAP_TIMEBASE, SR_T_RATIONAL, "Time base", "timebase"},
+       {SR_HWCAP_TIMEBASE, SR_T_RATIONAL_PERIOD, "Time base", "timebase"},
        {SR_HWCAP_FILTER, SR_T_CHAR, "Filter targets", "filter"},
        {0, 0, NULL, NULL},
 };
index 7da26b2f25ae31551b38ae7eeddad676c9696305..8ff1b092dbf23508affe1177cc44f9f181ad3da9 100644 (file)
@@ -143,7 +143,7 @@ enum {
        SR_T_CHAR,
        SR_T_BOOL,
        SR_T_FLOAT,
-       SR_T_RATIONAL,
+       SR_T_RATIONAL_PERIOD,
 };
 
 struct sr_rational {