Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

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 "pcsclite.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 index)
void HPRescanUsbBus (void)
void HPEstablishUSBNotifications (void)
LONG HPSearchHotPluggables (void)
LONG HPStopHotPluggables (void)
ULONG HPRegisterForHotplugEvents (void)
void HPReCheckSerialReaders (void)

Variables

PCSCLITE_MUTEX usbNotifierMutex
PCSCLITE_THREAD_T usbNotifyThread
int driverSize = -1
char AraKiriHotPlug = FALSE
int HPForceReaderPolling
_driverTracker * driverTracker
_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 Tue Apr 1 19:12:58 2008 for pcsc-lite by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002