The 2 allowed fields for that entry are:
- Name: Name of the network.
- Description: Description of the network.
+- Protected: Configuration protection against being removed, modified or
+overwritten by a Manager.ProvisionService() call. By default, a configuration
+is not protected.
Service entry [service_*]
char *ident;
char *name;
char *description;
+ connman_bool_t protected;
GHashTable *service_table;
};
/* Definition of possible strings in the .config files */
#define CONFIG_KEY_NAME "Name"
#define CONFIG_KEY_DESC "Description"
+#define CONFIG_KEY_PROT "Protected"
#define SERVICE_KEY_TYPE "Type"
#define SERVICE_KEY_NAME "Name"
static const char *config_possible_keys[] = {
CONFIG_KEY_NAME,
CONFIG_KEY_DESC,
+ CONFIG_KEY_PROT,
NULL,
};
gsize length;
char **groups;
char *str;
+ gboolean protected;
int i;
DBG("config %p", config);
config->description = str;
}
+ protected = g_key_file_get_boolean(keyfile, "global",
+ CONFIG_KEY_PROT, NULL);
+ config->protected = protected;
+
groups = g_key_file_get_groups(keyfile, &length);
for (i = 0; groups[i] != NULL; i++) {