hotplug_libhal.c File Reference

This provides a search API for hot pluggble devices using HAL/DBus. More...

#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"

Include dependency graph for hotplug_libhal.c:

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 _driverTrackerget_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 _driverTrackerdriverTracker
 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


Detailed Description

This provides a search API for hot pluggble devices using HAL/DBus.

Definition in file hotplug_libhal.c.


Function Documentation

static const char* short_name ( const char *  udi  )  [static]

Generate a short name for a device.

Parameters:
udi Universal Device Id

Definition at line 86 of file hotplug_libhal.c.


Generated on Mon Aug 17 01:00:13 2009 for pcsc-lite by  doxygen 1.5.9