diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/gdm-config.c | 8 | ||||
-rw-r--r-- | common/gdm-config.h | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/common/gdm-config.c b/common/gdm-config.c index 6f6b1f7d..1b6e4e44 100644 --- a/common/gdm-config.c +++ b/common/gdm-config.c @@ -218,6 +218,14 @@ gdm_config_value_get_locale_string (const GdmConfigValue *value) return REAL_VALUE (value)->val.str; } +const char ** +gdm_config_value_get_string_array (const GdmConfigValue *value) +{ + g_return_val_if_fail (value != NULL, NULL); + g_return_val_if_fail (value->type == GDM_CONFIG_VALUE_STRING_ARRAY, NULL); + return (const char **)REAL_VALUE (value)->val.array; +} + gboolean gdm_config_value_get_bool (const GdmConfigValue *value) { diff --git a/common/gdm-config.h b/common/gdm-config.h index 4a4103bc..5fc184c1 100644 --- a/common/gdm-config.h +++ b/common/gdm-config.h @@ -183,6 +183,8 @@ GdmConfigValue * gdm_config_value_new_from_string (GdmConfigValueType ty GError **error); const char * gdm_config_value_get_string (const GdmConfigValue *value); const char * gdm_config_value_get_locale_string (const GdmConfigValue *value); +const char ** gdm_config_value_get_string_array (const GdmConfigValue *value); + int gdm_config_value_get_int (const GdmConfigValue *value); gboolean gdm_config_value_get_bool (const GdmConfigValue *value); |