mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
feat(c-types): add call event interface
This commit is contained in:
parent
9467d6819f
commit
a0f5602b1f
1 changed files with 10 additions and 0 deletions
|
|
@ -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.
|
||||
// -----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue