lib: Add #defines for current well-known metadata keys
This came up in https://github.com/projectatomic/rpm-ostree/issues/142 Let's add `#define`s for our metadata keys, with documentation so that, well, they're documented. Closes: #1024 Approved by: peterbaouoft
This commit is contained in:
1 parent
cf6c15a6c5
commit
6430207e47
4 files changed
+26
-4
No files matched your search
@@ -195,6 +195,28 @@ typedef enum {
|
||||
OSTREE_REPO_MODE_BARE_USER_ONLY,
|
||||
} OstreeRepoMode;
|
||||
|
||||
/**
|
||||
* OSTREE_COMMIT_META_KEY_VERSION:
|
||||
*
|
||||
* GVariant type `s`. This metadata key is used for version numbers. A freeform
|
||||
* string; the intention is that systems using ostree do not interpret this
|
||||
* semantically as traditional package managers do.
|
||||
*
|
||||
* This is the only ostree-defined metadata key that does not start with `ostree.`.
|
||||
* Since: 2014.9
|
||||
*/
|
||||
#define OSTREE_COMMIT_META_KEY_VERSION "version"
|
||||
/**
|
||||
* OSTREE_COMMIT_META_KEY_ENDOFLIFE_REBASE:
|
||||
*
|
||||
* GVariant type `s`. Should contain a refspec defining a new target branch;
|
||||
* `ostree admin upgrade` and `OstreeSysrootUpgrader` will automatically initiate
|
||||
* a rebase upon encountering this metadata key.
|
||||
*
|
||||
* Since: 2017.7
|
||||
*/
|
||||
#define OSTREE_COMMIT_META_KEY_ENDOFLIFE_REBASE "ostree.endoflife-rebase"
|
||||
|
||||
_OSTREE_PUBLIC
|
||||
const GVariantType *ostree_metadata_variant_type (OstreeObjectType objtype);
|
||||
|
||||
|
||||
Reference in new issue
Block a user