diff options
author | Aleksander Morgado <aleksandermj@chromium.org> | 2024-04-18 12:33:46 +0000 |
---|---|---|
committer | Aleksander Morgado <aleksandermj@chromium.org> | 2024-05-06 13:45:38 +0000 |
commit | 0a91a6035bc5b0376540a76bdcf81580a9192681 (patch) | |
tree | d90b2150a562a96f0512d6492f6826eb63f3642e /src/mm-iface-modem-simple.h | |
parent | cc2f1317b308b822c92dd0b172c2a5dd6287b2ac (diff) |
iface-modem-simple: use G_DECLARE|DEFINE_INTERFACE() macros
Diffstat (limited to 'src/mm-iface-modem-simple.h')
-rw-r--r-- | src/mm-iface-modem-simple.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/mm-iface-modem-simple.h b/src/mm-iface-modem-simple.h index 673a1ad7..7068a037 100644 --- a/src/mm-iface-modem-simple.h +++ b/src/mm-iface-modem-simple.h @@ -19,23 +19,18 @@ #include <glib-object.h> #include <gio/gio.h> -#define MM_TYPE_IFACE_MODEM_SIMPLE (mm_iface_modem_simple_get_type ()) -#define MM_IFACE_MODEM_SIMPLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MM_TYPE_IFACE_MODEM_SIMPLE, MMIfaceModemSimple)) -#define MM_IS_IFACE_MODEM_SIMPLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MM_TYPE_IFACE_MODEM_SIMPLE)) -#define MM_IFACE_MODEM_SIMPLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), MM_TYPE_IFACE_MODEM_SIMPLE, MMIfaceModemSimple)) +#include "mm-iface-modem.h" + +#define MM_TYPE_IFACE_MODEM_SIMPLE mm_iface_modem_simple_get_type () +G_DECLARE_INTERFACE (MMIfaceModemSimple, mm_iface_modem_simple, MM, IFACE_MODEM_SIMPLE, MMIfaceModem) #define MM_IFACE_MODEM_SIMPLE_DBUS_SKELETON "iface-modem-simple-dbus-skeleton" #define MM_IFACE_MODEM_SIMPLE_STATUS "iface-modem-simple-status" -typedef struct _MMIfaceModemSimple MMIfaceModemSimple; - -struct _MMIfaceModemSimple { +struct _MMIfaceModemSimpleInterface { GTypeInterface g_iface; }; -GType mm_iface_modem_simple_get_type (void); -G_DEFINE_AUTOPTR_CLEANUP_FUNC (MMIfaceModemSimple, g_object_unref) - /* Initialize Modem Simple interface */ void mm_iface_modem_simple_initialize (MMIfaceModemSimple *self); |