aboutsummaryrefslogtreecommitdiff
path: root/src/mm-base-call.h
diff options
context:
space:
mode:
authorDan Williams <dan@ioncontrol.co>2025-04-26 06:21:20 -0500
committerDan Williams <dan@ioncontrol.co>2025-05-30 07:57:50 -0500
commitb9c49c7b4dd93d3f66f27cc13110ba672f7862df (patch)
tree9245da0296e884e49d9f51a1411c88d101447221 /src/mm-base-call.h
parent8392f30388b04cd0ab8fd41bca9d7788249c1c1b (diff)
base-call: remove usage of MMBaseModem
Split out the things we actually use from MMBaseModem into separate properties that can be independently implemented (or just left NULL) for unit tests. Signed-off-by: Dan Williams <dan@ioncontrol.co>
Diffstat (limited to 'src/mm-base-call.h')
-rw-r--r--src/mm-base-call.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/mm-base-call.h b/src/mm-base-call.h
index fc69bf2f..a7666145 100644
--- a/src/mm-base-call.h
+++ b/src/mm-base-call.h
@@ -23,8 +23,8 @@
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
-#include "mm-base-modem.h"
#include "mm-call-audio-format.h"
+#include "mm-port.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))
@@ -39,7 +39,7 @@ typedef struct _MMBaseCallPrivate MMBaseCallPrivate;
#define MM_BASE_CALL_PATH "call-path"
#define MM_BASE_CALL_CONNECTION "call-connection"
-#define MM_BASE_CALL_MODEM "call-modem"
+#define MM_BASE_CALL_IFACE_MODEM_VOICE "call-iface-modem-voice"
#define MM_BASE_CALL_SKIP_INCOMING_TIMEOUT "call-skip-incoming-timeout"
#define MM_BASE_CALL_SUPPORTS_DIALING_TO_RINGING "call-supports-dialing-to-ringing"
#define MM_BASE_CALL_SUPPORTS_RINGING_TO_ACTIVE "call-supports-ringing-to-active"
@@ -99,15 +99,6 @@ struct _MMBaseCallClass {
GType mm_base_call_get_type (void);
G_DEFINE_AUTOPTR_CLEANUP_FUNC (MMBaseCall, g_object_unref)
-/* This one can be overridden by plugins */
-MMBaseCall *mm_base_call_new (MMBaseModem *modem,
- GObject *bind_to,
- MMCallDirection direction,
- const gchar *number,
- gboolean skip_incoming_timeout,
- gboolean supports_dialing_to_ringing,
- gboolean supports_ringing_to_active);
-
void mm_base_call_export (MMBaseCall *self);
void mm_base_call_unexport (MMBaseCall *self);