Ugly workaround to fix C++ wrapper

This commit is contained in:
Sylvain Berfini 2018-01-12 15:52:29 +01:00
parent ea585a1ef6
commit f9986484c0
2 changed files with 20 additions and 0 deletions

View file

@ -83,6 +83,16 @@ 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);
/**
* @}
*/

View file

@ -76,3 +76,13 @@ 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();
}
/* Ugly workaround for C++ wrapper */
LinphoneDialPlan *linphone_dial_plan_ref(LinphoneDialPlan *dp) {
return dp;
}
void linphone_dial_plan_unref(LinphoneDialPlan *dp) {
}