Hi Jukka,
> src/config.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/src/config.c b/src/config.c
> index 3b66a73..5a2bd11 100644
> --- a/src/config.c
> +++ b/src/config.c
> @@ -91,6 +91,7 @@ static connman_bool_t cleanup = FALSE;
> #define SERVICE_KEY_IDENTITY "Identity"
> #define SERVICE_KEY_PHASE2 "Phase2"
> #define SERVICE_KEY_PASSPHRASE "Passphrase"
> +#define SERVICE_KEY_HIDDEN "Hidden"
>
> static const char *config_possible_keys[] = {
> CONFIG_KEY_NAME,
> @@ -112,6 +113,7 @@ static const char *service_possible_keys[] = {
> SERVICE_KEY_IDENTITY,
> SERVICE_KEY_PHASE2,
> SERVICE_KEY_PASSPHRASE,
> + SERVICE_KEY_HIDDEN,
> NULL,
> };
>
> @@ -389,6 +391,9 @@ static int load_service(GKeyFile *keyfile, const char
> *group,
> service->config_ident = g_strdup(config->ident);
> service->config_entry = g_strdup_printf("service_%s", service->ident);
>
> + service->hidden = g_key_file_get_boolean(keyfile, group,
> + SERVICE_KEY_HIDDEN, NULL);
> +
> if (service_created)
> g_hash_table_insert(config->service_table, service->ident,
> service);
> @@ -851,6 +856,9 @@ static void provision_service(gpointer key, gpointer
> value, gpointer user_data)
> if (config->passphrase != NULL)
> __connman_service_set_string(service, "Passphrase",
> config->passphrase);
>
> + if (config->hidden == TRUE)
> + __connman_service_set_hidden(service);
> +
I would have applied this patch, but it depends on the other one. Start
out with the documentation update and this one and then lets update the
others.
Regards
Marcel
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman