#include "config.h"
#include <string.h>
#include <stdio.h>
#include <dirent.h>
#include <stdlib.h>
#include <libhal.h>
#include "misc.h"
#include "wintypes.h"
#include "pcscd.h"
#include "debuglog.h"
#include "parser.h"
#include "readerfactory.h"
#include "sys_generic.h"
#include "hotplug.h"
#include "thread_generic.h"
#include "utils.h"
Go to the source code of this file.
Data Structures | |
| struct | _driverTracker |
| keep track of drivers in a dynamically allocated array More... | |
| struct | _readerTracker |
| keep track of PCSCLITE_MAX_READERS_CONTEXTS simultaneous readers More... | |
Defines | |
| #define | ADD_SERIAL_NUMBER |
| #define | FALSE 0 |
| #define | TRUE 1 |
| #define | UDI_BASE "/org/freedesktop/Hal/devices/" |
| #define | DRIVER_TRACKER_SIZE_STEP 8 |
Functions | |
| static LONG | HPReadBundleValues (void) |
| static void | HPAddDevice (LibHalContext *ctx, const char *udi) |
| static void | HPRemoveDevice (LibHalContext *ctx, const char *udi) |
| static void | HPEstablishUSBNotifications (void) |
| static const char * | short_name (const char *udi) |
| Generate a short name for a device. | |
| LONG | HPSearchHotPluggables (void) |
| LONG | HPStopHotPluggables (void) |
| Stop the hotplug thread. | |
| static struct _driverTracker * | get_driver (LibHalContext *ctx, const char *udi) |
| ULONG | HPRegisterForHotplugEvents (void) |
| Sets up callbacks for device hotplug events. | |
| void | HPReCheckSerialReaders (void) |
Variables | |
| PCSCLITE_MUTEX | usbNotifierMutex |
| static PCSCLITE_THREAD_T | usbNotifyThread |
| static int | driverSize = -1 |
| static char | AraKiriHotPlug = FALSE |
| static DBusConnection * | conn |
| static LibHalContext * | hal_ctx |
| static struct _driverTracker * | driverTracker |
| keep track of drivers in a dynamically allocated array | |
| static struct _readerTracker | readerTracker [PCSCLITE_MAX_READERS_CONTEXTS] |
| keep track of PCSCLITE_MAX_READERS_CONTEXTS simultaneous readers | |
Definition in file hotplug_libhal.c.
| static const char* short_name | ( | const char * | udi | ) | [static] |
Generate a short name for a device.
| udi | Universal Device Id |
Definition at line 86 of file hotplug_libhal.c.
1.5.9