diff options
Diffstat (limited to 'src/plugins/fibocom')
-rw-r--r-- | src/plugins/fibocom/mm-shared-fibocom.c | 9 | ||||
-rw-r--r-- | src/plugins/fibocom/mm-shared-fibocom.h | 6 |
2 files changed, 13 insertions, 2 deletions
diff --git a/src/plugins/fibocom/mm-shared-fibocom.c b/src/plugins/fibocom/mm-shared-fibocom.c index 0a2be7ae..5cf90e3b 100644 --- a/src/plugins/fibocom/mm-shared-fibocom.c +++ b/src/plugins/fibocom/mm-shared-fibocom.c @@ -24,11 +24,12 @@ #include "mm-log-object.h" #include "mm-broadband-modem.h" -#include "mm-broadband-modem-mbim.h" #include "mm-iface-modem.h" #include "mm-shared-fibocom.h" -#include "mm-port-mbim-fibocom.h" #include "mm-base-modem-at.h" +#if defined WITH_MBIM +# include "mm-port-mbim-fibocom.h" +#endif G_DEFINE_INTERFACE (MMSharedFibocom, mm_shared_fibocom, MM_TYPE_IFACE_MODEM) @@ -79,6 +80,8 @@ get_private (MMSharedFibocom *self) /*****************************************************************************/ +#if defined WITH_MBIM + MMPort * mm_shared_fibocom_create_usbmisc_port (MMBaseModem *self, const gchar *name, @@ -111,6 +114,8 @@ mm_shared_fibocom_create_wwan_port (MMBaseModem *self, return priv->class_parent->create_wwan_port (self, name, ptype); } +#endif /* WITH_MBIM */ + /*****************************************************************************/ void diff --git a/src/plugins/fibocom/mm-shared-fibocom.h b/src/plugins/fibocom/mm-shared-fibocom.h index 569e836b..22d57dcf 100644 --- a/src/plugins/fibocom/mm-shared-fibocom.h +++ b/src/plugins/fibocom/mm-shared-fibocom.h @@ -16,6 +16,8 @@ #ifndef MM_SHARED_FIBOCOM_H #define MM_SHARED_FIBOCOM_H +#include <config.h> + #include <glib-object.h> #include <gio/gio.h> @@ -38,6 +40,8 @@ struct _MMSharedFibocomInterface { void mm_shared_fibocom_setup_ports (MMBroadbandModem *self); +#if defined WITH_MBIM + MMPort *mm_shared_fibocom_create_usbmisc_port (MMBaseModem *self, const gchar *name, MMPortType ptype); @@ -45,6 +49,8 @@ MMPort *mm_shared_fibocom_create_wwan_port (MMBaseModem *self, const gchar *name, MMPortType ptype); +#endif + void mm_shared_fibocom_firmware_load_update_settings (MMIfaceModemFirmware *self, GAsyncReadyCallback callback, gpointer user_data); |