bluez5: backend-native: Link with ModemManager Voice object

The Voice object lists the Call objects, which provides status of each call.

+CIND call indicator is set if at least one of the call is active.
+CIND callsetup indicator is set if one of the call is in ringing in or out
or dialing state.
This commit is contained in:
Frédéric Danis 2022-09-16 15:02:25 +02:00 committed by Wim Taymans
parent 275d2bc603
commit 5b40ed62b4
3 changed files with 304 additions and 3 deletions

View file

@ -27,11 +27,20 @@
#include "defs.h"
enum call_setup {
CIND_CALLSETUP_NONE = 0,
CIND_CALLSETUP_INCOMING,
CIND_CALLSETUP_DIALING,
CIND_CALLSETUP_ALERTING
};
struct mm_ops {
void (*set_modem_service)(bool available, void *user_data);
void (*set_modem_signal_strength)(unsigned int strength, void *user_data);
void (*set_modem_operator_name)(const char *name, void *user_data);
void (*set_modem_roaming)(bool is_roaming, void *user_data);
void (*set_call_active)(bool active, void *user_data);
void (*set_call_setup)(enum call_setup value, void *user_data);
};
#ifdef HAVE_BLUEZ_5_BACKEND_NATIVE_MM