Files
vsmartcard/TCardEmulator/inc/tcardemulator.h
Jan-Christopher Pien f2a68c95c1 Refactor connecting to SAP service and sending messages in queue
Sending and receiving works correctly, however establishing an SAP connection takes too long
2016-11-30 08:23:53 +01:00

28 lines
649 B
C

#ifndef __tcardemulator_H__
#define __tcardemulator_H__
#define LOG_TAG "tcardemulator"
#if !defined(PACKAGE)
#define PACKAGE "com.vsmartcard.tcardemulator"
#endif
#include <stddef.h>
#include <glib.h>
#include <nfc.h>
//extern unsigned char *rapdu;
//extern size_t rapdu_length;
//extern gboolean rapdu_received;
#define HELLO_ACC_ASPID "/com/vsmcartcard"
#define HELLO_ACC_CHANNELID 104
void initialize_sap();
gboolean find_peers();
gboolean request_service_connection(void);
gboolean terminate_service_connection(void);
gboolean send_data(nfc_se_h nfc_handle, void *message, unsigned int message_len);
#endif /* __tcardemulator_H__ */