sr: move SR_HWOPT into its own enum, and create struct sr_hwopt
authorBert Vermeulen <bert@biot.com>
Sun, 8 Jul 2012 12:56:54 +0000 (14:56 +0200)
committerBert Vermeulen <bert@biot.com>
Fri, 3 Aug 2012 08:27:37 +0000 (10:27 +0200)
commit964fbaa39b0ba44bb41a6592b91157c40c0e7129
tree6ca0813c8f28e2bb950e1b030344a6c916c1c95b
parentdcee1d5b8b7ae0ad8c047cb7321d06ac1c1ce08b
sr: move SR_HWOPT into its own enum, and create struct sr_hwopt

SR_HWOPT_* entries are driver options, not device instance parameters, so
they will never be mixed together.

Also, driver options are always passed in a GSList, where the data field
is a struct sr_hwopt.
libsigrok/hwdriver.c
libsigrok/libsigrok.h