From f9c3bfb83af1048db54de941df1898f2ec7fb1fc Mon Sep 17 00:00:00 2001 From: Thomas Tsou Date: Sat, 17 Oct 2009 22:28:43 -0400 Subject: 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. --- usrp/host/include/usrp/usrp_prims.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'usrp/host/include') 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 */ -- cgit