Add attribute for cellular roaming indication
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 18 Sep 2009 01:19:45 +0000 (18:19 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 18 Sep 2009 01:19:45 +0000 (18:19 -0700)
src/service.c

index 2d3baba..c1c33f7 100644 (file)
@@ -60,6 +60,7 @@ struct connman_service {
        char *apn;
        char *username;
        char *password;
+       connman_bool_t roaming;
        struct connman_ipconfig *ipconfig;
        struct connman_device *device;
        struct connman_network *network;
@@ -488,6 +489,9 @@ static DBusMessage *get_properties(DBusConnection *conn,
        case CONNMAN_SERVICE_TYPE_BLUETOOTH:
                break;
        case CONNMAN_SERVICE_TYPE_CELLULAR:
+               connman_dbus_dict_append_variant(&dict, "Roaming",
+                                       DBUS_TYPE_BOOLEAN, &service->roaming);
+
                if (service->apn != NULL) {
                        connman_dbus_dict_append_variant(&dict, "APN",
                                        DBUS_TYPE_STRING, &service->apn);