From 3adf5b1e60ded3992362b37e125c7a9d98936f33 Mon Sep 17 00:00:00 2001 From: Frank Morgner Date: Sat, 11 Aug 2012 12:46:04 +0200 Subject: [PATCH] only propagate convenience functions of VPCD --- virtualsmartcard/src/vpcd/vpcd.c | 17 +++++++++++++++++ virtualsmartcard/src/vpcd/vpcd.h | 17 ----------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/virtualsmartcard/src/vpcd/vpcd.c b/virtualsmartcard/src/vpcd/vpcd.c index bf8f1e1..167b195 100644 --- a/virtualsmartcard/src/vpcd/vpcd.c +++ b/virtualsmartcard/src/vpcd/vpcd.c @@ -29,6 +29,23 @@ #include "vpcd.h" +#define VPCD_CTRL_LEN 1 + +#define VPCD_CTRL_OFF 0 +#define VPCD_CTRL_ON 1 +#define VPCD_CTRL_RESET 2 +#define VPCD_CTRL_ATR 4 + +/* + * First send length (unsigned integer in network byte order), then send the + * message itself to the socket. + */ +int sendToVICC(uint16_t size, const char* buffer); +/* + * Receive a message from icc + */ +int recvFromVICC(char** buffer); + static int server_sock = -1; static int client_sock = -1; diff --git a/virtualsmartcard/src/vpcd/vpcd.h b/virtualsmartcard/src/vpcd/vpcd.h index fa2a43b..3141022 100644 --- a/virtualsmartcard/src/vpcd/vpcd.h +++ b/virtualsmartcard/src/vpcd/vpcd.h @@ -28,23 +28,6 @@ extern "C" { #define VPCDPORT 35963 -#define VPCD_CTRL_LEN 1 - -#define VPCD_CTRL_OFF 0 -#define VPCD_CTRL_ON 1 -#define VPCD_CTRL_RESET 2 -#define VPCD_CTRL_ATR 4 - -/* - * First send length (unsigned integer in network byte order), then send the - * message itself to the socket. - */ -int sendToVICC(uint16_t size, const char* buffer); -/* - * Receive a message from icc - */ -int recvFromVICC(char** buffer); - int vicc_eject(void); int vicc_init(unsigned short port); int vicc_exit(void);