-
Notifications
You must be signed in to change notification settings - Fork 0
/
es10c.h
69 lines (61 loc) · 1.87 KB
/
es10c.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#pragma once
#include "euicc.h"
enum es10c_profile_state
{
ES10C_PROFILE_STATE_NULL = -1,
ES10C_PROFILE_STATE_DISABLED = 0,
ES10C_PROFILE_STATE_ENABLED = 1,
ES10C_PROFILE_STATE_UNDEFINED = 255,
};
enum es10c_profile_class
{
ES10C_PROFILE_CLASS_NULL = -1,
ES10C_PROFILE_CLASS_TEST = 0,
ES10C_PROFILE_CLASS_PROVISIONING = 1,
ES10C_PROFILE_CLASS_OPERATIONAL = 2,
ES10C_PROFILE_CLASS_UNDEFINED = 255,
};
enum es10c_icon_type
{
ES10C_ICON_TYPE_NULL = -1,
ES10C_ICON_TYPE_JPEG = 0,
ES10C_ICON_TYPE_PNG = 1,
ES10C_ICON_TYPE_UNDEFINED = 255,
};
struct es10c_profile_info_list
{
char iccid[(10 * 2) + 1];
char isdpAid[(16 * 2) + 1];
enum es10c_profile_state profileState;
enum es10c_profile_class profileClass;
char *profileNickname;
char *serviceProviderName;
char *profileName;
enum es10c_icon_type iconType;
char *icon;
struct
{
char **profileManagementOperation;
char *notificationAddress;
} notificationConfigurationInfo;
struct
{
char *mccmnc;
char *gid1;
char *gid2;
} profileOwner;
struct
{
char *dpOid;
} dpProprietaryData;
char **profilePolicyRules;
struct es10c_profile_info_list *next;
};
int es10c_get_profiles_info(struct euicc_ctx *ctx, struct es10c_profile_info_list **profileInfoList);
int es10c_enable_profile(struct euicc_ctx *ctx, const char *id, uint8_t refreshFlag);
int es10c_disable_profile(struct euicc_ctx *ctx, const char *id, uint8_t refreshFlag);
int es10c_delete_profile(struct euicc_ctx *ctx, const char *id);
int es10c_euicc_memory_reset(struct euicc_ctx *ctx);
int es10c_get_eid(struct euicc_ctx *ctx, char **eidValue);
int es10c_set_nickname(struct euicc_ctx *ctx, const char *iccid, const char *profileNickname);
void es10c_profile_info_list_free_all(struct es10c_profile_info_list *profileInfoList);