sr: use SR_T_RATIONAL_PERIOD (new-style types)

SR_T_<type>_<parsehint>
This commit is contained in:
Bert Vermeulen 2012-05-16 02:07:51 +02:00
parent ebb781a69f
commit c1e486185e
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ SR_API struct sr_hwcap_option sr_hwcap_options[] = {
{SR_HWCAP_HORIZ_TRIGGERPOS, SR_T_FLOAT, "Horizontal trigger position", {SR_HWCAP_HORIZ_TRIGGERPOS, SR_T_FLOAT, "Horizontal trigger position",
"horiz_triggerpos"}, "horiz_triggerpos"},
{SR_HWCAP_BUFFERSIZE, SR_T_UINT64, "Buffer size", "buffersize"}, {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"}, {SR_HWCAP_FILTER, SR_T_CHAR, "Filter targets", "filter"},
{0, 0, NULL, NULL}, {0, 0, NULL, NULL},
}; };

View File

@ -143,7 +143,7 @@ enum {
SR_T_CHAR, SR_T_CHAR,
SR_T_BOOL, SR_T_BOOL,
SR_T_FLOAT, SR_T_FLOAT,
SR_T_RATIONAL, SR_T_RATIONAL_PERIOD,
}; };
struct sr_rational { struct sr_rational {