From: Uwe Hermann Date: Sat, 18 Jul 2015 16:11:54 +0000 (+0200) Subject: new-driver: Update for recent changes. X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-util.git;a=commitdiff_plain;h=f03716cf91a1d292abd0a5aba7027f74af99ee80;ds=sidebyside new-driver: Update for recent changes. --- diff --git a/source/drv-api.c b/source/drv-api.c index e356ed1..20ac9c7 100644 --- a/source/drv-api.c +++ b/source/drv-api.c @@ -34,7 +34,7 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options) (void)options; devices = NULL; - drvc = di->priv; + drvc = di->context; drvc->instances = NULL; /* TODO: scan for devices, either based on a SR_CONF_CONN option @@ -45,7 +45,7 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options) static GSList *dev_list(const struct sr_dev_driver *di) { - return ((struct drv_context *)(di->priv))->instances; + return ((struct drv_context *)(di->context))->instances; } static int dev_clear(const struct sr_dev_driver *di) @@ -186,5 +186,5 @@ SR_PRIV struct sr_dev_driver ${lib}_driver_info = { .dev_close = dev_close, .dev_acquisition_start = dev_acquisition_start, .dev_acquisition_stop = dev_acquisition_stop, - .priv = NULL, + .context = NULL, };