]> sigrok.org Git - libsigrok.git/blobdiff - sigrok-internal.h
sr: adjust copyright year
[libsigrok.git] / sigrok-internal.h
index 63b45a309dc654b25cc4c8454fd028b2092a1845..a233a28fe2dfe3017335be3ebfc2f16f9f9ee613 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the sigrok project.
  *
- * Copyright (C) 2011 Bert Vermeulen <bert@biot.com>
+ * Copyright (C) 2010-2012 Bert Vermeulen <bert@biot.com>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
 /* 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;
@@ -79,6 +75,27 @@ SR_PRIV int sr_info(const char *format, ...);
 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);
+
+/*--- session.c -------------------------------------------------------------*/
+
+SR_PRIV int sr_session_bus(struct sr_device *device,
+                         struct sr_datafeed_packet *packet);
+
+/* 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);