Snapdragon® Telematics Application Framework (TelAF) Interface Specification
taf_dcs_server.h
Go to the documentation of this file.
1 
2 
3 /*
4  * ====================== WARNING ======================
5  *
6  * THE CONTENTS OF THIS FILE HAVE BEEN AUTO-GENERATED.
7  * DO NOT MODIFY IN ANY WAY.
8  *
9  * ====================== WARNING ======================
10  */
11 
12 
13 #ifndef TAF_DCS_INTERFACE_H_INCLUDE_GUARD
14 #define TAF_DCS_INTERFACE_H_INCLUDE_GUARD
15 
16 
17 #include "legato.h"
18 
19 // Interface specific includes
20 #include "taf_types_server.h"
21 
22 // Internal includes for this interface
23 #include "taf_dcs_common.h"
24 //--------------------------------------------------------------------------------------------------
28 //--------------------------------------------------------------------------------------------------
29 le_msg_ServiceRef_t taf_dcs_GetServiceRef
30 (
31  void
32 );
33 
34 //--------------------------------------------------------------------------------------------------
38 //--------------------------------------------------------------------------------------------------
40 (
41  void
42 );
43 
44 //--------------------------------------------------------------------------------------------------
48 //--------------------------------------------------------------------------------------------------
50 (
51  void
52 );
53 
54 
55 //--------------------------------------------------------------------------------------------------
59 //--------------------------------------------------------------------------------------------------
60 
61 
62 //--------------------------------------------------------------------------------------------------
66 //--------------------------------------------------------------------------------------------------
67 
68 
69 //--------------------------------------------------------------------------------------------------
73 //--------------------------------------------------------------------------------------------------
74 
75 
76 //--------------------------------------------------------------------------------------------------
80 //--------------------------------------------------------------------------------------------------
81 
82 
83 //--------------------------------------------------------------------------------------------------
87 //--------------------------------------------------------------------------------------------------
88 
89 
90 //--------------------------------------------------------------------------------------------------
94 //--------------------------------------------------------------------------------------------------
95 
96 
97 //--------------------------------------------------------------------------------------------------
101 //--------------------------------------------------------------------------------------------------
102 
103 
104 //--------------------------------------------------------------------------------------------------
108 //--------------------------------------------------------------------------------------------------
109 
110 
111 //--------------------------------------------------------------------------------------------------
115 //--------------------------------------------------------------------------------------------------
116 
117 
118 //--------------------------------------------------------------------------------------------------
122 //--------------------------------------------------------------------------------------------------
123 
124 
125 //--------------------------------------------------------------------------------------------------
129 //--------------------------------------------------------------------------------------------------
130 
131 
132 //--------------------------------------------------------------------------------------------------
138 //--------------------------------------------------------------------------------------------------
139 
140 
141 //--------------------------------------------------------------------------------------------------
145 //--------------------------------------------------------------------------------------------------
146 
147 
148 //--------------------------------------------------------------------------------------------------
153 //--------------------------------------------------------------------------------------------------
154 
155 
156 //--------------------------------------------------------------------------------------------------
160 //--------------------------------------------------------------------------------------------------
161 
162 
163 //--------------------------------------------------------------------------------------------------
167 //--------------------------------------------------------------------------------------------------
168 
169 
170 //--------------------------------------------------------------------------------------------------
174 //--------------------------------------------------------------------------------------------------
175 
176 
177 //--------------------------------------------------------------------------------------------------
181 //--------------------------------------------------------------------------------------------------
182 
183 
184 //--------------------------------------------------------------------------------------------------
188 //--------------------------------------------------------------------------------------------------
189 
190 
191 //--------------------------------------------------------------------------------------------------
195 //--------------------------------------------------------------------------------------------------
196 
197 
198 
199 //--------------------------------------------------------------------------------------------------
212 //--------------------------------------------------------------------------------------------------
214 (
215  taf_dcs_ProfileRef_t profileRef
217 );
218 
219 
220 
221 //--------------------------------------------------------------------------------------------------
227 //--------------------------------------------------------------------------------------------------
229 (
230  taf_dcs_ProfileRef_t profileRef,
234  void* contextPtr
236 );
237 
238 
239 
240 //--------------------------------------------------------------------------------------------------
253 //--------------------------------------------------------------------------------------------------
255 (
256  taf_dcs_ProfileRef_t profileRef
258 );
259 
260 
261 
262 //--------------------------------------------------------------------------------------------------
268 //--------------------------------------------------------------------------------------------------
270 (
271  taf_dcs_ProfileRef_t profileRef,
275  void* contextPtr
277 );
278 
279 
280 
281 //--------------------------------------------------------------------------------------------------
291 //--------------------------------------------------------------------------------------------------
293 (
294  taf_dcs_ProfileRef_t profileRef,
296  char* ifName,
298  size_t ifNameSize
300 );
301 
302 
303 
304 //--------------------------------------------------------------------------------------------------
310 //--------------------------------------------------------------------------------------------------
312 (
313  taf_dcs_ProfileRef_t profileRef,
317  void* contextPtr
319 );
320 
321 
322 
323 //--------------------------------------------------------------------------------------------------
327 //--------------------------------------------------------------------------------------------------
329 (
332 );
333 
334 
335 
336 //--------------------------------------------------------------------------------------------------
342 //--------------------------------------------------------------------------------------------------
344 (
347  void* contextPtr
349 );
350 
351 
352 
353 //--------------------------------------------------------------------------------------------------
357 //--------------------------------------------------------------------------------------------------
359 (
362 );
363 
364 
365 
366 //--------------------------------------------------------------------------------------------------
376 //--------------------------------------------------------------------------------------------------
378 (
379  uint8_t phoneId,
381  bool* isRoamingPtr,
383  taf_dcs_RoamingType_t* typePtr
385 );
386 
387 
388 
389 //--------------------------------------------------------------------------------------------------
397 //--------------------------------------------------------------------------------------------------
399 (
400  taf_dcs_ProfileRef_t profileRef,
402  char* ipAddr,
404  size_t ipAddrSize
406 );
407 
408 
409 
410 //--------------------------------------------------------------------------------------------------
418 //--------------------------------------------------------------------------------------------------
420 (
421  taf_dcs_ProfileRef_t profileRef,
423  char* gatewayAddr,
425  size_t gatewayAddrSize
427 );
428 
429 
430 
431 //--------------------------------------------------------------------------------------------------
439 //--------------------------------------------------------------------------------------------------
441 (
442  taf_dcs_ProfileRef_t profileRef,
444  char* dns1AddrStr,
446  size_t dns1AddrStrSize,
448  char* dns2AddrStr,
450  size_t dns2AddrStrSize
452 );
453 
454 
455 
456 //--------------------------------------------------------------------------------------------------
464 //--------------------------------------------------------------------------------------------------
466 (
467  taf_dcs_ProfileRef_t profileRef,
469  char* ipAddr,
471  size_t ipAddrSize
473 );
474 
475 
476 
477 //--------------------------------------------------------------------------------------------------
485 //--------------------------------------------------------------------------------------------------
487 (
488  taf_dcs_ProfileRef_t profileRef,
490  char* gatewayAddr,
492  size_t gatewayAddrSize
494 );
495 
496 
497 
498 //--------------------------------------------------------------------------------------------------
506 //--------------------------------------------------------------------------------------------------
508 (
509  taf_dcs_ProfileRef_t profileRef,
511  char* dns1AddrStr,
513  size_t dns1AddrStrSize,
515  char* dns2AddrStr,
517  size_t dns2AddrStrSize
519 );
520 
521 
522 
523 //--------------------------------------------------------------------------------------------------
531 //--------------------------------------------------------------------------------------------------
533 (
534  taf_dcs_ProfileRef_t profileRef,
536  taf_dcs_ConState_t* connectionStatePtr
538 );
539 
540 
541 
542 //--------------------------------------------------------------------------------------------------
550 //--------------------------------------------------------------------------------------------------
551 bool taf_dcs_IsIPv4
552 (
553  taf_dcs_ProfileRef_t profileRef
555 );
556 
557 
558 
559 //--------------------------------------------------------------------------------------------------
567 //--------------------------------------------------------------------------------------------------
568 bool taf_dcs_IsIPv6
569 (
570  taf_dcs_ProfileRef_t profileRef
572 );
573 
574 
575 
576 //--------------------------------------------------------------------------------------------------
584 //--------------------------------------------------------------------------------------------------
586 (
587  taf_dcs_ProfileRef_t profileRef,
589  taf_dcs_DataBearerTechnology_t* dlDataBearerTechPtrPtr,
591  taf_dcs_DataBearerTechnology_t* ulDataBearerTechPtrPtr
593 );
594 
595 
596 
597 //--------------------------------------------------------------------------------------------------
609 //--------------------------------------------------------------------------------------------------
611 (
612  taf_dcs_ProfileInfo_t* profileListPtr,
614  size_t* profileListSizePtr
616 );
617 
618 
619 
620 //--------------------------------------------------------------------------------------------------
629 //--------------------------------------------------------------------------------------------------
631 (
632  uint8_t phoneId,
634  taf_dcs_ProfileInfo_t* profileListPtr,
636  size_t* profileListSizePtr
638 );
639 
640 
641 
642 //--------------------------------------------------------------------------------------------------
649 //--------------------------------------------------------------------------------------------------
651 (
652  void
653 );
654 
655 
656 
657 //--------------------------------------------------------------------------------------------------
666 //--------------------------------------------------------------------------------------------------
668 (
669  uint8_t* phoneIdPtr,
671  uint32_t* profileIdPtr
673 );
674 
675 
676 
677 //--------------------------------------------------------------------------------------------------
688 //--------------------------------------------------------------------------------------------------
690 (
691  uint32_t profileId
693 );
694 
695 
696 
697 //--------------------------------------------------------------------------------------------------
705 //--------------------------------------------------------------------------------------------------
707 (
708  uint8_t phoneId,
710  uint32_t profileId
712 );
713 
714 
715 
716 //--------------------------------------------------------------------------------------------------
727 //--------------------------------------------------------------------------------------------------
729 (
730  uint32_t profileId
732 );
733 
734 
735 
736 //--------------------------------------------------------------------------------------------------
744 //--------------------------------------------------------------------------------------------------
746 (
747  uint8_t phoneId,
749  uint32_t profileId
751 );
752 
753 
754 
755 //--------------------------------------------------------------------------------------------------
763 //--------------------------------------------------------------------------------------------------
765 (
766  taf_dcs_ProfileRef_t profileRef
768 );
769 
770 
771 
772 //--------------------------------------------------------------------------------------------------
782 //--------------------------------------------------------------------------------------------------
784 (
785  taf_dcs_ProfileRef_t profileRef,
787  uint8_t* phoneIdPtr
789 );
790 
791 
792 
793 //--------------------------------------------------------------------------------------------------
802 //--------------------------------------------------------------------------------------------------
804 (
805  taf_dcs_ProfileRef_t profileRef,
807  const char* LE_NONNULL apnName
809 );
810 
811 
812 
813 //--------------------------------------------------------------------------------------------------
822 //--------------------------------------------------------------------------------------------------
824 (
825  taf_dcs_ProfileRef_t profileRef,
827  char* apnName,
829  size_t apnNameSize
831 );
832 
833 
834 
835 //--------------------------------------------------------------------------------------------------
843 //--------------------------------------------------------------------------------------------------
845 (
846  taf_dcs_ProfileRef_t profileRef,
848  taf_dcs_ApnType_t* apnTypePtr
850 );
851 
852 
853 
854 //--------------------------------------------------------------------------------------------------
863 //--------------------------------------------------------------------------------------------------
865 (
866  taf_dcs_ProfileRef_t profileRef,
868  taf_dcs_Pdp_t pdp
870 );
871 
872 
873 
874 //--------------------------------------------------------------------------------------------------
884 //--------------------------------------------------------------------------------------------------
886 (
887  taf_dcs_ProfileRef_t profileRef
889 );
890 
891 
892 
893 //--------------------------------------------------------------------------------------------------
902 //--------------------------------------------------------------------------------------------------
904 (
905  taf_dcs_ProfileRef_t profileRef,
907  taf_dcs_Auth_t auth,
909  const char* LE_NONNULL userName,
911  const char* LE_NONNULL password
913 );
914 
915 
916 
917 //--------------------------------------------------------------------------------------------------
926 //--------------------------------------------------------------------------------------------------
928 (
929  taf_dcs_ProfileRef_t profileRef,
931  taf_dcs_Auth_t* authPtr,
933  char* userName,
935  size_t userNameSize,
937  char* password,
939  size_t passwordSize
941 );
942 
943 
944 
945 //--------------------------------------------------------------------------------------------------
954 //--------------------------------------------------------------------------------------------------
956 (
957  const char* LE_NONNULL ifName,
959  uint32_t* profileIdPtr
961 );
962 
963 
964 
965 //--------------------------------------------------------------------------------------------------
974 //--------------------------------------------------------------------------------------------------
976 (
977  const char* LE_NONNULL ifName,
979  uint8_t* phoneIdPtr
981 );
982 
983 
984 #endif // TAF_DCS_INTERFACE_H_INCLUDE_GUARD
le_result_t taf_dcs_StopSession(taf_dcs_ProfileRef_t profileRef)
Definition: taf_dcs_client.c:615
void taf_dcs_StartSessionAsync(taf_dcs_ProfileRef_t profileRef, taf_dcs_AsyncSessionHandlerFunc_t handlerPtr, void *contextPtr)
Definition: taf_dcs_client.c:583
taf_dcs_ProfileRef_t taf_dcs_GetProfileEx(uint8_t phoneId, uint32_t profileId)
Definition: taf_dcs_client.c:1238
struct taf_dcs_SessionStateHandler * taf_dcs_SessionStateHandlerRef_t
Definition: taf_dcs_common.h:368
le_result_t taf_dcs_SetDefaultProfileIndexEx(uint8_t phoneId, uint32_t profileId)
Definition: taf_dcs_client.c:1190
void taf_dcs_StopSessionAsync(taf_dcs_ProfileRef_t profileRef, taf_dcs_AsyncSessionHandlerFunc_t handlerPtr, void *contextPtr)
Definition: taf_dcs_client.c:634
void(* taf_dcs_AsyncSessionHandlerFunc_t)(taf_dcs_ProfileRef_t profileRef, le_result_t result, void *contextPtr)
Definition: taf_dcs_common.h:400
le_result_t taf_dcs_GetPhoneIdByInterfaceName(const char *LE_NONNULL ifName, uint8_t *phoneIdPtr)
Definition: taf_dcs_client.c:1528
le_result_t taf_dcs_GetAPN(taf_dcs_ProfileRef_t profileRef, char *apnName, size_t apnNameSize)
Definition: taf_dcs_client.c:1335
le_result_t taf_dcs_GetProfileList(taf_dcs_ProfileInfo_t *profileListPtr, size_t *profileListSizePtr)
Definition: taf_dcs_client.c:1071
void taf_dcs_RemoveSessionStateHandler(taf_dcs_SessionStateHandlerRef_t handlerRef)
Definition: taf_dcs_client.c:711
taf_dcs_DataBearerTechnology_t
Definition: taf_dcs_common.h:178
uint32_t taf_dcs_Auth_t
Definition: taf_dcs_common.h:293
taf_dcs_ProfileRef_t taf_dcs_GetProfile(uint32_t profileId)
Definition: taf_dcs_client.c:1217
le_result_t taf_dcs_SetPDP(taf_dcs_ProfileRef_t profileRef, taf_dcs_Pdp_t pdp)
Definition: taf_dcs_client.c:1387
le_msg_SessionRef_t taf_dcs_GetClientSessionRef(void)
Definition: taf_dcs_server.c:282
struct taf_dcs_RoamingStatusHandler * taf_dcs_RoamingStatusHandlerRef_t
Definition: taf_dcs_common.h:376
le_result_t taf_dcs_SetDefaultProfileIndex(uint32_t profileId)
Definition: taf_dcs_client.c:1169
le_result_t taf_dcs_GetSessionState(taf_dcs_ProfileRef_t profileRef, taf_dcs_ConState_t *connectionStatePtr)
Definition: taf_dcs_client.c:974
void taf_dcs_RemoveRoamingStatusHandler(taf_dcs_RoamingStatusHandlerRef_t handlerRef)
Definition: taf_dcs_client.c:750
le_result_t taf_dcs_GetIPv4Address(taf_dcs_ProfileRef_t profileRef, char *ipAddr, size_t ipAddrSize)
Definition: taf_dcs_client.c:800
taf_dcs_Pdp_t taf_dcs_GetPDP(taf_dcs_ProfileRef_t profileRef)
Definition: taf_dcs_client.c:1413
le_result_t taf_dcs_GetDefaultPhoneIdAndProfileId(uint8_t *phoneIdPtr, uint32_t *profileIdPtr)
Definition: taf_dcs_client.c:1142
le_result_t taf_dcs_GetIPv6GatewayAddress(taf_dcs_ProfileRef_t profileRef, char *gatewayAddr, size_t gatewayAddrSize)
Definition: taf_dcs_client.c:914
le_result_t taf_dcs_GetInterfaceName(taf_dcs_ProfileRef_t profileRef, char *ifName, size_t ifNameSize)
Definition: taf_dcs_client.c:663
le_result_t taf_dcs_SetAuthentication(taf_dcs_ProfileRef_t profileRef, taf_dcs_Auth_t auth, const char *LE_NONNULL userName, const char *LE_NONNULL password)
Definition: taf_dcs_client.c:1435
Definition: taf_dcs_common.h:384
taf_dcs_ConState_t
Definition: taf_dcs_common.h:235
le_msg_ServiceRef_t taf_dcs_GetServiceRef(void)
Definition: taf_dcs_server.c:269
le_result_t taf_dcs_GetAuthentication(taf_dcs_ProfileRef_t profileRef, taf_dcs_Auth_t *authPtr, char *userName, size_t userNameSize, char *password, size_t passwordSize)
Definition: taf_dcs_client.c:1466
le_result_t taf_dcs_GetIPv6Address(taf_dcs_ProfileRef_t profileRef, char *ipAddr, size_t ipAddrSize)
Definition: taf_dcs_client.c:887
le_result_t taf_dcs_StartSession(taf_dcs_ProfileRef_t profileRef)
Definition: taf_dcs_client.c:564
le_result_t taf_dcs_GetIPv6DNSAddresses(taf_dcs_ProfileRef_t profileRef, char *dns1AddrStr, size_t dns1AddrStrSize, char *dns2AddrStr, size_t dns2AddrStrSize)
Definition: taf_dcs_client.c:941
uint32_t taf_dcs_ApnType_t
Definition: taf_dcs_common.h:313
void(* taf_dcs_SessionStateHandlerFunc_t)(taf_dcs_ProfileRef_t profileRef, taf_dcs_ConState_t state, const taf_dcs_StateInfo_t *LE_NONNULL infoPtr, void *contextPtr)
Definition: taf_dcs_common.h:415
bool taf_dcs_IsIPv4(taf_dcs_ProfileRef_t profileRef)
Definition: taf_dcs_client.c:998
le_result_t taf_dcs_GetRoamingStatus(uint8_t phoneId, bool *isRoamingPtr, taf_dcs_RoamingType_t *typePtr)
Definition: taf_dcs_client.c:773
le_result_t taf_dcs_GetDataBearerTechnology(taf_dcs_ProfileRef_t profileRef, taf_dcs_DataBearerTechnology_t *dlDataBearerTechPtrPtr, taf_dcs_DataBearerTechnology_t *ulDataBearerTechPtrPtr)
Definition: taf_dcs_client.c:1040
le_result_t taf_dcs_SetAPN(taf_dcs_ProfileRef_t profileRef, const char *LE_NONNULL apnName)
Definition: taf_dcs_client.c:1310
le_result_t taf_dcs_GetPhoneId(taf_dcs_ProfileRef_t profileRef, uint8_t *phoneIdPtr)
Definition: taf_dcs_client.c:1285
le_result_t taf_dcs_GetProfileListEx(uint8_t phoneId, taf_dcs_ProfileInfo_t *profileListPtr, size_t *profileListSizePtr)
Definition: taf_dcs_client.c:1096
taf_dcs_SessionStateHandlerRef_t taf_dcs_AddSessionStateHandler(taf_dcs_ProfileRef_t profileRef, taf_dcs_SessionStateHandlerFunc_t handlerPtr, void *contextPtr)
Definition: taf_dcs_client.c:688
uint32_t taf_dcs_GetDefaultProfileIndex(void)
Definition: taf_dcs_client.c:1122
#define LE_NONNULL
Definition: le_basics.h:368
taf_dcs_Pdp_t
Definition: taf_dcs_common.h:254
le_result_t
Definition: le_basics.h:45
void(* taf_dcs_RoamingStatusHandlerFunc_t)(const taf_dcs_RoamingStatusInd_t *LE_NONNULL roamingStatusIndPtr, void *contextPtr)
Definition: taf_dcs_common.h:432
struct taf_dcs_Profile * taf_dcs_ProfileRef_t
Definition: taf_dcs_common.h:134
taf_dcs_RoamingType_t
Definition: taf_dcs_common.h:273
struct le_msg_Session * le_msg_SessionRef_t
Definition: le_messaging.h:860
taf_dcs_RoamingStatusHandlerRef_t taf_dcs_AddRoamingStatusHandler(taf_dcs_RoamingStatusHandlerFunc_t handlerPtr, void *contextPtr)
Definition: taf_dcs_client.c:730
le_result_t taf_dcs_GetIPv4GatewayAddress(taf_dcs_ProfileRef_t profileRef, char *gatewayAddr, size_t gatewayAddrSize)
Definition: taf_dcs_client.c:827
uint32_t taf_dcs_GetProfileIndex(taf_dcs_ProfileRef_t profileRef)
Definition: taf_dcs_client.c:1262
void taf_dcs_AdvertiseService(void)
Definition: taf_dcs_server.c:296
le_result_t taf_dcs_GetProfileIdByInterfaceName(const char *LE_NONNULL ifName, uint32_t *profileIdPtr)
Definition: taf_dcs_client.c:1503
bool taf_dcs_IsIPv6(taf_dcs_ProfileRef_t profileRef)
Definition: taf_dcs_client.c:1019
le_result_t taf_dcs_GetApnTypes(taf_dcs_ProfileRef_t profileRef, taf_dcs_ApnType_t *apnTypePtr)
Definition: taf_dcs_client.c:1362
le_result_t taf_dcs_GetIPv4DNSAddresses(taf_dcs_ProfileRef_t profileRef, char *dns1AddrStr, size_t dns1AddrStrSize, char *dns2AddrStr, size_t dns2AddrStrSize)
Definition: taf_dcs_client.c:854