diff options
Diffstat (limited to 'common/dconf-changeset.h')
-rw-r--r-- | common/dconf-changeset.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/common/dconf-changeset.h b/common/dconf-changeset.h new file mode 100644 index 0000000..930c09b --- /dev/null +++ b/common/dconf-changeset.h @@ -0,0 +1,61 @@ +/* + * Copyright © 2010 Codethink Limited + * + * 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. + * + * Author: Ryan Lortie <desrt@desrt.ca> + */ + +#ifndef __dconf_changeset_h__ +#define __dconf_changeset_h__ + +#include <glib.h> + +typedef struct _DConfChangeset DConfChangeset; + +typedef gboolean (* DConfChangesetPredicate) (const gchar *key, + GVariant *value, + gpointer user_data); + +DConfChangeset * dconf_changeset_new (void); + +DConfChangeset * dconf_changeset_ref (DConfChangeset *changeset); +void dconf_changeset_unref (DConfChangeset *changeset); + +void dconf_changeset_set (DConfChangeset *changeset, + const gchar *key, + GVariant *value); + +gboolean dconf_changeset_get (DConfChangeset *changeset, + const gchar *key, + GVariant **value); + +gboolean dconf_changeset_is_similar_to (DConfChangeset *changeset, + DConfChangeset *other); + +gboolean dconf_changeset_all (DConfChangeset *changeset, + DConfChangesetPredicate predicate, + gpointer user_data); + +guint dconf_changeset_describe (DConfChangeset *changeset, + const gchar **change_root, + const gchar * const **changes, + GVariant * const **values); + +GVariant * dconf_changeset_serialise (DConfChangeset *changeset); +DConfChangeset * dconf_changeset_deserialise (GVariant *serialised); + +#endif /* __dconf_changeset_h__ */ |