aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/ostreedev/ostree-go/pkg/glibobject/glibobject.go.h
blob: a55bd242f9eef258631d12ee48a59a4f59b25006 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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;
}