only propagate convenience functions of VPCD

This commit is contained in:
Frank Morgner
2012-08-11 12:46:04 +02:00
parent 2fc8074efb
commit 3adf5b1e60
2 changed files with 17 additions and 17 deletions

View File

@@ -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;

View File

@@ -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);