summaryrefslogtreecommitdiffstats
path: root/sesman/chansrv/smartcard.h
diff options
context:
space:
mode:
authorLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2013-09-11 19:42:42 -0700
committerLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2013-09-11 19:42:42 -0700
commit188ca68adb5c312111527e1cef4f9bab014f88d5 (patch)
treea03bd4b77c290334ca34903f663a94200d0a86a4 /sesman/chansrv/smartcard.h
parent2d112bac8f4359a513cc603e5f58fc625700a6c6 (diff)
downloadxrdp-proprietary-188ca68adb5c312111527e1cef4f9bab014f88d5.tar.gz
xrdp-proprietary-188ca68adb5c312111527e1cef4f9bab014f88d5.zip
scard: added GetStatusChange() msg
Diffstat (limited to 'sesman/chansrv/smartcard.h')
-rw-r--r--sesman/chansrv/smartcard.h43
1 files changed, 18 insertions, 25 deletions
diff --git a/sesman/chansrv/smartcard.h b/sesman/chansrv/smartcard.h
index ecf79a04..3d113ce1 100644
--- a/sesman/chansrv/smartcard.h
+++ b/sesman/chansrv/smartcard.h
@@ -28,30 +28,23 @@
#include "irp.h"
#include "trans.h"
-/* forward declarations */
-void scard_device_announce(tui32 device_id);
-
-/* callbacks into this module */
-void scard_handle_EstablishContext_Return(struct stream *s, IRP *irp,
- tui32 DeviceId, tui32 CompletionId,
- tui32 IoStatus);
-
-void scard_handle_ListReaders_Return(struct stream *s, IRP *irp,
- tui32 DeviceId, tui32 CompletionId,
- tui32 IoStatus);
-
-int APP_CC
-scard_get_wait_objs(tbus *objs, int *count, int *timeout);
-int APP_CC
-scard_check_wait_objs(void);
-int APP_CC
-scard_init(void);
-int APP_CC
-scard_deinit(void);
-
-int APP_CC
-scard_send_irp_establish_context(struct trans *con, int scope);
-int APP_CC
-scard_send_irp_list_readers(struct trans *con);
+typedef struct reader_state
+{
+ char reader_name[128];
+ tui32 current_state;
+ tui32 event_state;
+ tui32 atr_len; /* number of bytes in atr[] */
+ tui8 atr[36];
+} READER_STATE;
+void scard_device_announce(tui32 device_id);
+int APP_CC scard_get_wait_objs(tbus *objs, int *count, int *timeout);
+int APP_CC scard_check_wait_objs(void);
+int APP_CC scard_init(void);
+int APP_CC scard_deinit(void);
+int APP_CC scard_send_irp_establish_context(struct trans *con, int scope);
+int APP_CC scard_send_irp_list_readers(struct trans *con);
+
+int APP_CC scard_send_irp_get_status_change(struct trans *con, int wide, tui32 timeout,
+ tui32 num_readers, READER_STATE* rsa);
#endif /* end #ifndef _SMARTCARD_C */