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
@@ -228,6 +228,7 @@ set_current_modes (MMIfaceModem *self,
MMBroadbandModemLinktop *
mm_broadband_modem_linktop_new (const gchar *device,
const gchar *physdev,
const gchar **drivers,
const gchar *plugin,
guint16 vendor_id,
@@ -235,6 +236,7 @@ mm_broadband_modem_linktop_new (const gchar *device,
{
return g_object_new (MM_TYPE_BROADBAND_MODEM_LINKTOP,
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,
@@ -41,6 +41,7 @@ struct _MMBroadbandModemLinktopClass{
GType mm_broadband_modem_linktop_get_type (void);
MMBroadbandModemLinktop *mm_broadband_modem_linktop_new (const gchar *device,
const gchar *physdev,
const gchar **drivers,
const gchar *plugin,
guint16 vendor_id,
+2
View File
@@ -32,6 +32,7 @@ MM_DEFINE_PLUGIN (LINKTOP, linktop, Linktop)
static MMBaseModem *
create_modem (MMPlugin *self,
const gchar *uid,
const gchar *physdev,
const gchar **drivers,
guint16 vendor,
guint16 product,
@@ -40,6 +41,7 @@ create_modem (MMPlugin *self,
GError **error)
{
return MM_BASE_MODEM (mm_broadband_modem_linktop_new (uid,
physdev,
drivers,
mm_plugin_get_name (self),
vendor,