/**
* @brief debug helper
*
- * @param packet TODO.
+ * @param packet The packet to show debugging information for.
*
*/
static void datafeed_dump(struct sr_datafeed_packet *packet)
/* Size of a datastore chunk in units */
#define DATASTORE_CHUNKSIZE (512 * 1024)
-/*--- hwplugin.c ------------------------------------------------------------*/
-
-SR_PRIV int load_hwplugins(void);
-
#ifdef HAVE_LIBUSB_1_0
struct sr_usb_device_instance {
uint8_t bus;
SR_PRIV int sr_warn(const char *format, ...);
SR_PRIV int sr_err(const char *format, ...);
+/*--- hwplugin.c ------------------------------------------------------------*/
+
+SR_PRIV int load_hwplugins(void);
+SR_PRIV void sr_cleanup_hwplugins(void);
+
+/* Generic device instances */
+SR_PRIV struct sr_device_instance *sr_device_instance_new(int index,
+ int status, const char *vendor, const char *model, const char *version);
+SR_PRIV struct sr_device_instance *sr_get_device_instance(
+ GSList *device_instances, int device_index);
+SR_PRIV void sr_device_instance_free(struct sr_device_instance *sdi);
+
+SR_PRIV void sr_source_remove(int fd);
+SR_PRIV void sr_source_add(int fd, int events, int timeout,
+ sr_receive_data_callback rcv_cb, void *user_data);
+
/*--- hardware/common/serial.c ----------------------------------------------*/
SR_PRIV GSList *list_serial_ports(void);
SR_API GSList *sr_list_hwplugins(void);
SR_API int sr_init_hwplugins(struct sr_device_plugin *plugin);
-SR_PRIV void sr_cleanup_hwplugins(void);
-
-/* Generic device instances */
-SR_PRIV struct sr_device_instance *sr_device_instance_new(int index,
- int status, const char *vendor, const char *model, const char *version);
-SR_PRIV struct sr_device_instance *sr_get_device_instance(
- GSList *device_instances, int device_index);
-SR_PRIV void sr_device_instance_free(struct sr_device_instance *sdi);
-
SR_API int sr_find_hwcap(int *capabilities, int hwcap);
SR_API struct sr_hwcap_option *sr_find_hwcap_option(int hwcap);
-SR_PRIV void sr_source_remove(int fd);
-SR_PRIV void sr_source_add(int fd, int events, int timeout,
- sr_receive_data_callback rcv_cb, void *user_data);
/*--- session.c -------------------------------------------------------------*/
SR_API struct sr_output_format **sr_output_list(void);
-/*--- output/common.c -------------------------------------------------------*/
+/*--- strutil.c -------------------------------------------------------*/
SR_API char *sr_samplerate_string(uint64_t samplerate);
SR_API char *sr_period_string(uint64_t frequency);