api/libmm-glib/cli: add AudioPort and AudioFormat properties to the Call object

This commit is contained in:
Dan Williams
2018-10-16 17:09:21 +00:00
parent 16162a5033
commit 627303a748
10 changed files with 678 additions and 2 deletions
+15
View File
@@ -724,6 +724,21 @@ mm_base_call_received_dtmf (MMBaseCall *self,
mm_gdbus_call_emit_dtmf_received (MM_GDBUS_CALL (self), dtmf);
}
void
mm_base_call_set_audio_port (MMBaseCall *self, const gchar *port)
{
mm_gdbus_call_set_audio_port (MM_GDBUS_CALL (self), port);
}
void
mm_base_call_set_audio_format (MMBaseCall *self,
MMCallAudioFormat *audio_format)
{
mm_gdbus_call_set_audio_format (
MM_GDBUS_CALL (self),
mm_call_audio_format_get_dictionary (audio_format));
}
/*****************************************************************************/
/* Start the CALL */
+6
View File
@@ -23,6 +23,7 @@
#include <libmm-glib.h>
#include "mm-base-modem.h"
#include "mm-call-audio-format.h"
#define MM_TYPE_BASE_CALL (mm_base_call_get_type ())
#define MM_BASE_CALL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MM_TYPE_BASE_CALL, MMBaseCall))
@@ -104,6 +105,11 @@ void mm_base_call_change_state (MMBaseCall *self,
MMCallState new_state,
MMCallStateReason reason);
void mm_base_call_set_audio_port (MMBaseCall *self,
const gchar *port);
void mm_base_call_set_audio_format (MMBaseCall *self,
MMCallAudioFormat *audio_format);
void mm_base_call_received_dtmf (MMBaseCall *self,
const gchar *dtmf);