Commit d8e2c6c6 authored by François Grisez's avatar François Grisez
Browse files

[C++ wrapper] Fix generation of linphone::DialPlan class

parent 93d57e99
......@@ -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());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment