Logo Search packages:      
Sourcecode: pcsc-lite version File versions  Download package

utils.h

/*
 * MUSCLE SmartCard Development ( http://www.linuxnet.com )
 *
 * Copyright (C) 2006-2009
 *  Ludovic Rousseau <ludovic.rousseau@free.fr>
 *
 * $Id: utils.h 5196 2010-08-27 12:52:27Z rousseau $
 */

#ifndef __utils_h__
#define __utils_h__

#include <sys/types.h>
#include "wintypes.h"
#include "readerfactory.h"

#define PID_ASCII_SIZE 11
pid_t GetDaemonPid(void);
int SendHotplugSignal(void);

/* defined in winscard_clnt.c */
LONG SCardCheckDaemonAvailability(void);

int CheckForOpenCT(void);

long int time_sub(struct timeval *a, struct timeval *b);

/* thread attributes */
#define THREAD_ATTR_DEFAULT               0
#define THREAD_ATTR_DETACHED        1

#define PCSCLITE_THREAD_FUNCTION(f)      void *(*f)(void *)

int ThreadCreate(pthread_t *, int, PCSCLITE_THREAD_FUNCTION( ),
      /*@null@*/ LPVOID);

#endif


Generated by  Doxygen 1.6.0   Back to index