Commit a588e18a authored by Ronan's avatar Ronan
Browse files

feat(c-types): EventLog wrapped

parent d7d78a51
......@@ -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());
}
// -----------------------------------------------------------------------------
}
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