le_voicecall_interface.h
Go to the documentation of this file.
36 * A voice call can be started using le_voicecall_Start() with the destination identifier passed as45 * indicating it's now connected. If the state of the voice call changes, then the handler will be71 * can be set up thanks to the audio API (cf. @ref c_audio). An example of how to set up the audio path:94 * Application have to use le_voicecall_Delete() to release @ref le_voicecall_CallRef_t voice call125 //--------------------------------------------------------------------------------------------------129 //--------------------------------------------------------------------------------------------------132 //--------------------------------------------------------------------------------------------------135 * Connect the current client thread to the service providing this API. Block until the service is138 * For each thread that wants to use this API, either ConnectService or TryConnectService must be139 * called before any other functions in this API. Normally, ConnectService is automatically called144 //--------------------------------------------------------------------------------------------------150 //--------------------------------------------------------------------------------------------------153 * Try to connect the current client thread to the service providing this API. Return with an error156 * For each thread that wants to use this API, either ConnectService or TryConnectService must be157 * called before any other functions in this API. Normally, ConnectService is automatically called166 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).169 //--------------------------------------------------------------------------------------------------175 //--------------------------------------------------------------------------------------------------179 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants182 //--------------------------------------------------------------------------------------------------189 //--------------------------------------------------------------------------------------------------195 * longer a connection to the service, and the functions in this API can't be used. For details, see200 //--------------------------------------------------------------------------------------------------207 //--------------------------------------------------------------------------------------------------211 //--------------------------------------------------------------------------------------------------214 //--------------------------------------------------------------------------------------------------218 //--------------------------------------------------------------------------------------------------221 //--------------------------------------------------------------------------------------------------225 //--------------------------------------------------------------------------------------------------228 //--------------------------------------------------------------------------------------------------232 //--------------------------------------------------------------------------------------------------235 //--------------------------------------------------------------------------------------------------239 //--------------------------------------------------------------------------------------------------242 //--------------------------------------------------------------------------------------------------249 //--------------------------------------------------------------------------------------------------258 //--------------------------------------------------------------------------------------------------262 //--------------------------------------------------------------------------------------------------269 //--------------------------------------------------------------------------------------------------277 //--------------------------------------------------------------------------------------------------285 //--------------------------------------------------------------------------------------------------293 //--------------------------------------------------------------------------------------------------300 //--------------------------------------------------------------------------------------------------309 //--------------------------------------------------------------------------------------------------316 //--------------------------------------------------------------------------------------------------324 //--------------------------------------------------------------------------------------------------331 //--------------------------------------------------------------------------------------------------340 //--------------------------------------------------------------------------------------------------349 //--------------------------------------------------------------------------------------------------356 //--------------------------------------------------------------------------------------------------363 //--------------------------------------------------------------------------------------------------370 //--------------------------------------------------------------------------------------------------le_result_t le_voicecall_TryConnectService(void)le_audio_StreamRef_t le_voicecall_GetRxAudioStream(le_voicecall_CallRef_t reference)le_voicecall_TerminationReason_tDefinition: le_voicecall_common.h:75le_result_t le_voicecall_Delete(le_voicecall_CallRef_t reference)le_voicecall_CallRef_t le_voicecall_Start(const char *LE_NONNULL DestinationID)void(* le_voicecall_StateHandlerFunc_t)(le_voicecall_CallRef_t reference, const char *LE_NONNULL identifier, le_voicecall_Event_t event, void *contextPtr)Definition: le_voicecall_common.h:107le_voicecall_StateHandlerRef_t le_voicecall_AddStateHandler(le_voicecall_StateHandlerFunc_t handlerPtr, void *contextPtr)le_audio_StreamRef_t le_voicecall_GetTxAudioStream(le_voicecall_CallRef_t reference)le_result_t le_voicecall_Answer(le_voicecall_CallRef_t reference)void le_voicecall_DisconnectService(void)void le_voicecall_RemoveStateHandler(le_voicecall_StateHandlerRef_t handlerRef)le_result_t le_voicecall_GetTerminationReason(le_voicecall_CallRef_t reference, le_voicecall_TerminationReason_t *reasonPtr)void(* le_voicecall_DisconnectHandler_t)(void *)Definition: le_voicecall_interface.h:130struct le_voicecall_Call * le_voicecall_CallRef_tDefinition: le_voicecall_common.h:37void le_voicecall_ConnectService(void)LE_FULL_API void le_voicecall_SetServerDisconnectHandler(le_voicecall_DisconnectHandler_t disconnectHandler, void *contextPtr)le_result_t le_voicecall_End(le_voicecall_CallRef_t reference)struct le_voicecall_StateHandler * le_voicecall_StateHandlerRef_tDefinition: le_voicecall_common.h:98