diff options
author | Aleksander Morgado <aleksandermj@chromium.org> | 2024-05-09 10:52:31 +0000 |
---|---|---|
committer | Aleksander Morgado <aleksandermj@chromium.org> | 2024-05-29 09:50:05 +0000 |
commit | 800c2bb02a40e0b437d4b15f16fece41c33e0d25 (patch) | |
tree | c30d768dab2486e73030c48629a982124be2bca9 /src/plugins/fibocom/mm-shared-fibocom.c | |
parent | 33649756f5b839161e30acb4b33ce144eb93f5ef (diff) |
fibocom: MBIM in shared utils is optional
Diffstat (limited to 'src/plugins/fibocom/mm-shared-fibocom.c')
-rw-r--r-- | src/plugins/fibocom/mm-shared-fibocom.c | 9 |
1 files changed, 7 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 |