File: gvariant.go.h

package info (click to toggle)
golang-github-gotk3-gotk3 0.6.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,392 kB
  • sloc: ansic: 914; makefile: 4
file content (26 lines) | stat: -rw-r--r-- 648 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
24
25
26
// Same copyright and license as the rest of the files in this project

// GVariant : GVariant — strongly typed value datatype
// https://developer.gnome.org/glib/2.26/glib-GVariant.html

#ifndef __GVARIANT_GO_H__
#define __GVARIANT_GO_H__

#include <glib.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>

// Type Casting

static GVariant *toGVariant(void *p) { return (GVariant *)p; }

static GVariantBuilder *toGVariantBuilder(void *p) {
  return (GVariantBuilder *)p;
}

static GVariantDict *toGVariantDict(void *p) { return (GVariantDict *)p; }

static GVariantIter *toGVariantIter(void *p) { return (GVariantIter *)p; }

#endif