diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2018-12-24 16:01:12 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2019-01-30 12:10:03 +0100 |
commit | f2e3798bb328aac2d27896274d4737c314caf257 (patch) | |
tree | ec3744b5838e8a59ebc161df0792a10a6e070099 | |
parent | 755964c9eb1825cc57666800e1757056219b6d64 (diff) | |
download | ModemManager-f2e3798bb328aac2d27896274d4737c314caf257.tar.gz |
ublox: really subclass register_in_network()
The implemented register_in_network() was totally unused.
-rw-r--r-- | plugins/ublox/mm-broadband-modem-ublox.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/ublox/mm-broadband-modem-ublox.c b/plugins/ublox/mm-broadband-modem-ublox.c index c9f7f0079..8cc0ee44b 100644 --- a/plugins/ublox/mm-broadband-modem-ublox.c +++ b/plugins/ublox/mm-broadband-modem-ublox.c @@ -36,12 +36,14 @@ #include "mm-call-ublox.h" static void iface_modem_init (MMIfaceModem *iface); +static void iface_modem_3gpp_init (MMIfaceModem3gpp *iface); static void iface_modem_voice_init (MMIfaceModemVoice *iface); static MMIfaceModemVoice *iface_modem_voice_parent; G_DEFINE_TYPE_EXTENDED (MMBroadbandModemUblox, mm_broadband_modem_ublox, MM_TYPE_BROADBAND_MODEM, 0, G_IMPLEMENT_INTERFACE (MM_TYPE_IFACE_MODEM, iface_modem_init) + G_IMPLEMENT_INTERFACE (MM_TYPE_IFACE_MODEM_3GPP, iface_modem_3gpp_init) G_IMPLEMENT_INTERFACE (MM_TYPE_IFACE_MODEM_VOICE, iface_modem_voice_init)) @@ -1304,6 +1306,13 @@ iface_modem_init (MMIfaceModem *iface) } static void +iface_modem_3gpp_init (MMIfaceModem3gpp *iface) +{ + iface->register_in_network = register_in_network; + iface->register_in_network_finish = register_in_network_finish; +} + +static void iface_modem_voice_init (MMIfaceModemVoice *iface) { iface_modem_voice_parent = g_type_interface_peek_parent (iface); |