aboutsummaryrefslogtreecommitdiff
path: root/src/mm-modem.h
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2010-10-22 11:06:48 -0500
committerDan Williams <dcbw@redhat.com>2010-10-22 11:06:48 -0500
commit7ae8ffe21b9e3bb350dac2f2d34d0711b3255d26 (patch)
tree83ee2518d8e349d383a3d58f4e82cc2666800b3a /src/mm-modem.h
parent328d2369a9dadfae786e4c524b5ff2fd0d1a9e17 (diff)
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.
Diffstat (limited to 'src/mm-modem.h')
-rw-r--r--src/mm-modem.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mm-modem.h b/src/mm-modem.h
index bff7e359..1faf3838 100644
--- a/src/mm-modem.h
+++ b/src/mm-modem.h
@@ -11,7 +11,7 @@
* GNU General Public License for more details:
*
* Copyright (C) 2008 - 2009 Novell, Inc.
- * Copyright (C) 2009 Red Hat, Inc.
+ * Copyright (C) 2009 - 2010 Red Hat, Inc.
*/
#ifndef MM_MODEM_H
@@ -65,6 +65,8 @@ typedef enum {
#define MM_MODEM_VALID "valid" /* not exported */
#define MM_MODEM_PLUGIN "plugin" /* not exported */
#define MM_MODEM_STATE "state" /* not exported */
+#define MM_MODEM_HW_VID "hw-vid" /* not exported */
+#define MM_MODEM_HW_PID "hw-pid" /* not exported */
#define MM_MODEM_TYPE_UNKNOWN 0
#define MM_MODEM_TYPE_GSM 1
@@ -89,7 +91,9 @@ typedef enum {
MM_MODEM_PROP_EQUIPMENT_IDENTIFIER,
MM_MODEM_PROP_UNLOCK_REQUIRED,
MM_MODEM_PROP_UNLOCK_RETRIES,
- MM_MODEM_PROP_DEVICE_IDENTIFIER
+ MM_MODEM_PROP_DEVICE_IDENTIFIER,
+ MM_MODEM_PROP_HW_VID, /* Not exported */
+ MM_MODEM_PROP_HW_PID /* Not exported */
} MMModemProp;
typedef struct _MMModem MMModem;