Snapdragon® Telematics Application Framework (TelAF) Interface Specification
taf_voicecall_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_VOICECALL_COMMON_H_INCLUDE_GUARD
11 #define TAF_VOICECALL_COMMON_H_INCLUDE_GUARD
12 
13 
14 #include "legato.h"
15 
16 // Interface specific includes
17 #include "taf_types_common.h"
18 
19 #define IFGEN_TAF_VOICECALL_PROTOCOL_ID "9d88c6710fe7cde0980776c02d1464d1"
20 #define IFGEN_TAF_VOICECALL_MSG_SIZE 38
21 
22 
23 
24 //--------------------------------------------------------------------------------------------------
28 //--------------------------------------------------------------------------------------------------
29 #define TAF_VOICECALL_EVENT_CONNECTED 2
30 
31 //--------------------------------------------------------------------------------------------------
34 //--------------------------------------------------------------------------------------------------
35 #define TAF_VOICECALL_EVENT_TERMINATED 3
36 
37 //--------------------------------------------------------------------------------------------------
40 //--------------------------------------------------------------------------------------------------
41 #define TAF_VOICECALL_EVENT_BUSY 5
42 
43 //--------------------------------------------------------------------------------------------------
47 //--------------------------------------------------------------------------------------------------
48 #define TAF_VOICECALL_TERM_NETWORK_FAIL 1
49 
50 //--------------------------------------------------------------------------------------------------
53 //--------------------------------------------------------------------------------------------------
54 #define TAF_VOICECALL_TERM_BAD_ADDRESS 2
55 
56 //--------------------------------------------------------------------------------------------------
59 //--------------------------------------------------------------------------------------------------
60 #define TAF_VOICECALL_TERM_BUSY 3
61 
62 //--------------------------------------------------------------------------------------------------
65 //--------------------------------------------------------------------------------------------------
66 #define TAF_VOICECALL_TERM_LOCAL_ENDED 4
67 
68 //--------------------------------------------------------------------------------------------------
71 //--------------------------------------------------------------------------------------------------
72 #define TAF_VOICECALL_TERM_REMOTE_ENDED 5
73 
74 //--------------------------------------------------------------------------------------------------
77 //--------------------------------------------------------------------------------------------------
78 #define TAF_VOICECALL_TERM_UNDEFINED 6
79 
80 //--------------------------------------------------------------------------------------------------
84 //--------------------------------------------------------------------------------------------------
85 typedef struct taf_voicecall_Call* taf_voicecall_CallRef_t;
86 
87 
88 //--------------------------------------------------------------------------------------------------
92 //--------------------------------------------------------------------------------------------------
93 typedef enum
94 {
123 }
125 
126 
127 //--------------------------------------------------------------------------------------------------
131 //--------------------------------------------------------------------------------------------------
132 typedef enum
133 {
152 }
154 
155 
156 //--------------------------------------------------------------------------------------------------
160 //--------------------------------------------------------------------------------------------------
161 typedef struct taf_voicecall_StateHandler* taf_voicecall_StateHandlerRef_t;
162 
163 
164 //--------------------------------------------------------------------------------------------------
167 //--------------------------------------------------------------------------------------------------
168 typedef void (*taf_voicecall_StateHandlerFunc_t)
169 (
170  taf_voicecall_CallRef_t reference,
172  const char* LE_NONNULL identifer,
174  taf_voicecall_Event_t event,
176  void* contextPtr
178 );
179 
180 
181 //--------------------------------------------------------------------------------------------------
185 //--------------------------------------------------------------------------------------------------
187 (
188  void
189 );
190 
191 
192 //--------------------------------------------------------------------------------------------------
196 //--------------------------------------------------------------------------------------------------
198 (
199  void
200 );
201 
202 
203 //--------------------------------------------------------------------------------------------------
207 //--------------------------------------------------------------------------------------------------
209 (
210  le_msg_SessionRef_t _ifgen_sessionRef
211 );
212 
213 
214 //--------------------------------------------------------------------------------------------------
218 //--------------------------------------------------------------------------------------------------
220 (
221  le_msg_SessionRef_t _ifgen_sessionRef,
222  bool isBlocking
223 );
224 
225 //--------------------------------------------------------------------------------------------------
229 //--------------------------------------------------------------------------------------------------
231 (
232  le_msg_SessionRef_t _ifgen_sessionRef,
235  void* contextPtr
237 );
238 
239 //--------------------------------------------------------------------------------------------------
243 //--------------------------------------------------------------------------------------------------
245 (
246  le_msg_SessionRef_t _ifgen_sessionRef,
249 );
250 
251 //--------------------------------------------------------------------------------------------------
259 //--------------------------------------------------------------------------------------------------
261 (
262  le_msg_SessionRef_t _ifgen_sessionRef,
263  const char* LE_NONNULL destinationID,
265  uint8_t phoneId
267 );
268 
269 //--------------------------------------------------------------------------------------------------
277 //--------------------------------------------------------------------------------------------------
279 (
280  le_msg_SessionRef_t _ifgen_sessionRef,
281  taf_voicecall_CallRef_t reference
283 );
284 
285 //--------------------------------------------------------------------------------------------------
293 //--------------------------------------------------------------------------------------------------
295 (
296  le_msg_SessionRef_t _ifgen_sessionRef,
297  taf_voicecall_CallRef_t reference
299 );
300 
301 //--------------------------------------------------------------------------------------------------
315 //--------------------------------------------------------------------------------------------------
317 (
318  le_msg_SessionRef_t _ifgen_sessionRef,
319  taf_voicecall_CallRef_t reference
321 );
322 
323 //--------------------------------------------------------------------------------------------------
332 //--------------------------------------------------------------------------------------------------
334 (
335  le_msg_SessionRef_t _ifgen_sessionRef,
336  taf_voicecall_CallRef_t reference,
340 );
341 
342 //--------------------------------------------------------------------------------------------------
350 //--------------------------------------------------------------------------------------------------
352 (
353  le_msg_SessionRef_t _ifgen_sessionRef,
354  taf_voicecall_CallRef_t reference
356 );
357 
358 //--------------------------------------------------------------------------------------------------
366 //--------------------------------------------------------------------------------------------------
368 (
369  le_msg_SessionRef_t _ifgen_sessionRef,
370  taf_voicecall_CallRef_t reference
372 );
373 
374 //--------------------------------------------------------------------------------------------------
383 //--------------------------------------------------------------------------------------------------
385 (
386  le_msg_SessionRef_t _ifgen_sessionRef,
387  taf_voicecall_CallRef_t reference
389 );
390 
391 #endif // TAF_VOICECALL_COMMON_H_INCLUDE_GUARD
LE_SHARED taf_voicecall_StateHandlerRef_t ifgen_taf_voicecall_AddStateHandler(le_msg_SessionRef_t _ifgen_sessionRef, taf_voicecall_StateHandlerFunc_t handlerPtr, void *contextPtr)
Map to legacy bad address.
Definition: taf_voicecall_common.h:138
No remote response.
Definition: taf_voicecall_common.h:150
Not supported.
Definition: taf_voicecall_common.h:105
LE_SHARED le_result_t ifgen_taf_voicecall_Hold(le_msg_SessionRef_t _ifgen_sessionRef, taf_voicecall_CallRef_t reference)
Active call; map to legacy connected.
Definition: taf_voicecall_common.h:97
Call answer failed.
Definition: taf_voicecall_common.h:109
Map to legacy network fail.
Definition: taf_voicecall_common.h:136
Call hold failed.
Definition: taf_voicecall_common.h:117
LE_SHARED taf_voicecall_CallRef_t ifgen_taf_voicecall_Start(le_msg_SessionRef_t _ifgen_sessionRef, const char *LE_NONNULL destinationID, uint8_t phoneId)
Normal call end.
Definition: taf_voicecall_common.h:134
LE_SHARED void ifgen_taf_voicecall_CleanupCommonData(le_msg_SessionRef_t _ifgen_sessionRef)
Call end failed.
Definition: taf_voicecall_common.h:107
On hold call.
Definition: taf_voicecall_common.h:113
taf_voicecall_Event_t
Definition: taf_voicecall_common.h:93
Incoming call; not answered yet.
Definition: taf_voicecall_common.h:111
Call rejected.
Definition: taf_voicecall_common.h:148
void(* taf_voicecall_StateHandlerFunc_t)(taf_voicecall_CallRef_t reference, const char *LE_NONNULL identifer, taf_voicecall_Event_t event, void *contextPtr)
Definition: taf_voicecall_common.h:169
LE_SHARED le_result_t ifgen_taf_voicecall_Delete(le_msg_SessionRef_t _ifgen_sessionRef, taf_voicecall_CallRef_t reference)
End cause undefined for TelAF.
Definition: taf_voicecall_common.h:146
LE_SHARED le_result_t ifgen_taf_voicecall_End(le_msg_SessionRef_t _ifgen_sessionRef, taf_voicecall_CallRef_t reference)
Call resume failed.
Definition: taf_voicecall_common.h:119
Call swap failed.
Definition: taf_voicecall_common.h:121
LE_SHARED le_result_t ifgen_taf_voicecall_GetEndCause(le_msg_SessionRef_t _ifgen_sessionRef, taf_voicecall_CallRef_t reference, taf_voicecall_CallEndCause_t *causePtr)
Not supported.
Definition: taf_voicecall_common.h:101
Waiting call; map to legacy busy.
Definition: taf_voicecall_common.h:103
LE_SHARED le_result_t ifgen_taf_voicecall_Resume(le_msg_SessionRef_t _ifgen_sessionRef, taf_voicecall_CallRef_t reference)
LE_SHARED void ifgen_taf_voicecall_RemoveStateHandler(le_msg_SessionRef_t _ifgen_sessionRef, taf_voicecall_StateHandlerRef_t handlerRef)
MO call; dialing.
Definition: taf_voicecall_common.h:115
struct taf_voicecall_StateHandler * taf_voicecall_StateHandlerRef_t
Definition: taf_voicecall_common.h:161
LE_SHARED bool ifgen_taf_voicecall_HasLocalBinding(void)
Call end.
Definition: taf_voicecall_common.h:99
struct taf_voicecall_Call * taf_voicecall_CallRef_t
Definition: taf_voicecall_common.h:85
LE_SHARED void ifgen_taf_voicecall_InitCommonData(void)
LE_SHARED le_result_t ifgen_taf_voicecall_Answer(le_msg_SessionRef_t _ifgen_sessionRef, taf_voicecall_CallRef_t reference)
LE_SHARED le_result_t ifgen_taf_voicecall_OpenSession(le_msg_SessionRef_t _ifgen_sessionRef, bool isBlocking)
Alerting call; MO only.
Definition: taf_voicecall_common.h:95
#define LE_NONNULL
Definition: le_basics.h:368
le_result_t
Definition: le_basics.h:45
Not supported.
Definition: taf_voicecall_common.h:142
struct le_msg_Session * le_msg_SessionRef_t
Definition: le_messaging.h:860
taf_voicecall_CallEndCause_t
Definition: taf_voicecall_common.h:132
#define LE_SHARED
Definition: le_basics.h:297
Not supported.
Definition: taf_voicecall_common.h:144
Remote busy.
Definition: taf_voicecall_common.h:140
LE_SHARED le_result_t ifgen_taf_voicecall_Swap(le_msg_SessionRef_t _ifgen_sessionRef, taf_voicecall_CallRef_t reference)