X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=source%2Fdrv-api.c;h=6a1c20c70b8328a7fa2fcb7e6a1cdc237dc78562;hb=ce4722e3215c0e94497312a30f792226eefd7571;hp=3444fd6693b4a7b607340755f360c088a35fe5e4;hpb=2736322a2a526a82e02316548c7c08cb33fd7cd8;p=sigrok-util.git diff --git a/source/drv-api.c b/source/drv-api.c index 3444fd6..6a1c20c 100644 --- a/source/drv-api.c +++ b/source/drv-api.c @@ -20,6 +20,8 @@ #include #include "protocol.h" +static struct sr_dev_driver {lib}_driver_info; + static GSList *scan(struct sr_dev_driver *di, GSList *options) {{ struct drv_context *drvc; @@ -131,7 +133,7 @@ static int dev_acquisition_stop(struct sr_dev_inst *sdi) return SR_OK; }} -SR_PRIV struct sr_dev_driver {lib}_driver_info = {{ +static struct sr_dev_driver {lib}_driver_info = {{ .name = "{short}", .longname = "{name}", .api_version = 1, @@ -149,5 +151,4 @@ SR_PRIV struct sr_dev_driver {lib}_driver_info = {{ .dev_acquisition_stop = dev_acquisition_stop, .context = NULL, }}; - SR_REGISTER_DEV_DRIVER({lib}_driver_info);