diff options
author | Aleksander Morgado <aleksandermj@chromium.org> | 2024-05-06 11:30:21 +0000 |
---|---|---|
committer | Aleksander Morgado <aleksandermj@chromium.org> | 2024-05-06 13:45:39 +0000 |
commit | 218d6d2c5879e97d5f564aff8fa2546212decdfa (patch) | |
tree | b5f1a32b09e8a858efc37799e9d79205ed10e904 /src/plugins/simtech/mm-shared-simtech.h | |
parent | 4afb6a3172ee78c64507932d63b4a081e4c2ad2d (diff) |
shared-simtech: use G_DECLARE|DEFINE_INTERFACE() macros
Diffstat (limited to 'src/plugins/simtech/mm-shared-simtech.h')
-rw-r--r-- | src/plugins/simtech/mm-shared-simtech.h | 12 |
1 files changed, 3 insertions, 9 deletions
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 */ |