modem: Add SystemPath dbus property

This commit is contained in:
Christophe Ronco 2018-02-19 15:57:13 +01:00 committed by Denis Kenzior
parent 4b1609c2d7
commit 895ca91d85
1 changed files with 6 additions and 0 deletions

View File

@ -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;