1 /* 2 * Copyright (C) 2008 Marc Pavot <marc.pavot@gmail.com> 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2, or (at your option) 7 * any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 * 18 */ 19 20 21 #ifndef ARIO_CONF_H 22 #define ARIO_CONF_H 23 24 #include <glib.h> 25 26 typedef void (*ArioNotifyFunc) (guint notification_id, 27 gpointer user_data); 28 29 void ario_conf_set_boolean (const char *key, 30 gboolean boolean_value); 31 gboolean ario_conf_get_boolean (const char *key, 32 const gboolean default_value); 33 int ario_conf_get_integer (const char *key, 34 const int default_value); 35 void ario_conf_set_integer (const char *key, 36 int int_value); 37 gfloat ario_conf_get_float (const char *key, 38 const gfloat default_value); 39 void ario_conf_set_float (const char *key, 40 gfloat float_value); 41 const char * ario_conf_get_string (const char *key, 42 const char *default_value); 43 void ario_conf_set_string (const char *key, 44 const char *string_value); 45 GSList * ario_conf_get_string_slist (const char *key, 46 const char *string_value); 47 void ario_conf_set_string_slist (const char *key, 48 const GSList *string_slist_value); 49 void ario_conf_init (void); 50 void ario_conf_shutdown (void); 51 guint ario_conf_notification_add (const char *key, 52 ArioNotifyFunc notification_callback, 53 gpointer callback_data); 54 void ario_conf_notification_remove (guint notification_id); 55 56 #endif /* ARIO_CONF_H */ 57