Skip to content

Commit

Permalink
modem: Add SystemPath dbus property
Browse files Browse the repository at this point in the history
  • Loading branch information
christopheronco authored and monich committed Feb 5, 2020
1 parent 0afceac commit a37f325
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ofono/src/modem.c
Expand Up @@ -805,6 +805,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);
Expand Down Expand Up @@ -845,6 +846,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;
Expand Down

0 comments on commit a37f325

Please sign in to comment.