[Spice-commits] Branch 'usb-ccid' - hw/scard_common.h
Alon Levy
alon at kemper.freedesktop.org
Thu Jul 8 01:17:05 PDT 2010
hw/scard_common.h | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
New commits:
commit 1bd08e5c87bc943b7c553fcb214de711da190314
Author: Alon Levy <alevy at redhat.com>
Date: Thu Jul 8 11:16:51 2010 +0300
usb-ccid: missing h file with scard protocol
diff --git a/hw/scard_common.h b/hw/scard_common.h
new file mode 100644
index 0000000..cc787ad
--- /dev/null
+++ b/hw/scard_common.h
@@ -0,0 +1,21 @@
+#ifndef __SCARD_COMMON_H__
+#define __SCARD_COMMON_H__
+
+// Protocol used for outside communication with spice / test app
+
+typedef enum {
+ SCard_ATR,
+ SCard_APDU,
+ SCard_Remove,
+ SCard_Error,
+} SCardMsgType;
+
+typedef struct SCRMsgHeader {
+ SCardMsgType type;
+ unsigned int nLength;
+ uint8_t data[0];
+} SCRMsgHeader;
+
+//
+
+#endif // __SCARD_COMMON_H__
More information about the Spice-commits
mailing list