mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
feat(c-types): EventLog wrapped
This commit is contained in:
parent
d7d78a515b
commit
a588e18ac2
1 changed files with 13 additions and 6 deletions
|
|
@ -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; \
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Event log.
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
L_DECLARE_C_STRUCT_IMPL(EventLog);
|
||||
|
||||
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());
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue