mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 04:28:10 +00:00
fix(c-dial-plan): clean code and add todo
This commit is contained in:
parent
a911ac8d8d
commit
d8a8e4a747
1 changed files with 7 additions and 10 deletions
|
|
@ -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) {
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue