src/xmms/config.c File Reference

#include <glib.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "xmmsc/xmmsc_idnumbers.h"
#include "xmmspriv/xmms_config.h"
#include "xmmspriv/xmms_utils.h"
#include "xmms/xmms_ipc.h"
#include "xmms/xmms_log.h"
#include "config_ipc.c"

Go to the source code of this file.

Defines

#define XMMS_CONFIG_VERSION   2
 Config file version.

Typedefs

typedef struct dump_tree_data_St dump_tree_data_t

Enumerations

enum  xmms_configparser_state_t { XMMS_CONFIG_STATE_INVALID, XMMS_CONFIG_STATE_START, XMMS_CONFIG_STATE_SECTION, XMMS_CONFIG_STATE_PROPERTY }

Functions

const gchar * xmms_config_property_lookup_get_string (xmms_config_t *conf, const gchar *key, xmms_error_t *err)
 Config functions.
xmms_config_property_txmms_config_lookup (const gchar *path)
 Look up a config key from the global config.
const gchar * xmms_config_property_get_name (const xmms_config_property_t *prop)
 Get the name of a config property.
void xmms_config_property_set_data (xmms_config_property_t *prop, const gchar *data)
 Set the data of the config property to a new value.
const gchar * xmms_config_property_get_string (const xmms_config_property_t *prop)
 Return the value of a config property as a string.
gint xmms_config_property_get_int (const xmms_config_property_t *prop)
 Return the value of a config property as an int.
gfloat xmms_config_property_get_float (const xmms_config_property_t *prop)
 Return the value of a config property as a float.
void xmms_config_property_callback_set (xmms_config_property_t *prop, xmms_object_handler_t cb, gpointer userdata)
 Set a callback function for a config property.
void xmms_config_property_callback_remove (xmms_config_property_t *prop, xmms_object_handler_t cb, gpointer userdata)
 Remove a callback from a config property.
xmms_config_property_txmms_config_property_register (const gchar *path, const gchar *default_value, xmms_object_handler_t cb, gpointer userdata)
 Register a new config property.
void xmms_config_init (const gchar *filename)
void xmms_config_shutdown ()
gboolean xmms_config_save (void)

Typedef Documentation

typedef struct dump_tree_data_St dump_tree_data_t

Enumeration Type Documentation

Enumerator:
XMMS_CONFIG_STATE_INVALID 
XMMS_CONFIG_STATE_START 
XMMS_CONFIG_STATE_SECTION 
XMMS_CONFIG_STATE_PROPERTY 

Definition at line 44 of file config.c.


Function Documentation

void xmms_config_init ( const gchar *  filename  ) 

Definition at line 693 of file config.c.

gboolean xmms_config_save ( void   ) 

Definition at line 883 of file config.c.

Referenced by xmms_config_property_set_data().

void xmms_config_shutdown ( void   ) 

Definition at line 788 of file config.c.


Generated on Tue Feb 23 18:14:36 2010 for XMMS2 by  doxygen 1.6.1