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 call121 //--------------------------------------------------------------------------------------------------125 //--------------------------------------------------------------------------------------------------128 //--------------------------------------------------------------------------------------------------131 * Connect the current client thread to the service providing this API. Block until the service is134 * For each thread that wants to use this API, either ConnectService or TryConnectService must be135 * called before any other functions in this API. Normally, ConnectService is automatically called140 //--------------------------------------------------------------------------------------------------146 //--------------------------------------------------------------------------------------------------149 * Try to connect the current client thread to the service providing this API. Return with an error152 * For each thread that wants to use this API, either ConnectService or TryConnectService must be153 * called before any other functions in this API. Normally, ConnectService is automatically called162 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).165 //--------------------------------------------------------------------------------------------------171 //--------------------------------------------------------------------------------------------------175 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants178 //--------------------------------------------------------------------------------------------------185 //--------------------------------------------------------------------------------------------------191 * longer a connection to the service, and the functions in this API can't be used. For details, see196 //--------------------------------------------------------------------------------------------------203 //--------------------------------------------------------------------------------------------------207 //--------------------------------------------------------------------------------------------------210 //--------------------------------------------------------------------------------------------------214 //--------------------------------------------------------------------------------------------------217 //--------------------------------------------------------------------------------------------------221 //--------------------------------------------------------------------------------------------------224 //--------------------------------------------------------------------------------------------------228 //--------------------------------------------------------------------------------------------------231 //--------------------------------------------------------------------------------------------------235 //--------------------------------------------------------------------------------------------------238 //--------------------------------------------------------------------------------------------------245 //--------------------------------------------------------------------------------------------------254 //--------------------------------------------------------------------------------------------------258 //--------------------------------------------------------------------------------------------------265 //--------------------------------------------------------------------------------------------------273 //--------------------------------------------------------------------------------------------------281 //--------------------------------------------------------------------------------------------------289 //--------------------------------------------------------------------------------------------------296 //--------------------------------------------------------------------------------------------------305 //--------------------------------------------------------------------------------------------------312 //--------------------------------------------------------------------------------------------------320 //--------------------------------------------------------------------------------------------------327 //--------------------------------------------------------------------------------------------------336 //--------------------------------------------------------------------------------------------------345 //--------------------------------------------------------------------------------------------------352 //--------------------------------------------------------------------------------------------------359 //--------------------------------------------------------------------------------------------------366 //--------------------------------------------------------------------------------------------------le_result_t le_voicecall_TryConnectService(void)le_result_t le_voicecall_End(le_voicecall_CallRef_t reference)le_result_t le_voicecall_Delete(le_voicecall_CallRef_t reference)le_voicecall_StateHandlerRef_t le_voicecall_AddStateHandler(le_voicecall_StateHandlerFunc_t handlerPtr, void *contextPtr)le_audio_StreamRef_t le_voicecall_GetRxAudioStream(le_voicecall_CallRef_t reference)LE_FULL_API void le_voicecall_SetServerDisconnectHandler(le_voicecall_DisconnectHandler_t disconnectHandler, void *contextPtr)le_audio_StreamRef_t le_voicecall_GetTxAudioStream(le_voicecall_CallRef_t reference)le_result_t le_voicecall_GetTerminationReason(le_voicecall_CallRef_t reference, le_voicecall_TerminationReason_t *reasonPtr)void le_voicecall_ConnectService(void)void le_voicecall_RemoveStateHandler(le_voicecall_StateHandlerRef_t handlerRef)void(* le_voicecall_DisconnectHandler_t)(void *)Definition: le_voicecall_interface.h:126void le_voicecall_DisconnectService(void)le_voicecall_CallRef_t le_voicecall_Start(const char *LE_NONNULL DestinationID)le_result_t le_voicecall_Answer(le_voicecall_CallRef_t reference)