From: Uwe Hermann Date: Wed, 19 Jan 2011 00:16:19 +0000 (+0100) Subject: Move more non-public headers to sigrok-internal.h. X-Git-Tag: libsigrok-0.1.0~405 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=058b70353dd462ab13f3badb43f2fea697161bd7;p=libsigrok.git Move more non-public headers to sigrok-internal.h. --- diff --git a/hardware/saleae-logic/saleae-logic.c b/hardware/saleae-logic/saleae-logic.c index ba50ee94..be4892a7 100644 --- a/hardware/saleae-logic/saleae-logic.c +++ b/hardware/saleae-logic/saleae-logic.c @@ -24,6 +24,7 @@ #include #include #include +#include #include "config.h" #define USB_VENDOR 0x0925 diff --git a/sigrok-internal.h b/sigrok-internal.h index e8b6fc13..bf806313 100644 --- a/sigrok-internal.h +++ b/sigrok-internal.h @@ -20,6 +20,8 @@ #ifndef SIGROK_SIGROK_INTERNAL_H #define SIGROK_SIGROK_INTERNAL_H +/*--- hardware/common/serial.c ----------------------------------------------*/ + GSList *list_serial_ports(void); int serial_open(const char *pathname, int flags); int serial_close(int fd); @@ -31,4 +33,20 @@ void serial_restore_params(int fd, void *backup); int serial_set_params(int fd, int speed, int bits, int parity, int stopbits, int flowcontrol); +/*--- hardware/common/ezusb.c -----------------------------------------------*/ + +int ezusb_reset(struct libusb_device_handle *hdl, int set_clear); +int ezusb_install_firmware(libusb_device_handle *hdl, char *filename); +int ezusb_upload_firmware(libusb_device *dev, int configuration, + const char *filename); + +/*--- hardware/common/misc.c ------------------------------------------------*/ + +int opendev2(int device_index, struct sigrok_device_instance **sdi, + libusb_device *dev, struct libusb_device_descriptor *des, + int *skip, uint16_t vid, uint16_t pid, int interface); +int opendev3(struct sigrok_device_instance **sdi, libusb_device *dev, + struct libusb_device_descriptor *des, + uint16_t vid, uint16_t pid, int interface); + #endif diff --git a/sigrok-proto.h b/sigrok-proto.h index 3ac30dfa..1abdadd8 100644 --- a/sigrok-proto.h +++ b/sigrok-proto.h @@ -114,23 +114,6 @@ void session_bus(struct device *device, struct datafeed_packet *packet); void make_metadata(char *filename); int session_save(char *filename); -/*--- hardware/common/ezusb.c -----------------------------------------------*/ - -int ezusb_reset(struct libusb_device_handle *hdl, int set_clear); -int ezusb_install_firmware(libusb_device_handle *hdl, char *filename); -int ezusb_upload_firmware(libusb_device *dev, int configuration, - const char *filename); - -/*--- hardware/common/misc.c ------------------------------------------------*/ - -/* TODO: Should not be public. */ -int opendev2(int device_index, struct sigrok_device_instance **sdi, - libusb_device *dev, struct libusb_device_descriptor *des, - int *skip, uint16_t vid, uint16_t pid, int interface); -int opendev3(struct sigrok_device_instance **sdi, libusb_device *dev, - struct libusb_device_descriptor *des, - uint16_t vid, uint16_t pid, int interface); - /*--- input/input.c ---------------------------------------------------------*/ struct input_format **input_list(void);