summaryrefslogtreecommitdiffstats
path: root/server/smartcard.h
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2012-06-25 17:47:36 +0300
committerYonit Halperin <yhalperi@redhat.com>2012-07-03 14:13:42 +0300
commitc514a1d903dc967dcb5f430098db410ed37b68e4 (patch)
tree791e13bc1357860fcd9399255216a1b6dfd240d8 /server/smartcard.h
parent7305a4b06f6e846bfecc70d79ac2cef99781cddd (diff)
downloadspice-c514a1d903dc967dcb5f430098db410ed37b68e4.tar.gz
spice-c514a1d903dc967dcb5f430098db410ed37b68e4.tar.xz
spice-c514a1d903dc967dcb5f430098db410ed37b68e4.zip
smartcard: use SpiceCharDeviceState for managing reading from the device
This patch and the following one do not introduce tokening to the smartcard channel. But this can be done easily later, by setting the appropriate variables in SpiceCharDeviceState (after adding the appropriate protocol messages, and implementing this in the client side).
Diffstat (limited to 'server/smartcard.h')
-rw-r--r--server/smartcard.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/smartcard.h b/server/smartcard.h
index 7881e1fd..221c777e 100644
--- a/server/smartcard.h
+++ b/server/smartcard.h
@@ -23,10 +23,10 @@
// Maximal length of APDU
#define APDUBufSize 270
-/** connect to smartcard interface, used by smartcard channel
- * returns -1 if failed, 0 if successfull
+/*
+ * connect to smartcard interface, used by smartcard channel
*/
-int smartcard_device_connect(SpiceCharDeviceInstance *char_device);
+SpiceCharDeviceState *smartcard_device_connect(SpiceCharDeviceInstance *char_device);
void smartcard_device_disconnect(SpiceCharDeviceInstance *char_device);
#endif // __SMART_CARD_H__