Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
a588e18a
Commit
a588e18a
authored
Aug 29, 2017
by
Ronan
Browse files
feat(c-types): EventLog wrapped
parent
d7d78a51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
src/c-wrapper/c-types.cpp
src/c-wrapper/c-types.cpp
+13
-6
No files found.
src/c-wrapper/c-types.cpp
View file @
a588e18a
...
...
@@ -54,15 +54,22 @@ extern "C" {
FALSE \
);
// -----------------------------------------------------------------------------
#define L_DECLARE_C_STRUCT_NEW_DEFAULT(STRUCT, C_NAME) \
Linphone ## STRUCT * CNAME ## _new() { \
Linphone ## STRUCT * object = belle_sip_object_new(Linphone ## STRUCT); \
return object; \
}
L_DECLARE_C_STRUCT_IMPL
(
EventLog
);
// -----------------------------------------------------------------------------
// Event log.
// -----------------------------------------------------------------------------
LinphoneEventLog
*
event_log_new
()
{
return
nullptr
;
}
L_DECLARE_C_STRUCT_IMPL
(
EventLog
);
L_DECLARE_C_STRUCT_NEW_DEFAULT
(
EventLog
,
event_log
)
LinphoneEventLogType
event_log_get_type
(
const
LinphoneEventLog
*
eventLog
)
{
return
LinphoneEventLogType
::
NoneEvent
;
return
static_cast
<
LinphoneEventLogType
>
(
eventLog
->
cppPtr
->
getType
())
;
}
// -----------------------------------------------------------------------------
}
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