X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=sigrok-internal.h;h=a233a28fe2dfe3017335be3ebfc2f16f9f9ee613;hb=c73d2ea421c2b425c3f0ae33bce2bfd0c448ca5f;hp=63b45a309dc654b25cc4c8454fd028b2092a1845;hpb=0f8522bf74af8abfe8601e978b2e0d0e40b1a124;p=libsigrok.git diff --git a/sigrok-internal.h b/sigrok-internal.h index 63b45a30..a233a28f 100644 --- a/sigrok-internal.h +++ b/sigrok-internal.h @@ -1,7 +1,7 @@ /* * This file is part of the sigrok project. * - * Copyright (C) 2011 Bert Vermeulen + * Copyright (C) 2010-2012 Bert Vermeulen * * 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 @@ -40,10 +40,6 @@ /* 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);