X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fdemo%2Fdemo.c;h=aa3f57d4a919f8c920aab54864531b0af68c8cca;hb=f9a69557d276ee27d551eb9ef68f2700324613b4;hp=448c148bef15744f94ef643d9ae0a35e6907def5;hpb=69040b7c8ff82aef2ad712b7881492d0fa4c86a8;p=libsigrok.git diff --git a/hardware/demo/demo.c b/hardware/demo/demo.c index 448c148b..aa3f57d4 100644 --- a/hardware/demo/demo.c +++ b/hardware/demo/demo.c @@ -125,6 +125,9 @@ static uint8_t pattern_sigrok[] = { 0xbe, 0xbe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; +/* Private, per-device-instance driver context. */ +/* TODO: struct context as with the other drivers. */ + /* List of struct sr_dev_inst, maintained by dev_open()/dev_close(). */ static GSList *dev_insts = NULL; static uint64_t cur_samplerate = SR_KHZ(200); @@ -227,7 +230,7 @@ static int *hw_hwcap_get_all(void) return hwcaps; } -static int hw_config_set(int dev_index, int hwcap, void *value) +static int hw_dev_config_set(int dev_index, int hwcap, void *value) { int ret; char *stropt; @@ -500,7 +503,7 @@ SR_PRIV struct sr_dev_plugin demo_plugin_info = { .dev_info_get = hw_dev_info_get, .dev_status_get = hw_dev_status_get, .hwcap_get_all = hw_hwcap_get_all, - .config_set = hw_config_set, + .dev_config_set = hw_dev_config_set, .dev_acquisition_start = hw_dev_acquisition_start, .dev_acquisition_stop = hw_dev_acquisition_stop, };