XMMS2
xmms_config.h
Go to the documentation of this file.
1/* XMMS2 - X Music Multiplexer System
2 * Copyright (C) 2003-2011 XMMS2 Team
3 *
4 * PLUGINS ARE NOT CONSIDERED TO BE DERIVED WORK !!!
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 */
16
17#ifndef __XMMS_CONFIG_H__
18#define __XMMS_CONFIG_H__
19
20#include <glib.h>
21#include "xmms/xmms_object.h"
22
23G_BEGIN_DECLS
24
25typedef struct xmms_config_St xmms_config_t;
26typedef struct xmms_config_property_St xmms_config_property_t;
27
29
31 const gchar *key,
32 xmms_error_t *err);
37
38xmms_config_property_t *xmms_config_property_register (const gchar *path, const gchar *default_value, xmms_object_handler_t cb, gpointer userdata);
39
40void xmms_config_property_set_data (xmms_config_property_t *prop, const gchar *data);
41
44
45G_END_DECLS
46
47#endif
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.
Definition config.c:307
xmms_config_property_t * xmms_config_property_register(const gchar *path, const gchar *default_value, xmms_object_handler_t cb, gpointer userdata)
Register a new config property.
Definition config.c:334
gint xmms_config_property_get_int(const xmms_config_property_t *prop)
Return the value of a config property as an int.
Definition config.c:255
const gchar * xmms_config_property_get_string(const xmms_config_property_t *prop)
Return the value of a config property as a string.
Definition config.c:243
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.
Definition config.c:287
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.
Definition config.c:202
gfloat xmms_config_property_get_float(const xmms_config_property_t *prop)
Return the value of a config property as a float.
Definition config.c:270
xmms_config_property_t * xmms_config_lookup(const gchar *path)
Look up a config key from the global config.
Definition config.c:171
const gchar * xmms_config_property_get_name(const xmms_config_property_t *prop)
Get the name of a config property.
Definition config.c:189
const gchar * xmms_config_property_lookup_get_string(xmms_config_t *conf, const gchar *key, xmms_error_t *err)
Config functions.
Definition config.c:149
struct xmms_config_property_St xmms_config_property_t
Definition xmms_config.h:26
typedefG_BEGIN_DECLS struct xmms_config_St xmms_config_t
Definition xmms_config.h:25
G_BEGIN_DECLS struct xmms_error_St xmms_error_t
void(* xmms_object_handler_t)(xmms_object_t *object, xmmsv_t *data, gpointer userdata)
Definition xmms_object.h:66