mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-23 21:35:26 +03:00
8057254b0b
We were considering using this for Docker integration, but we may end up going a different architectural path. Anyways, it doesn't hurt to have the bindings in here - they can do a few things. I decided to fork some of the core code from https://github.com/dradtke/gotk3 because...well, what we really need a GIR-based core generator but I didn't want to start on the fully correct thing until we knew we wanted it, and this was a quick hack. Also, let's make a `contrib/` directory for things like this.
22 lines
519 B
C
22 lines
519 B
C
#include <ostree.h>
|
|
#include <string.h>
|
|
|
|
static void
|
|
_ostree_repo_checkout_options_init_docker_union (OstreeRepoCheckoutOptions *opts)
|
|
{
|
|
memset (opts, 0, sizeof (*opts));
|
|
opts->mode = OSTREE_REPO_CHECKOUT_MODE_USER;
|
|
opts->overwrite_mode = OSTREE_REPO_CHECKOUT_OVERWRITE_UNION_FILES;
|
|
opts->disable_fsync = 1;
|
|
opts->process_whiteouts = 1;
|
|
}
|
|
|
|
static const char *
|
|
_g_variant_lookup_string (GVariant *v, const char *key)
|
|
{
|
|
const char *r;
|
|
if (g_variant_lookup (v, key, "&s", &r))
|
|
return r;
|
|
return NULL;
|
|
}
|