diff options
author | Ryan Lortie <desrt@desrt.ca> | 2013-01-07 18:28:40 -0500 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2013-01-08 13:19:30 -0500 |
commit | 4ed6cd42312e600e44414b4a9f5ae4f232937a18 (patch) | |
tree | b1b58039d9b29c7b9f9c8853c20c12e65c3774cf /service/dconf-writer.h | |
parent | a2bad17d26b596ef46fd2e9c60b9e0163a51012d (diff) | |
download | dconf-4ed6cd42312e600e44414b4a9f5ae4f232937a18.tar.gz |
writer: move instance and class struct into header
...and add a lot of ->priv.
This is not a public API because this header doesn't get installed, but
it can now be used by other things in-tree.
Diffstat (limited to 'service/dconf-writer.h')
-rw-r--r-- | service/dconf-writer.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/service/dconf-writer.h b/service/dconf-writer.h index 08183e7..eb00422 100644 --- a/service/dconf-writer.h +++ b/service/dconf-writer.h @@ -24,14 +24,46 @@ #include <gio/gio.h> +#include "../common/dconf-changeset.h" +#include "dconf-generated.h" + #define DCONF_TYPE_WRITER (dconf_writer_get_type ()) #define DCONF_WRITER(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \ DCONF_TYPE_WRITER, DConfWriter)) +#define DCONF_WRITER_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), \ + DCONF_TYPE_WRITER, DConfWriterClass) #define DCONF_IS_WRITER(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \ DCONF_TYPE_WRITER)) +#define DCONF_IS_WRITER_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), \ + DCONF_TYPE_WRITER)) #define DCONF_WRITER_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), \ DCONF_TYPE_WRITER, DConfWriterClass)) +typedef struct _DConfWriterPrivate DConfWriterPrivate; +typedef struct _DConfWriterClass DConfWriterClass; +typedef struct _DConfWriter DConfWriter; + +struct _DConfWriterClass +{ + DConfDBusWriterSkeletonClass parent_instance; + + /* instance methods */ + gboolean (* begin) (DConfWriter *writer, + GError **error); + void (* change) (DConfWriter *writer, + DConfChangeset *changeset, + const gchar *tag); + gboolean (* commit) (DConfWriter *writer, + GError **error); + void (* end) (DConfWriter *writer); +}; + +struct _DConfWriter +{ + DConfDBusWriterSkeleton parent_instance; + DConfWriterPrivate *priv; +}; + GDBusInterfaceSkeleton *dconf_writer_new (const gchar *filename); #endif /* __dconf_writer_h__ */ |