All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
le_mcc.h
Go to the documentation of this file.
1 
9 #ifndef LEGATO_MCC_H_INCLUDE_GUARD
10 #define LEGATO_MCC_H_INCLUDE_GUARD
11 
12 
13 #include "legato.h"
14 #include "le_mdm_defs.h"
15 #include "le_audio.h"
16 
17 //--------------------------------------------------------------------------------------------------
18 // Symbol and Enum definitions.
19 //--------------------------------------------------------------------------------------------------
20 
21 //--------------------------------------------------------------------------------------------------
25 //--------------------------------------------------------------------------------------------------
26 typedef enum
27 {
33 }
35 
36 //--------------------------------------------------------------------------------------------------
40 //--------------------------------------------------------------------------------------------------
41 typedef enum
42 {
51 }
53 
54 //--------------------------------------------------------------------------------------------------
58 //--------------------------------------------------------------------------------------------------
59 typedef enum
60 {
67 }
69 
70 //--------------------------------------------------------------------------------------------------
71 // API type definitions.
72 //--------------------------------------------------------------------------------------------------
73 
74 //--------------------------------------------------------------------------------------------------
78 //--------------------------------------------------------------------------------------------------
79 typedef struct le_mcc_profile_Obj* le_mcc_profile_ObjRef_t;
80 
81 //--------------------------------------------------------------------------------------------------
85 //--------------------------------------------------------------------------------------------------
86 typedef struct le_mcc_profile_StateChangeHandler* le_mcc_profile_StateChangeHandlerRef_t;
87 
88 //--------------------------------------------------------------------------------------------------
92 //--------------------------------------------------------------------------------------------------
93 typedef struct le_mcc_profile_CallEventHandler* le_mcc_profile_CallEventHandlerRef_t;
94 
95 //--------------------------------------------------------------------------------------------------
99 //--------------------------------------------------------------------------------------------------
100 typedef struct le_mcc_call_Obj* le_mcc_call_ObjRef_t;
101 
102 
103 //--------------------------------------------------------------------------------------------------
104 // Event handler definitions.
105 //--------------------------------------------------------------------------------------------------
106 
107 //--------------------------------------------------------------------------------------------------
114 //--------------------------------------------------------------------------------------------------
116 (
117  le_mcc_profile_State_t newState,
118  void* contextPtr
119 );
120 
121 //--------------------------------------------------------------------------------------------------
129 //--------------------------------------------------------------------------------------------------
131 (
132  le_mcc_call_ObjRef_t callRef,
133  le_mcc_call_Event_t event,
134  void* contextPtr
135 );
136 
137 
138 //--------------------------------------------------------------------------------------------------
139 // API Function definitions.
140 //--------------------------------------------------------------------------------------------------
141 
142 
143 //--------------------------------------------------------------------------------------------------
144 // CALL PROFILE.
145 //--------------------------------------------------------------------------------------------------
146 
147 //--------------------------------------------------------------------------------------------------
156 //--------------------------------------------------------------------------------------------------
158 (
159  const char* profileNamePtr
160 );
161 
162 //--------------------------------------------------------------------------------------------------
169 //--------------------------------------------------------------------------------------------------
171 (
172  le_mcc_profile_ObjRef_t profileRef
173 );
174 
175 //--------------------------------------------------------------------------------------------------
184 //--------------------------------------------------------------------------------------------------
186 (
187  le_mcc_profile_ObjRef_t profileRef
188 );
189 
190 //--------------------------------------------------------------------------------------------------
199 //--------------------------------------------------------------------------------------------------
201 (
202  le_mcc_profile_ObjRef_t profileRef,
204  void* contextPtr
205 );
206 
207 //--------------------------------------------------------------------------------------------------
214 //--------------------------------------------------------------------------------------------------
216 (
218 );
219 
220 //--------------------------------------------------------------------------------------------------
232 //--------------------------------------------------------------------------------------------------
234 (
235  le_mcc_profile_ObjRef_t profileRef,
237  void* contextPtr
238 );
239 
240 //--------------------------------------------------------------------------------------------------
247 //--------------------------------------------------------------------------------------------------
249 (
251 );
252 
253 //--------------------------------------------------------------------------------------------------
254 // CALL.
255 //--------------------------------------------------------------------------------------------------
256 
257 //--------------------------------------------------------------------------------------------------
271 //--------------------------------------------------------------------------------------------------
273 (
274  le_mcc_profile_ObjRef_t profileRef,
275  const char* destinationPtr
276 );
277 
278 //--------------------------------------------------------------------------------------------------
288 //--------------------------------------------------------------------------------------------------
290 (
291  le_mcc_call_ObjRef_t callRef
292 );
293 
294 //--------------------------------------------------------------------------------------------------
310 //--------------------------------------------------------------------------------------------------
312 (
313  le_mcc_call_ObjRef_t callRef
314 );
315 
316 //--------------------------------------------------------------------------------------------------
325 //--------------------------------------------------------------------------------------------------
327 (
328  le_mcc_call_ObjRef_t callRef
329 );
330 
331 //--------------------------------------------------------------------------------------------------
347 //--------------------------------------------------------------------------------------------------
349 (
350  le_mcc_call_ObjRef_t callRef,
351  char* telPtr,
352  size_t len
353 );
354 
355 //--------------------------------------------------------------------------------------------------
364 //--------------------------------------------------------------------------------------------------
366 (
367  le_mcc_call_ObjRef_t callRef
368 );
369 
370 //--------------------------------------------------------------------------------------------------
380 //--------------------------------------------------------------------------------------------------
382 (
383  le_mcc_call_ObjRef_t callRef
384 );
385 
386 //--------------------------------------------------------------------------------------------------
396 //--------------------------------------------------------------------------------------------------
398 (
399  le_mcc_call_ObjRef_t callRef
400 );
401 
402 //--------------------------------------------------------------------------------------------------
412 //--------------------------------------------------------------------------------------------------
414 (
415  le_mcc_call_ObjRef_t callRef
416 );
417 
418 //--------------------------------------------------------------------------------------------------
429 //--------------------------------------------------------------------------------------------------
431 (
432  le_mcc_call_ObjRef_t callRef
433 );
434 
435 
436 #endif // LEGATO_MCC_H_INCLUDE_GUARD
Local party ended the call.
Definition: le_mcc.h:64
le_result_t le_mcc_call_HangUp(le_mcc_call_ObjRef_t callRef)
struct le_mcc_profile_Obj * le_mcc_profile_ObjRef_t
Definition: le_mcc.h:79
le_mcc_call_TerminationReason_t
Definition: le_mcc.h:59
void(* le_mcc_profile_CallEventHandlerFunc_t)(le_mcc_call_ObjRef_t callRef, le_mcc_call_Event_t event, void *contextPtr)
Definition: le_mcc.h:131
This profile is currently being forwarded to another number.
Definition: le_mcc.h:30
struct le_audio_Stream * le_audio_StreamRef_t
Definition: le_audio.h:24
le_result_t
Definition: le_basics.h:34
Network could not complete the call.
Definition: le_mcc.h:61
le_mcc_call_ObjRef_t le_mcc_profile_CreateCall(le_mcc_profile_ObjRef_t profileRef, const char *destinationPtr)
Call has terminated.
Definition: le_mcc.h:48
struct le_mcc_profile_StateChangeHandler * le_mcc_profile_StateChangeHandlerRef_t
Definition: le_mcc.h:86
void le_mcc_call_Delete(le_mcc_call_ObjRef_t callRef)
bool le_mcc_call_IsConnected(le_mcc_call_ObjRef_t callRef)
Call has been established, and is media is active.
Definition: le_mcc.h:47
Remote party transferred or forwarded the call.
Definition: le_mcc.h:50
This profile is in "Do Not Disturb" mode.
Definition: le_mcc.h:31
le_mcc_call_TerminationReason_t le_mcc_call_GetTerminationReason(le_mcc_call_ObjRef_t callRef)
Remote party ended the call.
Definition: le_mcc.h:65
struct le_mcc_profile_CallEventHandler * le_mcc_profile_CallEventHandlerRef_t
Definition: le_mcc.h:93
le_mcc_profile_CallEventHandlerRef_t le_mcc_profile_AddCallEventHandler(le_mcc_profile_ObjRef_t profileRef, le_mcc_profile_CallEventHandlerFunc_t handlerFuncPtr, void *contextPtr)
void le_mcc_profile_RemoveStateChangeHandler(le_mcc_profile_StateChangeHandlerRef_t handlerRef)
le_audio_StreamRef_t le_mcc_call_GetRxAudioStream(le_mcc_call_ObjRef_t callRef)
Incoming call attempt (new call).
Definition: le_mcc.h:43
le_audio_StreamRef_t le_mcc_call_GetTxAudioStream(le_mcc_call_ObjRef_t callRef)
le_result_t le_mcc_call_GetRemoteTel(le_mcc_call_ObjRef_t callRef, char *telPtr, size_t len)
This profile is available, nothing is currently happening on it.
Definition: le_mcc.h:29
void(* le_mcc_profile_StateChangeHandlerFunc_t)(le_mcc_profile_State_t newState, void *contextPtr)
Definition: le_mcc.h:116
Far end is now alerting its user (outgoing call).
Definition: le_mcc.h:44
le_mcc_profile_ObjRef_t le_mcc_profile_GetByName(const char *profileNamePtr)
le_mcc_profile_State_t
Definition: le_mcc.h:26
Definition: le_mcc.h:45
le_mcc_call_Event_t
Definition: le_mcc.h:41
This profile is not available.
Definition: le_mcc.h:28
struct le_mcc_call_Obj * le_mcc_call_ObjRef_t
Definition: le_mcc.h:100
void le_mcc_profile_Release(le_mcc_profile_ObjRef_t profileRef)
void le_mcc_profile_RemoveCallEventHandler(le_mcc_profile_CallEventHandlerRef_t handlerRef)
le_result_t le_mcc_call_Start(le_mcc_call_ObjRef_t callRef)
Remote address could not be resolved.
Definition: le_mcc.h:62
Undefined reason.
Definition: le_mcc.h:66
le_result_t le_mcc_call_Answer(le_mcc_call_ObjRef_t callRef)
le_mcc_profile_State_t le_mcc_profile_GetState(le_mcc_profile_ObjRef_t profileRef)
Remote party has put the call on hold.
Definition: le_mcc.h:49
Callee is currently busy and cannot take the call.
Definition: le_mcc.h:63
This profile is currently in use.
Definition: le_mcc.h:32
le_mcc_profile_StateChangeHandlerRef_t le_mcc_profile_AddStateChangeHandler(le_mcc_profile_ObjRef_t profileRef, le_mcc_profile_StateChangeHandlerFunc_t handlerFuncPtr, void *contextPtr)