From 7ae8ffe21b9e3bb350dac2f2d34d0711b3255d26 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 22 Oct 2010 11:06:48 -0500 Subject: core: use hardware IDs as part of DeviceIdentifier Pass the device's hardware IDs through modem creation and use them when calculating the device's identifier. Add a bunch of testcases for real hardware to ensure we don't break the device ID in the future unless we really want to. --- plugins/mm-modem-nokia.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'plugins/mm-modem-nokia.c') diff --git a/plugins/mm-modem-nokia.c b/plugins/mm-modem-nokia.c index 3cbea00b..56b8c919 100644 --- a/plugins/mm-modem-nokia.c +++ b/plugins/mm-modem-nokia.c @@ -30,7 +30,9 @@ G_DEFINE_TYPE_EXTENDED (MMModemNokia, mm_modem_nokia, MM_TYPE_GENERIC_GSM, 0, MMModem * mm_modem_nokia_new (const char *device, const char *driver, - const char *plugin) + const char *plugin, + guint32 vendor, + guint32 product) { g_return_val_if_fail (device != NULL, NULL); g_return_val_if_fail (driver != NULL, NULL); @@ -40,6 +42,8 @@ mm_modem_nokia_new (const char *device, MM_MODEM_MASTER_DEVICE, device, MM_MODEM_DRIVER, driver, MM_MODEM_PLUGIN, plugin, + MM_MODEM_HW_VID, vendor, + MM_MODEM_HW_PID, product, NULL)); } -- cgit v1.2.3-70-g09d2