pcsc-lite  1.8.8
utils.h
1 /*
2  * MUSCLE SmartCard Development ( http://www.linuxnet.com )
3  *
4  * Copyright (C) 2006-2009
5  * Ludovic Rousseau <ludovic.rousseau@free.fr>
6  *
7  * $Id: utils.h 5196 2010-08-27 12:52:27Z rousseau $
8  */
9 
10 #ifndef __utils_h__
11 #define __utils_h__
12 
13 #include <sys/types.h>
14 #include "wintypes.h"
15 #include "readerfactory.h"
16 
17 #define PID_ASCII_SIZE 11
18 pid_t GetDaemonPid(void);
19 int SendHotplugSignal(void);
20 
21 /* defined in winscard_clnt.c */
23 
24 int CheckForOpenCT(void);
25 
26 long int time_sub(struct timeval *a, struct timeval *b);
27 
28 /* thread attributes */
29 #define THREAD_ATTR_DEFAULT 0
30 #define THREAD_ATTR_DETACHED 1
31 
32 #define PCSCLITE_THREAD_FUNCTION(f) void *(*f)(void *)
33 
34 int ThreadCreate(pthread_t *, int, PCSCLITE_THREAD_FUNCTION( ),
35  /*@null@*/ LPVOID);
36 
37 #endif
38 
long int time_sub(struct timeval *a, struct timeval *b)
return the difference (as long int) in µs between 2 struct timeval r = a - b
Definition: utils.c:106
This keeps a list of Windows(R) types.
LONG SCardCheckDaemonAvailability(void)
Checks if the server is running.
This keeps track of a list of currently available reader structures.