void *value;
};
+static const char *modem_type_to_string(enum ofono_modem_type type)
+{
+ switch (type) {
+ case OFONO_MODEM_TYPE_HARDWARE:
+ return "hardware";
+ case OFONO_MODEM_TYPE_HFP:
+ return "hfp";
+ case OFONO_MODEM_TYPE_SAP:
+ return "sap";
+ }
+
+ return "unknown";
+}
+
unsigned int __ofono_modem_callid_next(struct ofono_modem *modem)
{
unsigned int i;
GSList *l;
struct ofono_atom *devinfo_atom;
dbus_bool_t emergency = ofono_modem_get_emergency_mode(modem);
+ const char *strtype;
ofono_dbus_dict_append(dict, "Online", DBUS_TYPE_BOOLEAN,
&modem->online);
if (modem->name)
ofono_dbus_dict_append(dict, "Name", DBUS_TYPE_STRING,
&modem->name);
+
+ strtype = modem_type_to_string(modem->driver->modem_type);
+ ofono_dbus_dict_append(dict, "Type", DBUS_TYPE_STRING, &strtype);
}
static DBusMessage *modem_get_properties(DBusConnection *conn,