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
@@ -691,6 +691,7 @@ setup_ports (MMBroadbandModem *self)
MMBroadbandModemHso *
mm_broadband_modem_hso_new (const gchar *device,
const gchar *physdev,
const gchar **drivers,
const gchar *plugin,
guint16 vendor_id,
@@ -698,6 +699,7 @@ mm_broadband_modem_hso_new (const gchar *device,
{
return g_object_new (MM_TYPE_BROADBAND_MODEM_HSO,
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 _MMBroadbandModemHsoClass{
GType mm_broadband_modem_hso_get_type (void);
MMBroadbandModemHso *mm_broadband_modem_hso_new (const gchar *device,
const gchar *physdev,
const gchar **drivers,
const gchar *plugin,
guint16 vendor_id,
@@ -1115,6 +1115,7 @@ is_nozomi (const gchar **drivers)
MMBroadbandModemOption *
mm_broadband_modem_option_new (const gchar *device,
const gchar *physdev,
const gchar **drivers,
const gchar *plugin,
guint16 vendor_id,
@@ -1127,6 +1128,7 @@ mm_broadband_modem_option_new (const gchar *device,
return g_object_new (MM_TYPE_BROADBAND_MODEM_OPTION,
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 _MMBroadbandModemOptionClass{
GType mm_broadband_modem_option_get_type (void);
MMBroadbandModemOption *mm_broadband_modem_option_new (const gchar *device,
const gchar *physdev,
const gchar **drivers,
const gchar *plugin,
guint16 vendor_id,
+2
View File
@@ -110,6 +110,7 @@ hso_custom_init (MMPortProbe *probe,
static MMBaseModem *
create_modem (MMPlugin *self,
const gchar *uid,
const gchar *physdev,
const gchar **drivers,
guint16 vendor,
guint16 product,
@@ -118,6 +119,7 @@ create_modem (MMPlugin *self,
GError **error)
{
return MM_BASE_MODEM (mm_broadband_modem_hso_new (uid,
physdev,
drivers,
mm_plugin_get_name (self),
vendor,
+2
View File
@@ -33,6 +33,7 @@ MM_DEFINE_PLUGIN (OPTION, option, Option)
static MMBaseModem *
create_modem (MMPlugin *self,
const gchar *uid,
const gchar *physdev,
const gchar **drivers,
guint16 vendor,
guint16 product,
@@ -41,6 +42,7 @@ create_modem (MMPlugin *self,
GError **error)
{
return MM_BASE_MODEM (mm_broadband_modem_option_new (uid,
physdev,
drivers,
mm_plugin_get_name (self),
vendor,