diff options
author | Aleksander Morgado <aleksandermj@chromium.org> | 2024-04-18 12:09:52 +0000 |
---|---|---|
committer | Aleksander Morgado <aleksandermj@chromium.org> | 2024-05-06 13:45:38 +0000 |
commit | aa94b21e0a9f2a296cf36fdc85eba0d842493638 (patch) | |
tree | 88af3bcb73b6a8473a32267d59b6760af54d8dfe /src/plugins/simtech/mm-broadband-modem-simtech.c | |
parent | e535c90f5f2cd7613360bd5880e9a3c0205f8a00 (diff) |
iface-modem-location: use G_DECLARE|DEFINE_INTERFACE() macros
Diffstat (limited to 'src/plugins/simtech/mm-broadband-modem-simtech.c')
-rw-r--r-- | src/plugins/simtech/mm-broadband-modem-simtech.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/plugins/simtech/mm-broadband-modem-simtech.c b/src/plugins/simtech/mm-broadband-modem-simtech.c index 5501ee9b..e70dbd4a 100644 --- a/src/plugins/simtech/mm-broadband-modem-simtech.c +++ b/src/plugins/simtech/mm-broadband-modem-simtech.c @@ -37,16 +37,16 @@ #include "mm-shared-simtech.h" #include "mm-broadband-modem-simtech.h" -static void iface_modem_init (MMIfaceModemInterface *iface); -static void iface_modem_3gpp_init (MMIfaceModem3gppInterface *iface); -static void iface_modem_location_init (MMIfaceModemLocation *iface); -static void iface_modem_voice_init (MMIfaceModemVoice *iface); -static void shared_simtech_init (MMSharedSimtech *iface); +static void iface_modem_init (MMIfaceModemInterface *iface); +static void iface_modem_3gpp_init (MMIfaceModem3gppInterface *iface); +static void iface_modem_location_init (MMIfaceModemLocationInterface *iface); +static void iface_modem_voice_init (MMIfaceModemVoice *iface); +static void shared_simtech_init (MMSharedSimtech *iface); -static MMIfaceModemInterface *iface_modem_parent; -static MMIfaceModem3gppInterface *iface_modem_3gpp_parent; -static MMIfaceModemLocation *iface_modem_location_parent; -static MMIfaceModemVoice *iface_modem_voice_parent; +static MMIfaceModemInterface *iface_modem_parent; +static MMIfaceModem3gppInterface *iface_modem_3gpp_parent; +static MMIfaceModemLocationInterface *iface_modem_location_parent; +static MMIfaceModemVoice *iface_modem_voice_parent; G_DEFINE_TYPE_EXTENDED (MMBroadbandModemSimtech, mm_broadband_modem_simtech, MM_TYPE_BROADBAND_MODEM, 0, G_IMPLEMENT_INTERFACE (MM_TYPE_IFACE_MODEM, iface_modem_init) @@ -1476,7 +1476,7 @@ iface_modem_3gpp_init (MMIfaceModem3gppInterface *iface) } static void -iface_modem_location_init (MMIfaceModemLocation *iface) +iface_modem_location_init (MMIfaceModemLocationInterface *iface) { iface_modem_location_parent = g_type_interface_peek_parent (iface); @@ -1488,7 +1488,7 @@ iface_modem_location_init (MMIfaceModemLocation *iface) iface->disable_location_gathering_finish = mm_shared_simtech_disable_location_gathering_finish; } -static MMIfaceModemLocation * +static MMIfaceModemLocationInterface * peek_parent_location_interface (MMSharedSimtech *self) { return iface_modem_location_parent; |