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.
 

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

◆ dump_tree_data_t

typedef struct dump_tree_data_St dump_tree_data_t

Enumeration Type Documentation

◆ xmms_configparser_state_t

Enumerator
XMMS_CONFIG_STATE_INVALID 
XMMS_CONFIG_STATE_START 
XMMS_CONFIG_STATE_SECTION 
XMMS_CONFIG_STATE_PROPERTY 

Function Documentation

◆ xmms_config_init()

void xmms_config_init ( const gchar * filename)

◆ xmms_config_save()

gboolean xmms_config_save ( void )

◆ xmms_config_shutdown()

void xmms_config_shutdown ( void )