/ gwsettings.h / Content
/* GWhere.
* Copyright (C) 2000 Sébastien LECACHEUR
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef GW_DATA_SETTINGS_H
#define GW_DATA_SETTINGS_H
typedef struct settings GWSettings;
GWSettings * gw_settings_new ( void);
gint gw_settings_display ( GWSettings *p);
gint gw_settings_add_pair ( GWSettings *p, gchar *key, gchar *value);
gchar * gw_settings_get_value ( GWSettings *p, gchar *key);
gint gw_settings_free ( GWSettings *p);
gint gw_settings_pair_display ( gchar * key, gchar *value, gpointer data);
gboolean gw_settings_pair_free ( gchar * key, gchar *value, gpointer data);
gint gw_settings_to_line ( gchar * key, gchar *value, gchar **line);
gint gw_settings_to_file ( GWSettings *p, gchar **file);
#endif