Browse Source

USB device locking NOOP for windows (for now)

nfactor-troky
Kano 12 years ago
parent
commit
8297304089
  1. 7
      usbutils.c

7
usbutils.c

@ -598,6 +598,10 @@ union semun {
static bool cgminer_usb_lock_bd(struct device_drv *drv, uint8_t bus_number, uint8_t device_address) static bool cgminer_usb_lock_bd(struct device_drv *drv, uint8_t bus_number, uint8_t device_address)
{ {
#ifdef WIN32 #ifdef WIN32
// NOOP for now
drv = 0;
bus_number = device_address = 0;
return true;
#else #else
struct semid_ds seminfo; struct semid_ds seminfo;
union semun opt; union semun opt;
@ -686,6 +690,9 @@ static bool cgminer_usb_lock(struct device_drv *drv, libusb_device *dev)
static void cgminer_usb_unlock_bd(struct device_drv *drv, uint8_t bus_number, uint8_t device_address) static void cgminer_usb_unlock_bd(struct device_drv *drv, uint8_t bus_number, uint8_t device_address)
{ {
#ifdef WIN32 #ifdef WIN32
// NOOP for now
drv = 0;
bus_number = device_address = 0;
#else #else
char name[64]; char name[64];
key_t key; key_t key;

Loading…
Cancel
Save