sr: use SR_T_RATIONAL_PERIOD (new-style types)
SR_T_<type>_<parsehint>
This commit is contained in:
parent
ebb781a69f
commit
c1e486185e
|
@ -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},
|
||||||
};
|
};
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue