mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 19:18:06 +00:00
add device identifier api
This commit is contained in:
parent
b86d76b490
commit
3cbabc1069
4 changed files with 30 additions and 0 deletions
|
|
@ -521,7 +521,11 @@ void linphone_call_set_state(LinphoneCall *call, LinphoneCallState cstate, const
|
|||
switch(call->reason){
|
||||
case LinphoneReasonDeclined:
|
||||
call->log->status=LinphoneCallDeclined;
|
||||
<<<<<<< HEAD
|
||||
break;
|
||||
=======
|
||||
break;
|
||||
>>>>>>> add device identifier api
|
||||
case LinphoneReasonNotAnswered:
|
||||
call->log->status=LinphoneCallMissed;
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -5104,3 +5104,10 @@ void linphone_call_zoom_video(LinphoneCall* call, float zoom_factor, float* cx,
|
|||
}else ms_warning("Could not apply zoom: video output wasn't activated.");
|
||||
}
|
||||
|
||||
void linphone_core_set_device_identifier(LinphoneCore *lc,const char* device_id) {
|
||||
if (lc->device_id) ms_free(lc->device_id);
|
||||
lc->device_id=ms_strdup(device_id);
|
||||
}
|
||||
const char* linphone_core_get_device_identifier(const LinphoneCore *lc) {
|
||||
return lc->device_id;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -827,6 +827,24 @@ LinphoneCore *linphone_core_new(const LinphoneCoreVTable *vtable,
|
|||
|
||||
/* function to be periodically called in a main loop */
|
||||
void linphone_core_iterate(LinphoneCore *lc);
|
||||
#if 0 /*not implemented yet*/
|
||||
/**
|
||||
* @ingroup initializing
|
||||
* Provide Linphone Core with an unique identifier. This be later used to identified contact address coming from this device.
|
||||
* Value is not saved.
|
||||
* @param lc object
|
||||
* @param string identifying the device, can be EMEI or UDID
|
||||
*
|
||||
*/
|
||||
void linphone_core_set_device_identifier(LinphoneCore *lc,const char* device_id);
|
||||
/**
|
||||
* @ingroup initializing
|
||||
* get Linphone unique identifier
|
||||
*
|
||||
*/
|
||||
const char* linphone_core_get_device_identifier(const LinphoneCore *lc);
|
||||
|
||||
#endif
|
||||
|
||||
LinphoneAddress * linphone_core_interpret_url(LinphoneCore *lc, const char *url);
|
||||
|
||||
|
|
|
|||
|
|
@ -539,6 +539,7 @@ struct _LinphoneCore
|
|||
int device_rotation;
|
||||
int max_calls;
|
||||
LinphoneTunnel *tunnel;
|
||||
char* device_id;
|
||||
};
|
||||
|
||||
LinphoneTunnel *linphone_core_tunnel_new(LinphoneCore *lc);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue