*/
#include <config.h>
-#include <libserialport.h>
#include <scpi.h>
#include <string.h>
#include "protocol.h"
-SR_PRIV struct sr_dev_driver rohde_schwarz_sme_0x_driver_info;
+static struct sr_dev_driver rohde_schwarz_sme_0x_driver_info;
static const char *manufacturer = "Rohde&Schwarz";
return SR_OK;
}
-static struct sr_dev_inst *rs_probe_serial_device(struct sr_scpi_dev_inst *scpi)
+static struct sr_dev_inst *probe_device(struct sr_scpi_dev_inst *scpi)
{
struct sr_dev_inst *sdi;
struct dev_context *devc;
static GSList *scan(struct sr_dev_driver *di, GSList *options)
{
- return sr_scpi_scan(di->context, options, rs_probe_serial_device);
+ return sr_scpi_scan(di->context, options, probe_device);
}
static int dev_open(struct sr_dev_inst *sdi)
return STD_CONFIG_LIST(key, data, sdi, cg, scanopts, drvopts, devopts);
}
-SR_PRIV struct sr_dev_driver rohde_schwarz_sme_0x_driver_info = {
+static struct sr_dev_driver rohde_schwarz_sme_0x_driver_info = {
.name = "rohde-schwarz-sme-0x",
.longname = "Rohde&Schwarz SME-0x",
.api_version = 1,
.dev_acquisition_stop = std_serial_dev_acquisition_stop,
.context = NULL,
};
-
SR_REGISTER_DEV_DRIVER(rohde_schwarz_sme_0x_driver_info);