fibocom: MBIM in shared utils is optional
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user