Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __XMMS_CONFIG_H__
00018 #define __XMMS_CONFIG_H__
00019
00020 #include <glib.h>
00021 #include "xmms/xmms_object.h"
00022
00023 G_BEGIN_DECLS
00024
00025 typedef struct xmms_config_St xmms_config_t;
00026 typedef struct xmms_config_property_St xmms_config_property_t;
00027
00028 xmms_config_property_t *xmms_config_lookup (const gchar *path);
00029
00030 const gchar *xmms_config_property_lookup_get_string (xmms_config_t *conf,
00031 const gchar *key,
00032 xmms_error_t *err);
00033 const gchar *xmms_config_property_get_string (const xmms_config_property_t *prop);
00034 gint xmms_config_property_get_int (const xmms_config_property_t *prop);
00035 gfloat xmms_config_property_get_float (const xmms_config_property_t *prop);
00036 const gchar *xmms_config_property_get_name (const xmms_config_property_t *prop);
00037
00038 xmms_config_property_t *xmms_config_property_register (const gchar *path, const gchar *default_value, xmms_object_handler_t cb, gpointer userdata);
00039
00040 void xmms_config_property_set_data (xmms_config_property_t *prop, const gchar *data);
00041
00042 void xmms_config_property_callback_set (xmms_config_property_t *prop, xmms_object_handler_t cb, gpointer userdata);
00043 void xmms_config_property_callback_remove (xmms_config_property_t *prop, xmms_object_handler_t cb, gpointer userdata);
00044
00045 G_END_DECLS
00046
00047 #endif