summaryrefslogtreecommitdiff
path: root/usrp/host/include
diff options
context:
space:
mode:
authorThomas Tsou2009-10-17 22:28:43 -0400
committerThomas Tsou2009-11-02 17:29:14 -0500
commitf9c3bfb83af1048db54de941df1898f2ec7fb1fc (patch)
treea711250acf3c0941f67b2e63611e72f6bc78f75c /usrp/host/include
parent097191b3a89c09a492f322eac539eb5db8668843 (diff)
downloadgnuradio-f9c3bfb83af1048db54de941df1898f2ec7fb1fc.tar.gz
gnuradio-f9c3bfb83af1048db54de941df1898f2ec7fb1fc.tar.bz2
gnuradio-f9c3bfb83af1048db54de941df1898f2ec7fb1fc.zip
usrp: Cleanup of usrp_basic
Version specific libusb calls are pushed out of usrp_basic into usrp_prims where they belong. This leads to a single usrp_basic file. A new function in usrp_prims, usrp_deinit(), handles shutdown specific to version 1.0.
Diffstat (limited to 'usrp/host/include')
-rw-r--r--usrp/host/include/usrp/usrp_prims.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/usrp/host/include/usrp/usrp_prims.h b/usrp/host/include/usrp/usrp_prims.h
index 323287d02..4780d0004 100644
--- a/usrp/host/include/usrp/usrp_prims.h
+++ b/usrp/host/include/usrp/usrp_prims.h
@@ -53,6 +53,15 @@ enum usrp_load_status_t { ULS_ERROR = 0, ULS_OK, ULS_ALREADY_LOADED };
void usrp_one_time_init (libusb_context **ctx = NULL);
+/*!
+ * \brief deinitialize libusb
+ *
+ * libusb-0.1: No effect
+ *
+ * libusb-1.0: Deinitialize context ctx
+ */
+void usrp_deinit (libusb_context *ctx);
+
/*
* force a rescan of the buses and devices
*/