From 218d6d2c5879e97d5f564aff8fa2546212decdfa Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Mon, 6 May 2024 11:30:21 +0000 Subject: shared-simtech: use G_DECLARE|DEFINE_INTERFACE() macros --- src/plugins/simtech/mm-shared-simtech.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'src/plugins/simtech/mm-shared-simtech.h') diff --git a/src/plugins/simtech/mm-shared-simtech.h b/src/plugins/simtech/mm-shared-simtech.h index 13e0eee6..81e735a4 100644 --- a/src/plugins/simtech/mm-shared-simtech.h +++ b/src/plugins/simtech/mm-shared-simtech.h @@ -27,14 +27,10 @@ #include "mm-iface-modem-location.h" #include "mm-iface-modem-voice.h" -#define MM_TYPE_SHARED_SIMTECH (mm_shared_simtech_get_type ()) -#define MM_SHARED_SIMTECH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MM_TYPE_SHARED_SIMTECH, MMSharedSimtech)) -#define MM_IS_SHARED_SIMTECH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MM_TYPE_SHARED_SIMTECH)) -#define MM_SHARED_SIMTECH_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), MM_TYPE_SHARED_SIMTECH, MMSharedSimtech)) +#define MM_TYPE_SHARED_SIMTECH mm_shared_simtech_get_type () +G_DECLARE_INTERFACE (MMSharedSimtech, mm_shared_simtech, MM, SHARED_SIMTECH, MMIfaceModem) -typedef struct _MMSharedSimtech MMSharedSimtech; - -struct _MMSharedSimtech { +struct _MMSharedSimtechInterface { GTypeInterface g_iface; /* Peek location interface of the parent class of the object */ @@ -44,8 +40,6 @@ struct _MMSharedSimtech { MMIfaceModemVoiceInterface * (* peek_parent_voice_interface) (MMSharedSimtech *self); }; -GType mm_shared_simtech_get_type (void); - /*****************************************************************************/ /* Location interface */ -- cgit v1.2.3-70-g09d2