[ostree] core: Add _STRING variants of GVariant object formats
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] core: Add _STRING variants of GVariant object formats
- Date: Tue, 29 Apr 2014 15:51:57 +0000 (UTC)
commit 959db9f0deb49d3ec896419a0ea358df1a799d0b
Author: Colin Walters <walters verbum org>
Date: Sun Apr 27 16:32:17 2014 -0400
core: Add _STRING variants of GVariant object formats
For the static deltas work, we're going to embed a commit in the delta
superblock, so we need a format string without the G_VARIANT_TYPE().
src/libostree/ostree-core.h | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/libostree/ostree-core.h b/src/libostree/ostree-core.h
index de1698d..ced4ff4 100644
--- a/src/libostree/ostree-core.h
+++ b/src/libostree/ostree-core.h
@@ -80,7 +80,8 @@ typedef enum {
* u - mode
* a(ayay) - xattrs
*/
-#define OSTREE_DIRMETA_GVARIANT_FORMAT G_VARIANT_TYPE ("(uuua(ayay))")
+#define OSTREE_DIRMETA_GVARIANT_STRING "(uuua(ayay))"
+#define OSTREE_DIRMETA_GVARIANT_FORMAT G_VARIANT_TYPE (OSTREE_DIRMETA_GVARIANT_STRING)
/**
* OSTREE_TREE_GVARIANT_FORMAT:
@@ -88,7 +89,8 @@ typedef enum {
* a(say) - array of (filename, checksum) for files
* a(sayay) - array of (dirname, tree_checksum, meta_checksum) for directories
*/
-#define OSTREE_TREE_GVARIANT_FORMAT G_VARIANT_TYPE ("(a(say)a(sayay))")
+#define OSTREE_TREE_GVARIANT_STRING "(a(say)a(sayay))"
+#define OSTREE_TREE_GVARIANT_FORMAT G_VARIANT_TYPE (OSTREE_TREE_GVARIANT_STRING)
/**
* OSTREE_COMMIT_GVARIANT_FORMAT:
@@ -102,7 +104,8 @@ typedef enum {
* ay - Root tree contents
* ay - Root tree metadata
*/
-#define OSTREE_COMMIT_GVARIANT_FORMAT G_VARIANT_TYPE ("(a{sv}aya(say)sstayay)")
+#define OSTREE_COMMIT_GVARIANT_STRING "(a{sv}aya(say)sstayay)"
+#define OSTREE_COMMIT_GVARIANT_FORMAT G_VARIANT_TYPE (OSTREE_COMMIT_GVARIANT_STRING)
/**
* OstreeRepoMode:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]