26 #ifndef GNC_PREFS_P_H_ 27 #define GNC_PREFS_P_H_ 34 gulong (*register_cb) (
const char *group,
35 const gchar *pref_name,
39 void (*remove_cb_by_func) (
const gchar *group,
40 const gchar *pref_name,
44 void (*remove_cb_by_id) (
const gchar *group,
47 guint (*register_group_cb) (
const gchar *group,
51 void (*remove_group_cb_by_func) (
const gchar *group,
55 void (*bind) (
const gchar *group,
56 const gchar *pref_name,
58 const gchar *property);
60 gboolean (*get_bool) (
const gchar *group,
61 const gchar *pref_name);
63 gint (*get_int) (
const gchar *group,
64 const gchar *pref_name);
66 gdouble (*get_float) (
const gchar *group,
67 const gchar *pref_name);
69 gchar *(*get_string) (
const gchar *group,
70 const gchar *pref_name);
72 gint (*get_enum) (
const gchar *group,
73 const gchar *pref_name);
75 GVariant *(*get_value) (
const gchar *group,
76 const gchar *pref_name);
78 gboolean (*set_bool) (
const gchar *group,
79 const gchar *pref_name,
82 gboolean (*set_int) (
const gchar *group,
83 const gchar *pref_name,
86 gboolean (*set_float) (
const gchar *group,
87 const gchar *pref_name,
90 gboolean (*set_string) (
const gchar *group,
91 const gchar *pref_name,
94 gboolean (*set_enum) (
const gchar *group,
95 const gchar *pref_name,
98 gboolean (*set_value) (
const gchar *group,
99 const gchar *pref_name,
102 void (*reset) (
const gchar *group,
103 const gchar *pref_name);
105 void (*reset_group) (
const gchar *group);
107 void (*block_all) (void);
109 void (*unblock_all) (void);
Generic api to store and retrieve preferences.