scpi/gpib: Rename backend to scpi_libgpib.
libgpib is the userspace component to linux-gpib's kernel modules that implement low-level interface drivers. When libsigrok gets userspace GPIB interface drivers, that backend will be the "official" scpi_gpib.
This commit is contained in:
parent
d6e63a2c68
commit
7343ad1ec7
|
@ -93,7 +93,7 @@ libsigrok_la_SOURCES += \
|
|||
endif
|
||||
if NEED_GPIB
|
||||
libsigrok_la_SOURCES += \
|
||||
src/scpi/scpi_gpib.c
|
||||
src/scpi/scpi_libgpib.c
|
||||
endif
|
||||
|
||||
# Hardware (DMM chip parsers)
|
||||
|
|
|
@ -71,7 +71,7 @@ SR_PRIV extern const struct sr_scpi_dev_inst scpi_tcp_rigol_dev;
|
|||
SR_PRIV extern const struct sr_scpi_dev_inst scpi_usbtmc_libusb_dev;
|
||||
SR_PRIV extern const struct sr_scpi_dev_inst scpi_vxi_dev;
|
||||
SR_PRIV extern const struct sr_scpi_dev_inst scpi_visa_dev;
|
||||
SR_PRIV extern const struct sr_scpi_dev_inst scpi_gpib_dev;
|
||||
SR_PRIV extern const struct sr_scpi_dev_inst scpi_libgpib_dev;
|
||||
|
||||
static const struct sr_scpi_dev_inst *scpi_devs[] = {
|
||||
&scpi_tcp_raw_dev,
|
||||
|
@ -86,7 +86,7 @@ static const struct sr_scpi_dev_inst *scpi_devs[] = {
|
|||
&scpi_visa_dev,
|
||||
#endif
|
||||
#ifdef HAVE_LIBGPIB
|
||||
&scpi_gpib_dev,
|
||||
&scpi_libgpib_dev,
|
||||
#endif
|
||||
#ifdef HAVE_LIBSERIALPORT
|
||||
&scpi_serial_dev, /* must be last as it matches any resource */
|
||||
|
|
|
@ -149,9 +149,9 @@ static void scpi_gpib_free(void *priv)
|
|||
g_free(gscpi->name);
|
||||
}
|
||||
|
||||
SR_PRIV const struct sr_scpi_dev_inst scpi_gpib_dev = {
|
||||
SR_PRIV const struct sr_scpi_dev_inst scpi_libgpib_dev = {
|
||||
.name = "GPIB",
|
||||
.prefix = "gpib",
|
||||
.prefix = "libgpib",
|
||||
.priv_size = sizeof(struct scpi_gpib),
|
||||
.dev_inst_new = scpi_gpib_dev_inst_new,
|
||||
.open = scpi_gpib_open,
|
Loading…
Reference in New Issue