glib/gio/gkeyfilesettingsbackend.h

72 lines
3.1 KiB
C
Raw Normal View History

2010-04-17 05:57:26 +02:00
/*
* Copyright © 2010 Codethink Limited
* Copyright © 2010 Novell, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the licence, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*
* Authors: Vincent Untz <vuntz@gnome.org>
* Ryan Lortie <desrt@desrt.ca>
*/
#ifndef __G_KEY_FILE_SETTINGS_BACKEND_H__
#define __G_KEY_FILE_SETTINGS_BACKEND_H__
#include <gio/gsettingsbackend.h>
#define G_TYPE_KEYFILE_SETTINGS_BACKEND (g_keyfile_settings_backend_get_type ())
#define G_KEYFILE_SETTINGS_BACKEND(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \
G_TYPE_KEYFILE_SETTINGS_BACKEND, \
GKeyfileSettingsBackend))
#define G_KEYFILE_SETTINGS_BACKEND_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), \
G_TYPE_KEYFILE_SETTINGS_BACKEND, \
GKeyfileSettingsBackendClass))
#define G_IS_KEYFILE_SETTINGS_BACKEND(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \
G_TYPE_KEYFILE_SETTINGS_BACKEND))
#define G_IS_KEYFILE_SETTINGS_BACKEND_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), \
G_TYPE_KEYFILE_SETTINGS_BACKEND))
#define G_KEYFILE_SETTINGS_BACKEND_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), \
G_TYPE_KEYFILE_SETTINGS_BACKEND, \
GKeyfileSettingsBackendClass))
/*
* GKeyfileSettingsBackend:
*
* A backend to GSettings that stores the settings in keyfile.
*/
typedef struct _GKeyfileSettingsBackendPrivate GKeyfileSettingsBackendPrivate;
typedef struct _GKeyfileSettingsBackendClass GKeyfileSettingsBackendClass;
typedef struct _GKeyfileSettingsBackend GKeyfileSettingsBackend;
struct _GKeyfileSettingsBackendClass
{
GSettingsBackendClass parent_class;
};
struct _GKeyfileSettingsBackend
{
GSettingsBackend parent_instance;
/*< private >*/
GKeyfileSettingsBackendPrivate *priv;
};
G_GNUC_INTERNAL
GType g_keyfile_settings_backend_get_type (void);
#endif /* __G_KEY_FILE_SETTINGS_BACKEND_H__ */