added Tizen Smart Card Emulator
as companion for Android Smart Card Emulator to allow using the Accessories' HCE mode instead of the phone's hardware.
This commit is contained in:
26
TCardEmulator/inc/tcardemulator.h
Normal file
26
TCardEmulator/inc/tcardemulator.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#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>
|
||||
|
||||
extern unsigned char *rapdu;
|
||||
extern size_t rapdu_length;
|
||||
extern gboolean rapdu_received;
|
||||
|
||||
#define HELLO_ACC_ASPID "/sample/hello"
|
||||
#define HELLO_ACC_CHANNELID 104
|
||||
|
||||
void initialize_sap();
|
||||
gboolean find_peers();
|
||||
gboolean request_service_connection(void);
|
||||
gboolean terminate_service_connection(void);
|
||||
gboolean send_data(void *message, unsigned int message_len);
|
||||
|
||||
#endif /* __tcardemulator_H__ */
|
||||
Reference in New Issue
Block a user