Merge branch 'fix/wbx_refclock' into maint
[debian/gnuradio] / usrp / host / lib / fusb_sysconfig_libusb1.cc
index e0d9458e11f25739ce6acbf4d819054618c7d743..46daf561a7bd581a09a0bdd29284eac419379dde 100644 (file)
@@ -1,6 +1,6 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2003 Free Software Foundation, Inc.
+ * Copyright 2003,2009 Free Software Foundation, Inc.
  * 
  * This file is part of GNU Radio
  * 
 
 static const int MAX_BLOCK_SIZE = 16 * 1024;           // hard limit
 static const int DEFAULT_BLOCK_SIZE =   4 * 1024;
-static const int FUSB_BUFFER_SIZE = 2 * (1L << 20);    // 2 MB
+static const int FUSB_BUFFER_SIZE = 1 * (1L << 20);    // 1 MB
+
+struct libusb_context;
 
 fusb_devhandle *
-fusb_sysconfig::make_devhandle (libusb_device_handle *udh)
+fusb_sysconfig::make_devhandle (libusb_device_handle *udh, libusb_context *ctx)
 {
-  return new fusb_devhandle_libusb1 (udh);
+  return new fusb_devhandle_libusb1 (udh, ctx);
 }
        
 int fusb_sysconfig::max_block_size ()