File: glibobject.go.h

package info (click to toggle)
golang-github-sjoerdsimons-ostree-go 0.0~git20201014.8fae757-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 300 kB
  • sloc: ansic: 184; makefile: 4
file content (23 lines) | stat: -rw-r--r-- 362 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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;
}

static GObject *
toGObject(void *p)
{
  return (G_OBJECT(p));
}