mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-28 16:49:20 +00:00
[C++ wrapper] Fix generation of linphone::DialPlan class
This commit is contained in:
parent
93d57e9926
commit
d8e2c6c687
2 changed files with 21 additions and 1 deletions
|
|
@ -83,6 +83,18 @@ LINPHONE_PUBLIC void linphone_chat_message_resend_2(LinphoneChatMessage *msg);
|
|||
*/
|
||||
LINPHONE_PUBLIC void *linphone_vcard_get_belcard(LinphoneVcard *vcard);
|
||||
|
||||
|
||||
/**
|
||||
* @brief Increases the reference counter of #LinphoneDialPlan objects.
|
||||
*/
|
||||
LINPHONE_PUBLIC LinphoneDialPlan *linphone_dial_plan_ref(LinphoneDialPlan *dp);
|
||||
|
||||
/**
|
||||
* @brief Decreases the reference counter of #LinphoneDialPaln objects.
|
||||
*/
|
||||
LINPHONE_PUBLIC void linphone_dial_plan_unref(LinphoneDialPlan *dp);
|
||||
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -29,6 +29,14 @@ using namespace std;
|
|||
|
||||
L_DECLARE_C_OBJECT_IMPL(DialPlan);
|
||||
|
||||
LinphoneDialPlan *linphone_dial_plan_ref(LinphoneDialPlan *dp) {
|
||||
return (LinphoneDialPlan *)belle_sip_object_ref(dp);
|
||||
}
|
||||
|
||||
void linphone_dial_plan_unref(LinphoneDialPlan *dp) {
|
||||
belle_sip_object_unref(dp);
|
||||
}
|
||||
|
||||
const char * linphone_dial_plan_get_country(const LinphoneDialPlan *dp) {
|
||||
return L_STRING_TO_C(L_GET_CPP_PTR_FROM_C_OBJECT(dp)->getCountry());
|
||||
}
|
||||
|
|
@ -78,4 +86,4 @@ const bctbx_list_t * linphone_dial_plan_get_all_list() {
|
|||
|
||||
bool_t linphone_dial_plan_is_generic(const LinphoneDialPlan *ccc) {
|
||||
return L_GET_CPP_PTR_FROM_C_OBJECT(ccc)->isGeneric();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue