mirror of
https://github.com/containers/skopeo.git
synced 2025-10-21 10:53:32 +00:00
it is used by containers/image for pulling images to the OSTree storage. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
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;
|
|
}
|