]> sigrok.org Git - libsigrok.git/commitdiff
move function declarations to the appropriate header
authorAurelien Jacobs <redacted>
Tue, 14 Jan 2014 22:38:23 +0000 (23:38 +0100)
committerAurelien Jacobs <redacted>
Tue, 14 Jan 2014 22:39:23 +0000 (23:39 +0100)
hardware/brymen-dmm/protocol.c
hardware/brymen-dmm/protocol.h
hardware/lascar-el-usb/api.c
hardware/lascar-el-usb/protocol.h

index 230b60d38cce655c872d0a97c772ed01052f4bf9..4c33076afa1a6ea6d64834dd671e1505c6e6b648 100644 (file)
 
 #include "protocol.h"
 
-/* parser.c */
-SR_PRIV int sr_brymen_parse(const uint8_t *buf, float *floatval,
-                           struct sr_datafeed_analog *analog, void *info);
-
 static void handle_packet(const uint8_t *buf, struct sr_dev_inst *sdi)
 {
        float floatval;
index e6d2e560d66f1b88938a2cf0558ebae5077bb0a4..1270ecb60a7f2ae20c8e0e7372b1701d4e32ce9e 100644 (file)
@@ -76,6 +76,9 @@ SR_PRIV int brymen_packet_request(struct sr_serial_dev_inst *serial);
 SR_PRIV int brymen_packet_length(const uint8_t *buf, int *len);
 SR_PRIV gboolean brymen_packet_is_valid(const uint8_t *buf);
 
+SR_PRIV int sr_brymen_parse(const uint8_t *buf, float *floatval,
+                           struct sr_datafeed_analog *analog, void *info);
+
 SR_PRIV int brymen_stream_detect(struct sr_serial_dev_inst *serial,
                                 uint8_t *buf, size_t *buflen,
                                 packet_length_t get_packet_size,
index 74fd1e71ef6f61b1670e04282ad7f978fd06fb2c..bf5654cbdf61f245aba3c5b0e872ad70652f2302 100644 (file)
@@ -23,7 +23,6 @@
 #include "libsigrok-internal.h"
 #include "protocol.h"
 
-SR_PRIV struct sr_dev_inst *lascar_scan(int bus, int address);
 SR_PRIV struct sr_dev_driver lascar_el_usb_driver_info;
 static struct sr_dev_driver *di = &lascar_el_usb_driver_info;
 
index 4386ef4b5214e5c4afe1e16be1ecb25e85be087a..a94bd8a59da2c6c51b7b418045edf6b547cab170 100644 (file)
@@ -69,6 +69,7 @@ struct elusb_profile {
 
 SR_PRIV int lascar_get_config(libusb_device_handle *dev_hdl,
                unsigned char *configblock, int *configlen);
+SR_PRIV struct sr_dev_inst *lascar_scan(int bus, int address);
 SR_PRIV int lascar_el_usb_handle_events(int fd, int revents, void *cb_data);
 SR_PRIV void lascar_el_usb_receive_transfer(struct libusb_transfer *transfer);
 SR_PRIV int lascar_start_logging(const struct sr_dev_inst *sdi);