mirror of
https://github.com/estkme-group/lpac
synced 2024-09-11 19:40:49 +02:00
27 lines
815 B
C
27 lines
815 B
C
#pragma once
|
|
#include <inttypes.h>
|
|
|
|
#ifdef __MINGW32__
|
|
#define EUICC_SHARED_EXPORT __declspec(dllexport) __cdecl
|
|
#else
|
|
#define EUICC_SHARED_EXPORT
|
|
#endif
|
|
|
|
struct euicc_ctx;
|
|
|
|
struct euicc_apdu_interface
|
|
{
|
|
int (*connect)(struct euicc_ctx *ctx);
|
|
void (*disconnect)(struct euicc_ctx *ctx);
|
|
int (*logic_channel_open)(struct euicc_ctx *ctx, const uint8_t *aid, uint8_t aid_len);
|
|
void (*logic_channel_close)(struct euicc_ctx *ctx, uint8_t channel);
|
|
int (*transmit)(struct euicc_ctx *ctx, uint8_t **rx, uint32_t *rx_len, const uint8_t *tx, uint32_t tx_len);
|
|
void *userdata;
|
|
};
|
|
|
|
struct euicc_http_interface
|
|
{
|
|
int (*transmit)(struct euicc_ctx *ctx, const char *url, uint32_t *rcode, uint8_t **rx, uint32_t *rx_len, const uint8_t *tx, uint32_t tx_len, const char **headers);
|
|
void *userdata;
|
|
};
|