From a0f5602b1f04aeb5f67385d4f6027aa1c21607f9 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Tue, 29 Aug 2017 13:42:55 +0200 Subject: [PATCH] feat(c-types): add call event interface --- src/c-wrapper/c-types.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/c-wrapper/c-types.h b/src/c-wrapper/c-types.h index a8dfd78f7..d564aee72 100644 --- a/src/c-wrapper/c-types.h +++ b/src/c-wrapper/c-types.h @@ -19,6 +19,7 @@ #ifndef _C_TYPES_H_ #define _C_TYPES_H_ +// Do not move these defines. #define L_DECLARE_ENUM(CLASS, ENUM) enum Linphone ## CLASS ## ENUM #define L_DECLARE_C_STRUCT(STRUCT) typedef struct _Linphone ## STRUCT Linphone ## STRUCT; @@ -30,6 +31,8 @@ extern "C" { #endif +L_DECLARE_C_STRUCT(Call); +L_DECLARE_C_STRUCT(CallEvent); L_DECLARE_C_STRUCT(ConferenceEvent); L_DECLARE_C_STRUCT(ConferenceParticipantEvent); L_DECLARE_C_STRUCT(EventLog); @@ -39,6 +42,13 @@ L_DECLARE_C_STRUCT(MessageEvent); // TODO: Remove me in the future. typedef struct SalAddress LinphoneAddress; +// ----------------------------------------------------------------------------- +// Call Event. +// ----------------------------------------------------------------------------- + +LINPHONE_PUBLIC LinphoneCallEvent *call_event_new (LinphoneEventLogType type, LinphoneCall *call); +LINPHONE_PUBLIC LinphoneCall *call_event_get_call (const LinphoneCallEvent *call_event); + // ----------------------------------------------------------------------------- // Conference Event. // -----------------------------------------------------------------------------