libostree: new function ostree_repo_checkout_at
Provide a gobject introspection safe version for `ostree_repo_checkout_tree_at'. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com> Closes: #417 Approved by: cgwalters
This commit is contained in:
1 parent
6d310db1e7
commit
30963766c7
4 files changed
+102
-20
No files matched your search
@@ -624,13 +624,14 @@ typedef struct {
|
||||
} OstreeRepoImportArchiveOptions;
|
||||
|
||||
_OSTREE_PUBLIC
|
||||
gboolean ostree_repo_import_archive_to_mtree (OstreeRepo *self,
|
||||
gboolean ostree_repo_import_archive_to_mtree (OstreeRepo *self,
|
||||
OstreeRepoImportArchiveOptions *opts,
|
||||
void *archive, /* Really struct archive * */
|
||||
OstreeMutableTree *mtree,
|
||||
OstreeRepoCommitModifier *modifier,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void *archive, /* Really struct archive * */
|
||||
OstreeMutableTree *mtree,
|
||||
OstreeRepoCommitModifier *modifier,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
/**
|
||||
* OstreeRepoExportArchiveOptions:
|
||||
*
|
||||
@@ -735,7 +736,7 @@ ostree_repo_checkout_tree (OstreeRepo *self,
|
||||
GError **error);
|
||||
|
||||
/**
|
||||
* OstreeRepoCheckoutOptions:
|
||||
* OstreeRepoCheckoutOptions: (skip)
|
||||
*
|
||||
* An extensible options structure controlling checkout. Ensure that
|
||||
* you have entirely zeroed the structure, then set just the desired
|
||||
@@ -761,6 +762,32 @@ typedef struct {
|
||||
gpointer unused_ptrs[7];
|
||||
} OstreeRepoCheckoutOptions;
|
||||
|
||||
/**
|
||||
* OstreeRepoCheckoutAtOptions:
|
||||
*
|
||||
* An extensible options structure controlling checkout. Ensure that
|
||||
* you have entirely zeroed the structure, then set just the desired
|
||||
* options. This is used by ostree_repo_checkout_at() which
|
||||
* supercedes previous separate enumeration usage in
|
||||
* ostree_repo_checkout_tree() and ostree_repo_checkout_tree_at().
|
||||
*/
|
||||
typedef struct {
|
||||
OstreeRepoCheckoutMode mode;
|
||||
OstreeRepoCheckoutOverwriteMode overwrite_mode;
|
||||
|
||||
gboolean enable_uncompressed_cache;
|
||||
gboolean disable_fsync;
|
||||
gboolean process_whiteouts;
|
||||
gboolean no_copy_fallback;
|
||||
|
||||
const char *subpath;
|
||||
|
||||
OstreeRepoDevInoCache *devino_to_csum_cache;
|
||||
|
||||
int unused_ints[6];
|
||||
gpointer unused_ptrs[7];
|
||||
} OstreeRepoCheckoutAtOptions;
|
||||
|
||||
_OSTREE_PUBLIC
|
||||
GType ostree_repo_devino_cache_get_type (void);
|
||||
_OSTREE_PUBLIC
|
||||
@@ -779,6 +806,15 @@ gboolean ostree_repo_checkout_tree_at (OstreeRepo *self,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
_OSTREE_PUBLIC
|
||||
gboolean ostree_repo_checkout_at (OstreeRepo *self,
|
||||
OstreeRepoCheckoutAtOptions *options,
|
||||
int destination_dfd,
|
||||
const char *destination_path,
|
||||
const char *commit,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
_OSTREE_PUBLIC
|
||||
gboolean ostree_repo_checkout_gc (OstreeRepo *self,
|
||||
GCancellable *cancellable,
|
||||
|
||||
Reference in new issue
Block a user