[vala] glib-2.0: Add bindings for GPOINTER_TO_* as from_pointer()
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] glib-2.0: Add bindings for GPOINTER_TO_* as from_pointer()
- Date: Sun, 5 Mar 2017 11:46:24 +0000 (UTC)
commit e40b5ffb2dc3d20ef0a7c64935595a1be1cdbf59
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sun Mar 5 12:44:38 2017 +0100
glib-2.0: Add bindings for GPOINTER_TO_* as from_pointer()
vapi/glib-2.0.vapi | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 428dd0b..9b57dea 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -131,6 +131,8 @@ public struct int {
[CCode (cname = "GINT_TO_POINTER")]
public void* to_pointer ();
+ [CCode (cname = "GPOINTER_TO_INT")]
+ public static int from_pointer (void* p);
[CCode (cname = "abs", cheader_filename = "stdlib.h")]
public int abs ();
@@ -171,6 +173,8 @@ public struct uint {
[CCode (cname = "GUINT_TO_POINTER")]
public void* to_pointer ();
+ [CCode (cname = "GPOINTER_TO_UINT")]
+ public static uint from_pointer (void* p);
[CCode (cname = "GUINT_TO_BE")]
public uint to_big_endian ();
@@ -317,6 +321,8 @@ public struct size_t {
[CCode (cname = "GSIZE_TO_POINTER")]
public void* to_pointer ();
+ [CCode (cname = "GPOINTER_TO_SIZE")]
+ public static size_t from_pointer (void* p);
[CCode (cname = "MIN")]
public static size_t min (size_t a, size_t b);
@@ -375,6 +381,8 @@ public struct uintptr {
[CCode (cname = "GSIZE_TO_POINTER")]
public void* to_pointer ();
+ [CCode (cname = "GPOINTER_TO_SIZE")]
+ public static uintptr from_pointer (void* p);
[CCode (cname = "MIN")]
public static uintptr min (uintptr a, uintptr b);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]