hotplug_libusb.c File Reference

This provides a search API for hot pluggble devices. More...

#include "config.h"
#include <string.h>
#include <sys/types.h>
#include <stdio.h>
#include <dirent.h>
#include <fcntl.h>
#include <time.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <usb.h>
#include "misc.h"
#include "wintypes.h"
#include "pcscd.h"
#include "debuglog.h"
#include "parser.h"
#include "readerfactory.h"
#include "winscard_msg.h"
#include "sys_generic.h"
#include "hotplug.h"

Go to the source code of this file.

Data Structures

struct  _driverTracker
struct  _readerTracker

Defines

#define ADD_SERIAL_NUMBER
#define BUS_DEVICE_STRSIZE   256
#define READER_ABSENT   0
#define READER_PRESENT   1
#define READER_FAILED   2
#define FALSE   0
#define TRUE   1
#define IFD_GENERATE_HOTPLUG   1
#define DRIVER_TRACKER_SIZE_STEP   8

Functions

LONG HPReadBundleValues (void)
LONG HPAddHotPluggable (struct usb_device *dev, const char bus_device[], struct _driverTracker *driver)
LONG HPRemoveHotPluggable (int reader_index)
static void HPRescanUsbBus (void)
static void HPEstablishUSBNotifications (void)
LONG HPSearchHotPluggables (void)
LONG HPStopHotPluggables (void)
ULONG HPRegisterForHotplugEvents (void)
void HPReCheckSerialReaders (void)

Variables

PCSCLITE_MUTEX usbNotifierMutex
static PCSCLITE_THREAD_T usbNotifyThread
static int driverSize = -1
static char AraKiriHotPlug = FALSE
static int rescan_pipe [] = { -1, -1 }
int HPForceReaderPolling
static struct _driverTrackerdriverTracker
static struct _readerTracker readerTracker [PCSCLITE_MAX_READERS_CONTEXTS]


Detailed Description

This provides a search API for hot pluggble devices.

Definition in file hotplug_libusb.c.


Generated on Wed Jul 14 18:42:44 2010 for pcsc-lite by  doxygen 1.4.7