KeyFile Settings

KeyFile Settings — Settings manager using key files

Synopsis


#include <ogmrip-keyfile-settings.h>

                    OGMRipKeyFileSettings;
                    OGMRipKeyFileSettingsClass;
OGMRipSettings*     ogmrip_keyfile_settings_new         (void);
gboolean            ogmrip_keyfile_settings_load        (OGMRipKeyFileSettings *settings,
                                                         const gchar *filename,
                                                         GError **error);
gboolean            ogmrip_keyfile_settings_save        (OGMRipKeyFileSettings *settings,
                                                         const gchar *filename,
                                                         GError **error);

Description

Details

OGMRipKeyFileSettings

typedef struct {
  GObject parent_instance;

  OGMRipKeyFileSettingsPriv *priv;
} OGMRipKeyFileSettings;


OGMRipKeyFileSettingsClass

typedef struct {
  GObjectClass parent_class;
} OGMRipKeyFileSettingsClass;


ogmrip_keyfile_settings_new ()

OGMRipSettings*     ogmrip_keyfile_settings_new         (void);

Creates a new OGMRipSettings

Returns :

the new OGMRipSettings

ogmrip_keyfile_settings_load ()

gboolean            ogmrip_keyfile_settings_load        (OGMRipKeyFileSettings *settings,
                                                         const gchar *filename,
                                                         GError **error);

Loads a key file.

settings :

an OGMRipKeyFileSettings

filename :

the filename to load

error :

return location for error

Returns :

TRUE on success, FALSE if an error was set

ogmrip_keyfile_settings_save ()

gboolean            ogmrip_keyfile_settings_save        (OGMRipKeyFileSettings *settings,
                                                         const gchar *filename,
                                                         GError **error);

Saves a key file.

settings :

an OGMRipKeyFileSettings

filename :

the filename where to save the keys and values

error :

return location for error

Returns :

TRUE on success, FALSE if an error was set