Commit d8a8e4a7 authored by Ronan's avatar Ronan

fix(c-dial-plan): clean code and add todo

parent a911ac8d
......@@ -29,6 +29,13 @@ using namespace std;
L_DECLARE_C_CLONABLE_OBJECT_IMPL(DialPlan);
// TODO: Remove me later. Ugly workaround for C++ wrapper.
LinphoneDialPlan *linphone_dial_plan_ref (LinphoneDialPlan *dp) {
return dp;
}
void linphone_dial_plan_unref (LinphoneDialPlan *) {}
const char *linphone_dial_plan_get_country (const LinphoneDialPlan *dp) {
return L_STRING_TO_C(L_GET_CPP_PTR_FROM_C_OBJECT(dp)->getCountry());
}
......@@ -76,13 +83,3 @@ 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) {
}
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