X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-util.git;a=blobdiff_plain;f=source%2Fdrv-api.c;h=824027f962c9c265746ea73e96e736fa4c6c9fea;hp=e356ed13192cd98e0fa969718a527a3db5fa02b2;hb=4dfd6eced5f2a8c5136bee4d76f25ef304bee643;hpb=87604b0c3ec0115a89921039ff12a6fa4606ddcb
diff --git a/source/drv-api.c b/source/drv-api.c
index e356ed1..824027f 100644
--- a/source/drv-api.c
+++ b/source/drv-api.c
@@ -17,6 +17,7 @@
* along with this program. If not, see .
*/
+#include
#include "protocol.h"
SR_PRIV struct sr_dev_driver ${lib}_driver_info;
@@ -34,7 +35,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 +46,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 +187,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,
};