mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-27 18:04:17 +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.
18 lines
297 B
C
18 lines
297 B
C
#include <glib.h>
|
|
|
|
static char *
|
|
_g_error_get_message (GError *error)
|
|
{
|
|
g_assert (error != NULL);
|
|
return error->message;
|
|
}
|
|
|
|
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;
|
|
}
|