api,modem: new 'Physdev' property

Signed-off-by: Lukas Voegl <lvoegl@tdt.de>
This commit is contained in:
Lukas Voegl
2023-09-18 10:53:12 +02:00
parent 1fc061b6a5
commit 8cd1c1bdb9
150 changed files with 446 additions and 19 deletions
@@ -44,6 +44,7 @@ G_DEFINE_TYPE_EXTENDED (MMBroadbandModemQmiSimtech, mm_broadband_modem_qmi_simte
MMBroadbandModemQmiSimtech *
mm_broadband_modem_qmi_simtech_new (const gchar *device,
const gchar *physdev,
const gchar **drivers,
const gchar *plugin,
guint16 vendor_id,
@@ -51,6 +52,7 @@ mm_broadband_modem_qmi_simtech_new (const gchar *device,
{
return g_object_new (MM_TYPE_BROADBAND_MODEM_QMI_SIMTECH,
MM_BASE_MODEM_DEVICE, device,
MM_BASE_MODEM_PHYSDEV, physdev,
MM_BASE_MODEM_DRIVERS, drivers,
MM_BASE_MODEM_PLUGIN, plugin,
MM_BASE_MODEM_VENDOR_ID, vendor_id,
@@ -39,6 +39,7 @@ struct _MMBroadbandModemQmiSimtechClass{
GType mm_broadband_modem_qmi_simtech_get_type (void);
MMBroadbandModemQmiSimtech *mm_broadband_modem_qmi_simtech_new (const gchar *device,
const gchar *physdev,
const gchar **drivers,
const gchar *plugin,
guint16 vendor_id,
@@ -1204,6 +1204,7 @@ setup_ports (MMBroadbandModem *self)
MMBroadbandModemSimtech *
mm_broadband_modem_simtech_new (const gchar *device,
const gchar *physdev,
const gchar **drivers,
const gchar *plugin,
guint16 vendor_id,
@@ -1211,6 +1212,7 @@ mm_broadband_modem_simtech_new (const gchar *device,
{
return g_object_new (MM_TYPE_BROADBAND_MODEM_SIMTECH,
MM_BASE_MODEM_DEVICE, device,
MM_BASE_MODEM_PHYSDEV, physdev,
MM_BASE_MODEM_DRIVERS, drivers,
MM_BASE_MODEM_PLUGIN, plugin,
MM_BASE_MODEM_VENDOR_ID, vendor_id,
@@ -43,6 +43,7 @@ struct _MMBroadbandModemSimtechClass{
GType mm_broadband_modem_simtech_get_type (void);
MMBroadbandModemSimtech *mm_broadband_modem_simtech_new (const gchar *device,
const gchar *physdev,
const gchar **drivers,
const gchar *plugin,
guint16 vendor_id,
+3
View File
@@ -37,6 +37,7 @@ MM_DEFINE_PLUGIN (SIMTECH, simtech, Simtech)
static MMBaseModem *
create_modem (MMPlugin *self,
const gchar *uid,
const gchar *physdev,
const gchar **drivers,
guint16 vendor,
guint16 product,
@@ -48,6 +49,7 @@ create_modem (MMPlugin *self,
if (mm_port_probe_list_has_qmi_port (probes)) {
mm_obj_dbg (self, "QMI-powered SimTech modem found...");
return MM_BASE_MODEM (mm_broadband_modem_qmi_simtech_new (uid,
physdev,
drivers,
mm_plugin_get_name (self),
vendor,
@@ -56,6 +58,7 @@ create_modem (MMPlugin *self,
#endif
return MM_BASE_MODEM (mm_broadband_modem_simtech_new (uid,
physdev,
drivers,
mm_plugin_get_name (self),
vendor,