Snapdragon® Telematics Application Framework (TelAF) Interface Specification
taf_simRsp_common.h
Go to the documentation of this file.
1 
2 /*
3  * ====================== WARNING ======================
4  *
5  * THE CONTENTS OF THIS FILE HAVE BEEN AUTO-GENERATED.
6  * DO NOT MODIFY IN ANY WAY.
7  *
8  * ====================== WARNING ======================
9  */
10 #ifndef TAF_SIMRSP_COMMON_H_INCLUDE_GUARD
11 #define TAF_SIMRSP_COMMON_H_INCLUDE_GUARD
12 
13 
14 #include "legato.h"
15 
16 // Interface specific includes
17 #include "taf_sim_common.h"
18 
19 #define IFGEN_TAF_SIMRSP_PROTOCOL_ID "bd560854534a28c278ac3577550149c1"
20 #define IFGEN_TAF_SIMRSP_MSG_SIZE 2068
21 
22 
23 
24 //--------------------------------------------------------------------------------------------------
27 //--------------------------------------------------------------------------------------------------
28 #define TAF_SIMRSP_EID_LEN 32
29 
30 //--------------------------------------------------------------------------------------------------
33 //--------------------------------------------------------------------------------------------------
34 #define TAF_SIMRSP_EID_BYTES 33
35 
36 //--------------------------------------------------------------------------------------------------
39 //--------------------------------------------------------------------------------------------------
40 #define TAF_SIMRSP_MAX_PROFILE 32
41 
42 //--------------------------------------------------------------------------------------------------
45 //--------------------------------------------------------------------------------------------------
46 #define TAF_SIMRSP_NAME_LEN 64
47 
48 //--------------------------------------------------------------------------------------------------
51 //--------------------------------------------------------------------------------------------------
52 #define TAF_SIMRSP_NAME_BYTES 65
53 
54 //--------------------------------------------------------------------------------------------------
57 //--------------------------------------------------------------------------------------------------
58 #define TAF_SIMRSP_SPN_LEN 32
59 
60 //--------------------------------------------------------------------------------------------------
63 //--------------------------------------------------------------------------------------------------
64 #define TAF_SIMRSP_SMDP_LEN 1024
65 
66 //--------------------------------------------------------------------------------------------------
69 //--------------------------------------------------------------------------------------------------
70 #define TAF_SIMRSP_ICCID_LEN 20
71 
72 //--------------------------------------------------------------------------------------------------
75 //--------------------------------------------------------------------------------------------------
76 #define TAF_SIMRSP_ICCID_BYTES 21
77 
78 //--------------------------------------------------------------------------------------------------
81 //--------------------------------------------------------------------------------------------------
82 #define TAF_SIMRSP_NICKNAME_LEN 64
83 
84 //--------------------------------------------------------------------------------------------------
87 //--------------------------------------------------------------------------------------------------
88 #define TAF_SIMRSP_NICKNAME_BYTES 65
89 
90 //--------------------------------------------------------------------------------------------------
93 //--------------------------------------------------------------------------------------------------
94 #define TAF_SIMRSP_ACTIVATION_CODE_LEN 256
95 
96 //--------------------------------------------------------------------------------------------------
99 //--------------------------------------------------------------------------------------------------
100 #define TAF_SIMRSP_ACTIVATION_CODE_BYTES 257
101 
102 //--------------------------------------------------------------------------------------------------
105 //--------------------------------------------------------------------------------------------------
106 #define TAF_SIMRSP_CODE_LEN 256
107 
108 //--------------------------------------------------------------------------------------------------
111 //--------------------------------------------------------------------------------------------------
112 #define TAF_SIMRSP_CODE_BYTES 257
113 
114 //--------------------------------------------------------------------------------------------------
117 //--------------------------------------------------------------------------------------------------
118 typedef struct taf_simRsp_ProfileListNode* taf_simRsp_ProfileListNodeRef_t;
119 
120 
121 //--------------------------------------------------------------------------------------------------
125 //--------------------------------------------------------------------------------------------------
126 typedef enum
127 {
134 }
136 
137 
138 //--------------------------------------------------------------------------------------------------
142 //--------------------------------------------------------------------------------------------------
143 typedef enum
144 {
151 }
153 
154 
155 //--------------------------------------------------------------------------------------------------
159 //--------------------------------------------------------------------------------------------------
160 typedef enum
161 {
168 }
170 
171 
172 //--------------------------------------------------------------------------------------------------
177 //--------------------------------------------------------------------------------------------------
178 typedef enum
179 {
186 }
188 
189 
190 //--------------------------------------------------------------------------------------------------
194 //--------------------------------------------------------------------------------------------------
195 typedef enum
196 {
201 }
203 
204 
205 //--------------------------------------------------------------------------------------------------
209 //--------------------------------------------------------------------------------------------------
210 typedef enum
211 {
228 }
230 
231 
232 //--------------------------------------------------------------------------------------------------
236 //--------------------------------------------------------------------------------------------------
237 typedef enum
238 {
243 }
245 
246 
247 //--------------------------------------------------------------------------------------------------
251 //--------------------------------------------------------------------------------------------------
252 typedef struct taf_simRsp_ProfileDownloadHandler* taf_simRsp_ProfileDownloadHandlerRef_t;
253 
254 
255 //--------------------------------------------------------------------------------------------------
259 //--------------------------------------------------------------------------------------------------
260 typedef struct taf_simRsp_ProfileUserConsentHandler* taf_simRsp_ProfileUserConsentHandlerRef_t;
261 
262 
263 //--------------------------------------------------------------------------------------------------
267 //--------------------------------------------------------------------------------------------------
268 typedef struct taf_simRsp_ProfileConfirmationCodeHandler* taf_simRsp_ProfileConfirmationCodeHandlerRef_t;
269 
270 
271 //--------------------------------------------------------------------------------------------------
275 //--------------------------------------------------------------------------------------------------
277 (
278  taf_sim_Id_t slotId,
280  taf_simRsp_DownloadStatus_t downloadStatus,
284  void* contextPtr
286 );
287 
288 //--------------------------------------------------------------------------------------------------
292 //--------------------------------------------------------------------------------------------------
294 (
295  taf_sim_Id_t slotId,
297  bool userConsentRequired,
299  uint8_t mask,
301  void* contextPtr
303 );
304 
305 //--------------------------------------------------------------------------------------------------
309 //--------------------------------------------------------------------------------------------------
311 (
312  taf_sim_Id_t slotId,
314  const char* LE_NONNULL profileName,
316  void* contextPtr
318 );
319 
320 
321 //--------------------------------------------------------------------------------------------------
325 //--------------------------------------------------------------------------------------------------
327 (
328  void
329 );
330 
331 
332 //--------------------------------------------------------------------------------------------------
336 //--------------------------------------------------------------------------------------------------
338 (
339  void
340 );
341 
342 
343 //--------------------------------------------------------------------------------------------------
347 //--------------------------------------------------------------------------------------------------
349 (
350  le_msg_SessionRef_t _ifgen_sessionRef
351 );
352 
353 
354 //--------------------------------------------------------------------------------------------------
358 //--------------------------------------------------------------------------------------------------
360 (
361  le_msg_SessionRef_t _ifgen_sessionRef,
362  bool isBlocking
363 );
364 
365 //--------------------------------------------------------------------------------------------------
371 //--------------------------------------------------------------------------------------------------
373 (
374  le_msg_SessionRef_t _ifgen_sessionRef,
377  void* contextPtr
379 );
380 
381 //--------------------------------------------------------------------------------------------------
385 //--------------------------------------------------------------------------------------------------
387 (
388  le_msg_SessionRef_t _ifgen_sessionRef,
391 );
392 
393 //--------------------------------------------------------------------------------------------------
399 //--------------------------------------------------------------------------------------------------
401 (
402  le_msg_SessionRef_t _ifgen_sessionRef,
405  void* contextPtr
407 );
408 
409 //--------------------------------------------------------------------------------------------------
413 //--------------------------------------------------------------------------------------------------
415 (
416  le_msg_SessionRef_t _ifgen_sessionRef,
419 );
420 
421 //--------------------------------------------------------------------------------------------------
427 //--------------------------------------------------------------------------------------------------
429 (
430  le_msg_SessionRef_t _ifgen_sessionRef,
433  void* contextPtr
435 );
436 
437 //--------------------------------------------------------------------------------------------------
441 //--------------------------------------------------------------------------------------------------
443 (
444  le_msg_SessionRef_t _ifgen_sessionRef,
447 );
448 
449 //--------------------------------------------------------------------------------------------------
458 //--------------------------------------------------------------------------------------------------
460 (
461  le_msg_SessionRef_t _ifgen_sessionRef,
462  taf_sim_Id_t slotId,
464  char* eid,
466  size_t eidSize
468 );
469 
470 //--------------------------------------------------------------------------------------------------
479 //--------------------------------------------------------------------------------------------------
481 (
482  le_msg_SessionRef_t _ifgen_sessionRef,
483  taf_sim_Id_t slotId,
485  const char* LE_NONNULL activationCode,
487  const char* LE_NONNULL confirmationCode,
489  bool userConsentSupported
491 );
492 
493 //--------------------------------------------------------------------------------------------------
502 //--------------------------------------------------------------------------------------------------
504 (
505  le_msg_SessionRef_t _ifgen_sessionRef,
506  taf_sim_Id_t slotId,
508  uint32_t profileId
510 );
511 
512 //--------------------------------------------------------------------------------------------------
521 //--------------------------------------------------------------------------------------------------
523 (
524  le_msg_SessionRef_t _ifgen_sessionRef,
525  taf_sim_Id_t slotId,
527  uint32_t profileId,
529  bool enable
531 );
532 
533 //--------------------------------------------------------------------------------------------------
542 //--------------------------------------------------------------------------------------------------
544 (
545  le_msg_SessionRef_t _ifgen_sessionRef,
546  taf_sim_Id_t slotId,
548  uint32_t profileId,
550  const char* LE_NONNULL nickName
552 );
553 
554 //--------------------------------------------------------------------------------------------------
563 //--------------------------------------------------------------------------------------------------
565 (
566  le_msg_SessionRef_t _ifgen_sessionRef,
567  taf_sim_Id_t slotId,
569  taf_simRsp_ProfileListNodeRef_t* profileListPtr,
571  size_t* profileListSizePtr
573 );
574 
575 //--------------------------------------------------------------------------------------------------
585 //--------------------------------------------------------------------------------------------------
587 (
588  le_msg_SessionRef_t _ifgen_sessionRef,
589  taf_sim_Id_t slotId,
591  const char* LE_NONNULL smdpAdress
593 );
594 
595 //--------------------------------------------------------------------------------------------------
605 //--------------------------------------------------------------------------------------------------
607 (
608  le_msg_SessionRef_t _ifgen_sessionRef,
609  taf_sim_Id_t slotId,
611  char* smdpAdress,
613  size_t smdpAdressSize,
615  char* smdsdress,
617  size_t smdsdressSize
619 );
620 
621 //--------------------------------------------------------------------------------------------------
631 //--------------------------------------------------------------------------------------------------
633 (
634  le_msg_SessionRef_t _ifgen_sessionRef,
635  taf_sim_Id_t slotId,
637  bool userConsent,
641 );
642 
643 //--------------------------------------------------------------------------------------------------
653 //--------------------------------------------------------------------------------------------------
655 (
656  le_msg_SessionRef_t _ifgen_sessionRef,
657  taf_sim_Id_t slotId,
659  const char* LE_NONNULL code
661 );
662 
663 //--------------------------------------------------------------------------------------------------
672 //--------------------------------------------------------------------------------------------------
674 (
675  le_msg_SessionRef_t _ifgen_sessionRef,
676  uint32_t index
678 );
679 
680 //--------------------------------------------------------------------------------------------------
688 //--------------------------------------------------------------------------------------------------
690 (
691  le_msg_SessionRef_t _ifgen_sessionRef,
694 );
695 
696 //--------------------------------------------------------------------------------------------------
704 //--------------------------------------------------------------------------------------------------
706 (
707  le_msg_SessionRef_t _ifgen_sessionRef,
710 );
711 
712 //--------------------------------------------------------------------------------------------------
721 //--------------------------------------------------------------------------------------------------
723 (
724  le_msg_SessionRef_t _ifgen_sessionRef,
727  char* iccid,
729  size_t iccidSize
731 );
732 
733 //--------------------------------------------------------------------------------------------------
742 //--------------------------------------------------------------------------------------------------
744 (
745  le_msg_SessionRef_t _ifgen_sessionRef,
748 );
749 
750 //--------------------------------------------------------------------------------------------------
759 //--------------------------------------------------------------------------------------------------
761 (
762  le_msg_SessionRef_t _ifgen_sessionRef,
765  char* nickName,
767  size_t nickNameSize
769 );
770 
771 //--------------------------------------------------------------------------------------------------
780 //--------------------------------------------------------------------------------------------------
782 (
783  le_msg_SessionRef_t _ifgen_sessionRef,
786  char* name,
788  size_t nameSize
790 );
791 
792 //--------------------------------------------------------------------------------------------------
801 //--------------------------------------------------------------------------------------------------
803 (
804  le_msg_SessionRef_t _ifgen_sessionRef,
807  char* spn,
809  size_t spnSize
811 );
812 
813 //--------------------------------------------------------------------------------------------------
821 //--------------------------------------------------------------------------------------------------
823 (
824  le_msg_SessionRef_t _ifgen_sessionRef,
827 );
828 
829 //--------------------------------------------------------------------------------------------------
837 //--------------------------------------------------------------------------------------------------
839 (
840  le_msg_SessionRef_t _ifgen_sessionRef,
843 );
844 
845 //--------------------------------------------------------------------------------------------------
853 //--------------------------------------------------------------------------------------------------
855 (
856  le_msg_SessionRef_t _ifgen_sessionRef,
859 );
860 
861 #endif // TAF_SIMRSP_COMMON_H_INCLUDE_GUARD
taf_simRsp_ProfileClass_t
Definition: taf_simRsp_common.h:160
void(* taf_simRsp_ProfileDownloadHandlerFunc_t)(taf_sim_Id_t slotId, taf_simRsp_DownloadStatus_t downloadStatus, taf_simRsp_DownloadErrorCause_t errorCause, void *contextPtr)
Definition: taf_simRsp_common.h:277
Error from the network.
Definition: taf_simRsp_common.h:216
LE_SHARED bool ifgen_taf_simRsp_GetProfileActiveStatus(le_msg_SessionRef_t _ifgen_sessionRef, taf_simRsp_ProfileListNodeRef_t profileRef)
Disabling the profile is not allowed.
Definition: taf_simRsp_common.h:180
struct taf_simRsp_ProfileUserConsentHandler * taf_simRsp_ProfileUserConsentHandlerRef_t
Definition: taf_simRsp_common.h:260
End user postponed.
Definition: taf_simRsp_common.h:241
LE_SHARED le_result_t ifgen_taf_simRsp_GetEID(le_msg_SessionRef_t _ifgen_sessionRef, taf_sim_Id_t slotId, char *eid, size_t eidSize)
LE_SHARED le_result_t ifgen_taf_simRsp_SetServerAddress(le_msg_SessionRef_t _ifgen_sessionRef, taf_sim_Id_t slotId, const char *LE_NONNULL smdpAdress)
Profile policy rules not allowed.
Definition: taf_simRsp_common.h:222
End user rejection.
Definition: taf_simRsp_common.h:239
LE_SHARED le_result_t ifgen_taf_simRsp_ProvideConfirmationCode(le_msg_SessionRef_t _ifgen_sessionRef, taf_sim_Id_t slotId, const char *LE_NONNULL code)
LE_SHARED void ifgen_taf_simRsp_InitCommonData(void)
LE_SHARED void ifgen_taf_simRsp_RemoveProfileUserConsentHandler(le_msg_SessionRef_t _ifgen_sessionRef, taf_simRsp_ProfileUserConsentHandlerRef_t handlerRef)
LE_SHARED taf_simRsp_ProfileClass_t ifgen_taf_simRsp_GetProfileClass(le_msg_SessionRef_t _ifgen_sessionRef, taf_simRsp_ProfileListNodeRef_t profileRef)
taf_simRsp_ProfileType_t
Definition: taf_simRsp_common.h:126
LE_SHARED le_result_t ifgen_taf_simRsp_GetName(le_msg_SessionRef_t _ifgen_sessionRef, taf_simRsp_ProfileListNodeRef_t profileRef, char *name, size_t nameSize)
void(* taf_simRsp_ProfileUserConsentHandlerFunc_t)(taf_sim_Id_t slotId, bool userConsentRequired, uint8_t mask, void *contextPtr)
Definition: taf_simRsp_common.h:294
Error due to no memory.
Definition: taf_simRsp_common.h:218
LE_SHARED taf_simRsp_IconType_t ifgen_taf_simRsp_GetIconType(le_msg_SessionRef_t _ifgen_sessionRef, taf_simRsp_ProfileListNodeRef_t profileRef)
Generic error.
Definition: taf_simRsp_common.h:212
LE_SHARED le_result_t ifgen_taf_simRsp_UpdateNickName(le_msg_SessionRef_t _ifgen_sessionRef, taf_sim_Id_t slotId, uint32_t profileId, const char *LE_NONNULL nickName)
taf_simRsp_DownloadErrorCause_t
Definition: taf_simRsp_common.h:210
struct taf_simRsp_ProfileConfirmationCodeHandler * taf_simRsp_ProfileConfirmationCodeHandlerRef_t
Definition: taf_simRsp_common.h:268
LE_SHARED le_result_t ifgen_taf_simRsp_SetProfile(le_msg_SessionRef_t _ifgen_sessionRef, taf_sim_Id_t slotId, uint32_t profileId, bool enable)
LE_SHARED taf_simRsp_ProfileListNodeRef_t ifgen_taf_simRsp_GetProfile(le_msg_SessionRef_t _ifgen_sessionRef, uint32_t index)
LE_SHARED uint32_t ifgen_taf_simRsp_GetProfileIndex(le_msg_SessionRef_t _ifgen_sessionRef, taf_simRsp_ProfileListNodeRef_t profileRef)
LE_SHARED le_result_t ifgen_taf_simRsp_GetSpn(le_msg_SessionRef_t _ifgen_sessionRef, taf_simRsp_ProfileListNodeRef_t profileRef, char *spn, size_t spnSize)
LE_SHARED le_result_t ifgen_taf_simRsp_ProvideUserConsent(le_msg_SessionRef_t _ifgen_sessionRef, taf_sim_Id_t slotId, bool userConsent, taf_simRsp_UserConsentReasonType_t reason)
PNG icon.
Definition: taf_simRsp_common.h:149
JPEG icon.
Definition: taf_simRsp_common.h:147
Deletion of the profile is not allowed.
Definition: taf_simRsp_common.h:182
Profile download error.
Definition: taf_simRsp_common.h:197
Profile download and installation is complete.
Definition: taf_simRsp_common.h:199
Error from the SIM card.
Definition: taf_simRsp_common.h:214
LE_SHARED bool ifgen_taf_simRsp_HasLocalBinding(void)
taf_simRsp_IconType_t
Definition: taf_simRsp_common.h:143
LE_SHARED void ifgen_taf_simRsp_CleanupCommonData(le_msg_SessionRef_t _ifgen_sessionRef)
LE_SHARED uint32_t ifgen_taf_simRsp_GetMask(le_msg_SessionRef_t _ifgen_sessionRef, taf_simRsp_ProfileListNodeRef_t profileRef)
Test profile.
Definition: taf_simRsp_common.h:162
End user rejection.
Definition: taf_simRsp_common.h:224
Provisioning profile.
Definition: taf_simRsp_common.h:164
taf_simRsp_PolicyRuleType_t
Definition: taf_simRsp_common.h:178
LE_SHARED le_result_t ifgen_taf_simRsp_GetNickName(le_msg_SessionRef_t _ifgen_sessionRef, taf_simRsp_ProfileListNodeRef_t profileRef, char *nickName, size_t nickNameSize)
No icon information.
Definition: taf_simRsp_common.h:145
taf_sim_Id_t
Definition: taf_sim_common.h:465
Operational profile.
Definition: taf_simRsp_common.h:166
LE_SHARED void ifgen_taf_simRsp_RemoveProfileConfirmationCodeHandler(le_msg_SessionRef_t _ifgen_sessionRef, taf_simRsp_ProfileConfirmationCodeHandlerRef_t handlerRef)
LE_SHARED le_result_t ifgen_taf_simRsp_GetIccid(le_msg_SessionRef_t _ifgen_sessionRef, taf_simRsp_ProfileListNodeRef_t profileRef, char *iccid, size_t iccidSize)
LE_SHARED taf_simRsp_ProfileType_t ifgen_taf_simRsp_GetProfileType(le_msg_SessionRef_t _ifgen_sessionRef, taf_simRsp_ProfileListNodeRef_t profileRef)
LE_SHARED le_result_t ifgen_taf_simRsp_DeleteProfile(le_msg_SessionRef_t _ifgen_sessionRef, taf_sim_Id_t slotId, uint32_t profileId)
LE_SHARED taf_simRsp_ProfileConfirmationCodeHandlerRef_t ifgen_taf_simRsp_AddProfileConfirmationCodeHandler(le_msg_SessionRef_t _ifgen_sessionRef, taf_simRsp_ProfileConfirmationCodeHandlerFunc_t handlerPtr, void *contextPtr)
LE_SHARED le_result_t ifgen_taf_simRsp_AddProfile(le_msg_SessionRef_t _ifgen_sessionRef, taf_sim_Id_t slotId, const char *LE_NONNULL activationCode, const char *LE_NONNULL confirmationCode, bool userConsentSupported)
LE_SHARED le_result_t ifgen_taf_simRsp_GetServerAddress(le_msg_SessionRef_t _ifgen_sessionRef, taf_sim_Id_t slotId, char *smdpAdress, size_t smdpAdressSize, char *smdsdress, size_t smdsdressSize)
LE_SHARED taf_simRsp_ProfileUserConsentHandlerRef_t ifgen_taf_simRsp_AddProfileUserConsentHandler(le_msg_SessionRef_t _ifgen_sessionRef, taf_simRsp_ProfileUserConsentHandlerFunc_t handlerPtr, void *contextPtr)
Deletion of the profile is required when it is successfully disabled.
Definition: taf_simRsp_common.h:184
void(* taf_simRsp_ProfileConfirmationCodeHandlerFunc_t)(taf_sim_Id_t slotId, const char *LE_NONNULL profileName, void *contextPtr)
Definition: taf_simRsp_common.h:311
Emergency profile.
Definition: taf_simRsp_common.h:132
#define LE_NONNULL
Definition: le_basics.h:368
LE_SHARED void ifgen_taf_simRsp_RemoveProfileDownloadHandler(le_msg_SessionRef_t _ifgen_sessionRef, taf_simRsp_ProfileDownloadHandlerRef_t handlerRef)
le_result_t
Definition: le_basics.h:45
struct taf_simRsp_ProfileDownloadHandler * taf_simRsp_ProfileDownloadHandlerRef_t
Definition: taf_simRsp_common.h:252
struct taf_simRsp_ProfileListNode * taf_simRsp_ProfileListNodeRef_t
Definition: taf_simRsp_common.h:118
Regular profile.
Definition: taf_simRsp_common.h:130
struct le_msg_Session * le_msg_SessionRef_t
Definition: le_messaging.h:860
taf_simRsp_UserConsentReasonType_t
Definition: taf_simRsp_common.h:237
LE_SHARED le_result_t ifgen_taf_simRsp_OpenSession(le_msg_SessionRef_t _ifgen_sessionRef, bool isBlocking)
LE_SHARED taf_simRsp_ProfileDownloadHandlerRef_t ifgen_taf_simRsp_AddProfileDownloadHandler(le_msg_SessionRef_t _ifgen_sessionRef, taf_simRsp_ProfileDownloadHandlerFunc_t handlerPtr, void *contextPtr)
Unsupported profile class.
Definition: taf_simRsp_common.h:220
taf_simRsp_DownloadStatus_t
Definition: taf_simRsp_common.h:195
Definition: taf_simRsp_common.h:128
#define LE_SHARED
Definition: le_basics.h:297
LE_SHARED le_result_t ifgen_taf_simRsp_GetProfileList(le_msg_SessionRef_t _ifgen_sessionRef, taf_sim_Id_t slotId, taf_simRsp_ProfileListNodeRef_t *profileListPtr, size_t *profileListSizePtr)
End user postponed.
Definition: taf_simRsp_common.h:226