All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christophe Ronco <c.ronco@kerlink.fr>
To: ofono@ofono.org
Subject: [PATCH 2/3] modem: Add SystemPath dbus property
Date: Mon, 19 Feb 2018 15:57:13 +0100	[thread overview]
Message-ID: <1519052234-13973-3-git-send-email-c.ronco@kerlink.fr> (raw)
In-Reply-To: <1519052234-13973-1-git-send-email-c.ronco@kerlink.fr>

[-- Attachment #1: Type: text/plain, Size: 964 bytes --]

---
 src/modem.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/modem.c b/src/modem.c
index d5fda7c..0cee861 100644
--- a/src/modem.c
+++ b/src/modem.c
@@ -792,6 +792,7 @@ void __ofono_modem_append_properties(struct ofono_modem *modem,
 	struct ofono_devinfo *info;
 	dbus_bool_t emergency = ofono_modem_get_emergency_mode(modem);
 	const char *strtype;
+	const char *system_path;
 
 	ofono_dbus_dict_append(dict, "Online", DBUS_TYPE_BOOLEAN,
 				&modem->online);
@@ -832,6 +833,11 @@ void __ofono_modem_append_properties(struct ofono_modem *modem,
 						&info->svn);
 	}
 
+	system_path = ofono_modem_get_string(modem, "SystemPath");
+	if (system_path)
+		ofono_dbus_dict_append(dict, "SystemPath", DBUS_TYPE_STRING,
+					&system_path);
+
 	interfaces = g_new0(char *, g_slist_length(modem->interface_list) + 1);
 	for (i = 0, l = modem->interface_list; l; l = l->next, i++)
 		interfaces[i] = l->data;
-- 
2.7.4


  parent reply	other threads:[~2018-02-19 14:57 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-13 19:53 [PATCH] udevng: Add OFONO_PATHNAME property to set modem dbus path name Pau Espin Pedrol
2018-02-14 17:04 ` Denis Kenzior
2018-02-14 18:15   ` Pau Espin Pedrol
2018-02-14 20:31     ` Denis Kenzior
2018-02-15  8:47       ` Christophe Ronco
2018-02-15  8:50         ` [PATCH] add syspath property to modem properties Christophe Ronco
2018-02-15 12:09           ` Pau Espin Pedrol
2018-02-15 15:59           ` Denis Kenzior
2018-02-16 15:40             ` Christophe Ronco
2018-02-16 18:19               ` Denis Kenzior
2018-02-19 14:57                 ` [PATCH 0/3] Add SystemPath property to modem interface Christophe Ronco
2018-02-19 14:57                   ` [PATCH 1/3] udevng: Add modem string SystemPath Christophe Ronco
2018-02-19 14:57                   ` Christophe Ronco [this message]
2018-02-19 14:57                   ` [PATCH 3/3] doc: Add SystemPath to Modem interface Christophe Ronco
2018-02-19 15:36                     ` Jonas Bonn
2018-02-19 17:25                       ` Denis Kenzior
2018-02-20  8:57                         ` [PATCH 1/1] " Christophe Ronco
2018-02-20 17:10                   ` [PATCH 0/3] Add SystemPath property to modem interface Denis Kenzior
2018-02-15 12:22 ` [PATCH] modem: ofono_modem_create: log invalid paths Pau Espin Pedrol

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1519052234-13973-3-git-send-email-c.ronco@kerlink.fr \
    --to=c.ronco@kerlink.fr \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.