core: reorder struct members for Key and KeySet
@@ -243,6 +243,11 @@ struct _Key
*/
size_t keyUSize;
+ /**
+ * All the key's meta information.
+ */
+ KeySet * meta;
+
/**
* Some control and internal flags.
*/
@@ -254,9 +259,9 @@ struct _Key
uint16_t refs;
/**
- * All the key's meta information.
+ * Reserved for future use
*/
- KeySet * meta;
+ uint16_t reserved;
};
@@ -283,13 +288,15 @@ struct _KeySet
struct _Key * cursor; /**< Internal cursor */
size_t current; /**< Current position of cursor */
- uint16_t refs; /**< Reference counter */
-
/**
* Some control and internal flags.
*/
ksflag_t flags;
+ uint16_t refs; /**< Reference counter */
+
+ uint16_t reserved; /**< Reserved for future use */
+
#ifdef ELEKTRA_ENABLE_OPTIMIZATIONS
/**
* The Order Preserving Minimal Perfect Hash Map.
@@ -335,11 +342,11 @@ struct _KDB
Backend * initBackend; /*!< The init backend for bootstrapping.*/
- Plugin * globalPlugins[NR_GLOBAL_POSITIONS][NR_GLOBAL_SUBPOSITIONS];
-
KeySet * global; /*!< This keyset can be used by plugins to pass data through
the KDB and communicate with other plugins. Plugins shall clean
up their parts of the global keyset, which they do not need any more.*/
+
+ Plugin * globalPlugins[NR_GLOBAL_POSITIONS][NR_GLOBAL_SUBPOSITIONS];
};
