From 067d07166b8637a4146058b4fb4da2d628b34c37 Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Sat, 14 Jul 2012 15:49:30 +0200 Subject: [PATCH] demo: use new scan API --- hardware/demo/demo.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/hardware/demo/demo.c b/hardware/demo/demo.c index cdd4d1d3..8f7bfb29 100644 --- a/hardware/demo/demo.c +++ b/hardware/demo/demo.c @@ -149,9 +149,13 @@ static int hw_init(void) return SR_OK; } -static int hw_scan(void) +static GSList *hw_scan(GSList *options) { struct sr_dev_inst *sdi; + GSList *devices; + + (void)options; + devices = NULL; sdi = sr_dev_inst_new(0, SR_ST_ACTIVE, DEMONAME, NULL, NULL); if (!sdi) { @@ -159,9 +163,10 @@ static int hw_scan(void) return 0; } + devices = g_slist_append(devices, sdi); ddi->instances = g_slist_append(ddi->instances, sdi); - return 1; + return devices; } static int hw_dev_open(int dev_index)