Back to index

lightdm  1.3.2
Classes | Defines | Typedefs | Functions
configuration.h File Reference
#include <glib-object.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Configuration
struct  ConfigurationClass

Defines

#define CONFIGURATION_TYPE   (config_get_type())
#define CONFIGURATION(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIGURATION_TYPE, Configuration));

Typedefs

typedef struct ConfigurationPrivate

Functions

GType config_get_type (void)
Configurationconfig_get_instance (void)
gboolean config_load_from_file (Configuration *config, const gchar *path, GError **error)
gchar ** config_get_groups (Configuration *config)
gchar ** config_get_keys (Configuration *config, const gchar *group_name)
gboolean config_has_key (Configuration *config, const gchar *section, const gchar *key)
void config_set_string (Configuration *config, const gchar *section, const gchar *key, const gchar *value)
gchar * config_get_string (Configuration *config, const gchar *section, const gchar *key)
void config_set_integer (Configuration *config, const gchar *section, const gchar *key, gint value)
gint config_get_integer (Configuration *config, const gchar *section, const gchar *key)
void config_set_boolean (Configuration *config, const gchar *section, const gchar *key, gboolean value)
gboolean config_get_boolean (Configuration *config, const gchar *section, const gchar *key)

Class Documentation

struct Configuration

Definition at line 24 of file configuration.h.

Collaboration diagram for Configuration:
Class Members
GObject parent_instance
ConfigurationPrivate * priv
struct ConfigurationClass

Definition at line 30 of file configuration.h.

Class Members
GObjectClass parent_class

Define Documentation

#define CONFIGURATION (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIGURATION_TYPE, Configuration));

Definition at line 20 of file configuration.h.

Definition at line 19 of file configuration.h.


Typedef Documentation

typedef struct ConfigurationPrivate

Definition at line 22 of file configuration.h.


Function Documentation

gboolean config_get_boolean ( Configuration config,
const gchar *  section,
const gchar *  key 
)

Definition at line 86 of file configuration.c.

{
    return g_key_file_get_boolean (config->priv->key_file, section, key, NULL);
}

Here is the caller graph for this function:

gchar** config_get_groups ( Configuration config)

Definition at line 38 of file configuration.c.

{
    return g_key_file_get_groups (config->priv->key_file, NULL);
}

Here is the caller graph for this function:

Definition at line 24 of file configuration.c.

Here is the caller graph for this function:

gint config_get_integer ( Configuration config,
const gchar *  section,
const gchar *  key 
)

Definition at line 74 of file configuration.c.

{
    return g_key_file_get_integer (config->priv->key_file, section, key, NULL);
}

Here is the caller graph for this function:

gchar** config_get_keys ( Configuration config,
const gchar *  group_name 
)

Definition at line 44 of file configuration.c.

{
    return g_key_file_get_keys (config->priv->key_file, group_name, NULL, NULL);
}

Here is the caller graph for this function:

gchar* config_get_string ( Configuration config,
const gchar *  section,
const gchar *  key 
)

Definition at line 62 of file configuration.c.

{
    return g_key_file_get_string (config->priv->key_file, section, key, NULL);
}

Here is the caller graph for this function:

GType config_get_type ( void  )
gboolean config_has_key ( Configuration config,
const gchar *  section,
const gchar *  key 
)

Definition at line 50 of file configuration.c.

{
    return g_key_file_has_key (config->priv->key_file, section, key, NULL);
}

Here is the caller graph for this function:

gboolean config_load_from_file ( Configuration config,
const gchar *  path,
GError **  error 
)

Definition at line 32 of file configuration.c.

{
    return g_key_file_load_from_file (config->priv->key_file, path, G_KEY_FILE_NONE, error);
}

Here is the caller graph for this function:

void config_set_boolean ( Configuration config,
const gchar *  section,
const gchar *  key,
gboolean  value 
)

Definition at line 80 of file configuration.c.

{
    g_key_file_set_boolean (config->priv->key_file, section, key, value);
}

Here is the caller graph for this function:

void config_set_integer ( Configuration config,
const gchar *  section,
const gchar *  key,
gint  value 
)

Definition at line 68 of file configuration.c.

{
    g_key_file_set_integer (config->priv->key_file, section, key, value);
}

Here is the caller graph for this function:

void config_set_string ( Configuration config,
const gchar *  section,
const gchar *  key,
const gchar *  value 
)

Definition at line 56 of file configuration.c.

{
    g_key_file_set_string (config->priv->key_file, section, key, value);
}

Here is the caller graph for this function: