Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
liblinphone
Commits
d8e2c6c6
Commit
d8e2c6c6
authored
Oct 16, 2017
by
François Grisez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[C++ wrapper] Fix generation of linphone::DialPlan class
parent
93d57e99
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
include/linphone/wrapper_utils.h
include/linphone/wrapper_utils.h
+12
-0
src/c-wrapper/api/c-dial-plan.cpp
src/c-wrapper/api/c-dial-plan.cpp
+9
-1
No files found.
include/linphone/wrapper_utils.h
View file @
d8e2c6c6
...
...
@@ -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
);
/**
* @}
*/
...
...
src/c-wrapper/api/c-dial-plan.cpp
View file @
d8e2c6c6
...
...
@@ -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
());
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment