diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2014-06-22 17:29:50 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2014-06-23 18:12:27 +0200 |
commit | 7c347aa3ec1d5540c23c20dcb5edd3c6ccb28c24 (patch) | |
tree | d60adda1f391e4ae112f057853d7f07426ad5f89 /src/mm-base-modem.c | |
parent | 7752c9920d83059836d010a61e44daa4232c4c65 (diff) |
port: store parent sysfs path in each MMPort
Diffstat (limited to 'src/mm-base-modem.c')
-rw-r--r-- | src/mm-base-modem.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mm-base-modem.c b/src/mm-base-modem.c index 715dc258..76adb416 100644 --- a/src/mm-base-modem.c +++ b/src/mm-base-modem.c @@ -162,6 +162,7 @@ gboolean mm_base_modem_grab_port (MMBaseModem *self, const gchar *subsys, const gchar *name, + const gchar *parent_path, MMPortType ptype, MMPortSerialAtFlag at_pflags, GError **error) @@ -306,6 +307,11 @@ mm_base_modem_grab_port (MMBaseModem *self, * Note: 'key' and 'port' now owned by the HT. */ g_hash_table_insert (self->priv->ports, key, port); + /* Store parent path */ + g_object_set (port, + MM_PORT_PARENT_PATH, parent_path, + NULL); + return TRUE; } |