mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-22 21:58:08 +00:00
Added callback setter for globalStateChanged
This commit is contained in:
parent
28ec18d501
commit
d5d0ed5056
2 changed files with 11 additions and 1 deletions
|
|
@ -173,6 +173,10 @@ LinphoneCoreCbs *linphone_core_get_current_callbacks(const LinphoneCore *lc) {
|
|||
return lc->current_cbs;
|
||||
}
|
||||
|
||||
void linphone_core_cbs_set_global_state_changed(LinphoneCoreCbs *cbs, LinphoneCoreGlobalStateChangedCb cb) {
|
||||
cbs->vtable->global_state_changed = cb;
|
||||
}
|
||||
|
||||
void linphone_core_cbs_set_registration_state_changed(LinphoneCoreCbs *cbs, LinphoneCoreCbsRegistrationStateChangedCb cb) {
|
||||
cbs->vtable->registration_state_changed = cb;
|
||||
}
|
||||
|
|
@ -277,7 +281,6 @@ void linphone_core_cbs_set_friend_list_removed(LinphoneCoreCbs *cbs, LinphoneCor
|
|||
cbs->vtable->friend_list_removed = cb;
|
||||
}
|
||||
|
||||
|
||||
typedef belle_sip_object_t_vptr_t LinphoneCore_vptr_t;
|
||||
BELLE_SIP_DECLARE_NO_IMPLEMENTED_INTERFACES(LinphoneCore);
|
||||
BELLE_SIP_INSTANCIATE_VPTR(LinphoneCore, belle_sip_object_t,
|
||||
|
|
|
|||
|
|
@ -607,6 +607,13 @@ LINPHONE_PUBLIC void *linphone_core_cbs_get_user_data(const LinphoneCoreCbs *cbs
|
|||
*/
|
||||
LINPHONE_PUBLIC LinphoneCoreCbs *linphone_core_get_current_callbacks(const LinphoneCore *lc);
|
||||
|
||||
/**
|
||||
* Set the #LinphoneCoreGlobalStateChangedCb callback.
|
||||
* @param[in] cbs A #LinphoneCoreCbs.
|
||||
* @param[in] cb The callback.
|
||||
*/
|
||||
LINPHONE_PUBLIC void linphone_core_cbs_set_global_state_changed(LinphoneCoreCbs *cbs, LinphoneCoreGlobalStateChangedCb cb);
|
||||
|
||||
/**
|
||||
* Set the #LinphoneCoreCbsRegistrationStateChangedCb callback.
|
||||
* @param[in] cbs A #LinphoneCoreCbs.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue