File: gvariant.go.h

package info (click to toggle)
golang-github-gotk3-gotk3 0.0~GOTK3~0~2~0%2Bgit20170418.0.96d4110-3.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,368 kB
  • sloc: ansic: 1,056; makefile: 4
file content (40 lines) | stat: -rw-r--r-- 649 bytes parent folder | download | duplicates (3)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// 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 <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <glib.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