XMMS2
Macros | Typedefs | Enumerations | Functions
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"

Macros

#define XMMS_CONFIG_VERSION   2
 Config file version. More...
 

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. More...
 
xmms_config_property_txmms_config_lookup (const gchar *path)
 Look up a config key from the global config. More...
 
const gchar * xmms_config_property_get_name (const xmms_config_property_t *prop)
 Get the name of a config property. More...
 
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. More...
 
const gchar * xmms_config_property_get_string (const xmms_config_property_t *prop)
 Return the value of a config property as a string. More...
 
gint xmms_config_property_get_int (const xmms_config_property_t *prop)
 Return the value of a config property as an int. More...
 
gfloat xmms_config_property_get_float (const xmms_config_property_t *prop)
 Return the value of a config property as a float. More...
 
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. More...
 
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. More...
 
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. More...
 
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 

Function Documentation

void xmms_config_init ( const gchar *  filename)
gboolean xmms_config_save ( void  )
void xmms_config_shutdown ( void  )