Store the service name for easy identification
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 15 May 2009 03:18:38 +0000 (20:18 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 15 May 2009 03:18:38 +0000 (20:18 -0700)
src/service.c

index 4ce0ed3..05e0be8 100644 (file)
@@ -1157,6 +1157,10 @@ static int service_save(struct connman_service *service)
        g_free(data);
 
 update:
+       if (service->name != NULL)
+               g_key_file_set_string(keyfile, service->identifier,
+                                               "Name", service->name);
+
        switch (service->type) {
        case CONNMAN_SERVICE_TYPE_UNKNOWN:
        case CONNMAN_SERVICE_TYPE_ETHERNET: