X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=libsigrok-internal.h;fp=libsigrok-internal.h;h=90e40342518d3da1c41dddf2338333d74cb1ced3;hb=b541f8376d8fadb1377e3140c3d79304f5d680ec;hp=951d91d9542eb2c69afccbd6c7b5547ef03d5136;hpb=17bdda58686a208424520b64f9324eba259ff535;p=libsigrok.git diff --git a/libsigrok-internal.h b/libsigrok-internal.h index 951d91d9..90e40342 100644 --- a/libsigrok-internal.h +++ b/libsigrok-internal.h @@ -374,6 +374,7 @@ SR_PRIV int sr_serial_extract_options(GSList *options, const char **serial_devic SR_PRIV int serial_source_add(struct sr_serial_dev_inst *serial, int events, int timeout, sr_receive_data_callback_t cb, void *cb_data); SR_PRIV int serial_source_remove(struct sr_serial_dev_inst *serial); +SR_PRIV GSList *sr_serial_find_usb(uint16_t vendor_id, uint16_t product_id); #endif /*--- hardware/common/ezusb.c -----------------------------------------------*/ @@ -438,6 +439,7 @@ struct sr_scpi_dev_inst { const char *name; const char *prefix; int priv_size; + GSList *(*scan)(struct drv_context *drvc); int (*dev_inst_new)(void *priv, struct drv_context *drvc, const char *resource, char **params, const char *serialcomm); int (*open)(void *priv); @@ -453,6 +455,8 @@ struct sr_scpi_dev_inst { void *priv; }; +SR_PRIV GSList *sr_scpi_scan(struct drv_context *drvc, GSList *options, + struct sr_dev_inst *(*probe_device)(struct sr_scpi_dev_inst *scpi)); SR_PRIV struct sr_scpi_dev_inst *scpi_dev_inst_new(struct drv_context *drvc, const char *resource, const char *serialcomm); SR_PRIV int sr_scpi_open(struct sr_scpi_dev_inst *scpi);