lpac/euicc/euicc.h
Peter Cai a877988b0f Pass euicc_ctx to all interface functions
Also added a `void *userdata` member to the `euicc_ctx` struct. This is
needed, for example, when used with JNI to bind each `euicc_ctx` with a
Java-side object.
2023-11-18 20:08:30 -05:00

22 lines
372 B
C

#pragma once
#include <inttypes.h>
#include "interface.h"
struct euicc_ctx
{
struct
{
struct euicc_apdu_interface *apdu;
struct euicc_http_interface *http;
} interface;
uint8_t g_apdu_request_buf[256 + 8];
uint8_t g_asn1_der_request_buf[256];
int es10x_logic_channel;
void *userdata;
};
#include "es9p.h"
#include "es10x.h"