From 213c60b76d1c0455a4f95b927514de2ef1388ed5 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Tue, 2 Jul 2019 14:38:49 +0200 Subject: [PATCH] api,call: new Multiparty boolean property It will be set to TRUE if this call is part of a multiparty call. --- cli/mmcli-call.c | 1 + cli/mmcli-output.c | 1 + cli/mmcli-output.h | 1 + .../libmm-glib/libmm-glib-sections.txt | 3 +++ .../org.freedesktop.ModemManager1.Call.xml | 7 ++++++ libmm-glib/mm-call.c | 18 +++++++++++++ libmm-glib/mm-call.h | 2 ++ src/mm-base-call.c | 13 ++++++++++ src/mm-base-call.h | 25 +++++++++++-------- 9 files changed, 60 insertions(+), 11 deletions(-) diff --git a/cli/mmcli-call.c b/cli/mmcli-call.c index 83a0c017..f3fd9382 100644 --- a/cli/mmcli-call.c +++ b/cli/mmcli-call.c @@ -162,6 +162,7 @@ print_call_info (MMCall *call) mmcli_output_string (MMC_F_CALL_GENERAL_DBUS_PATH, mm_call_get_path (call)); mmcli_output_string (MMC_F_CALL_PROPERTIES_NUMBER, mm_call_get_number (call)); mmcli_output_string (MMC_F_CALL_PROPERTIES_DIRECTION, mm_call_direction_get_string (mm_call_get_direction (call))); + mmcli_output_string (MMC_F_CALL_PROPERTIES_MULTIPARTY, mm_call_get_multiparty (call) ? "yes" : "no"); mmcli_output_string (MMC_F_CALL_PROPERTIES_STATE, mm_call_state_get_string (mm_call_get_state (call))); mmcli_output_string (MMC_F_CALL_PROPERTIES_STATE_REASON, mm_call_state_reason_get_string (mm_call_get_state_reason (call))); mmcli_output_string (MMC_F_CALL_PROPERTIES_AUDIO_PORT, mm_call_get_audio_port (call)); diff --git a/cli/mmcli-output.c b/cli/mmcli-output.c index 0242460c..7699f25e 100644 --- a/cli/mmcli-output.c +++ b/cli/mmcli-output.c @@ -227,6 +227,7 @@ static FieldInfo field_infos[] = { [MMC_F_CALL_GENERAL_DBUS_PATH] = { "call.dbus-path", "dbus path", MMC_S_CALL_GENERAL, }, [MMC_F_CALL_PROPERTIES_NUMBER] = { "call.properties.number", "number", MMC_S_CALL_PROPERTIES, }, [MMC_F_CALL_PROPERTIES_DIRECTION] = { "call.properties.direction", "direction", MMC_S_CALL_PROPERTIES, }, + [MMC_F_CALL_PROPERTIES_MULTIPARTY] = { "call.properties.multiparty", "multiparty", MMC_S_CALL_PROPERTIES, }, [MMC_F_CALL_PROPERTIES_STATE] = { "call.properties.state", "state", MMC_S_CALL_PROPERTIES, }, [MMC_F_CALL_PROPERTIES_STATE_REASON] = { "call.properties.state-reason", "state reason", MMC_S_CALL_PROPERTIES, }, [MMC_F_CALL_PROPERTIES_AUDIO_PORT] = { "call.properties.audio-port", "audio port", MMC_S_CALL_PROPERTIES, }, diff --git a/cli/mmcli-output.h b/cli/mmcli-output.h index 7793f797..024d2440 100644 --- a/cli/mmcli-output.h +++ b/cli/mmcli-output.h @@ -243,6 +243,7 @@ typedef enum { MMC_F_CALL_GENERAL_DBUS_PATH, MMC_F_CALL_PROPERTIES_NUMBER, MMC_F_CALL_PROPERTIES_DIRECTION, + MMC_F_CALL_PROPERTIES_MULTIPARTY, MMC_F_CALL_PROPERTIES_STATE, MMC_F_CALL_PROPERTIES_STATE_REASON, MMC_F_CALL_PROPERTIES_AUDIO_PORT, diff --git a/docs/reference/libmm-glib/libmm-glib-sections.txt b/docs/reference/libmm-glib/libmm-glib-sections.txt index 5daaff5c..dc92cec5 100644 --- a/docs/reference/libmm-glib/libmm-glib-sections.txt +++ b/docs/reference/libmm-glib/libmm-glib-sections.txt @@ -1332,6 +1332,7 @@ mm_call_get_audio_port mm_call_dup_audio_port mm_call_get_audio_format mm_call_peek_audio_format +mm_call_get_multiparty mm_call_start mm_call_start_finish @@ -3246,6 +3247,7 @@ mm_gdbus_call_dup_audio_format mm_gdbus_call_dup_audio_port mm_gdbus_call_get_audio_format mm_gdbus_call_get_audio_port +mm_gdbus_call_get_multiparty mm_gdbus_call_call_accept mm_gdbus_call_call_accept_finish @@ -3269,6 +3271,7 @@ mm_gdbus_call_set_state mm_gdbus_call_set_state_reason mm_gdbus_call_set_audio_format mm_gdbus_call_set_audio_port +mm_gdbus_call_set_multiparty mm_gdbus_call_complete_accept mm_gdbus_call_complete_hangup mm_gdbus_call_complete_send_dtmf diff --git a/introspection/org.freedesktop.ModemManager1.Call.xml b/introspection/org.freedesktop.ModemManager1.Call.xml index 0f704f2f..d32b0836 100644 --- a/introspection/org.freedesktop.ModemManager1.Call.xml +++ b/introspection/org.freedesktop.ModemManager1.Call.xml @@ -127,6 +127,13 @@ --> + + +