[vala/db8c411392f89cf8fc0268d4819f15755d0c4137: 1/9] glib-2.0: Use type-id/marshaller-type for (u)int16/(u)short from (u)int32
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/db8c411392f89cf8fc0268d4819f15755d0c4137: 1/9] glib-2.0: Use type-id/marshaller-type for (u)int16/(u)short from (u)int32
- Date: Thu, 21 Sep 2017 10:59:28 +0000 (UTC)
commit a8091c2d2dcb63f859b289c0a5951e787b85e82e
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Sep 12 12:28:59 2017 +0200
glib-2.0: Use type-id/marshaller-type for (u)int16/(u)short from (u)int32
https://bugzilla.gnome.org/show_bug.cgi?id=693932
vapi/glib-2.0.vapi | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 4ad3f01..04b39f7 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -189,7 +189,7 @@ public struct uint {
[SimpleType]
[GIR (name = "gshort")]
-[CCode (cname = "gshort", cheader_filename = "glib.h", has_type_id = false, default_value = "0",
type_signature = "n")]
+[CCode (cname = "gshort", cheader_filename = "glib.h", type_id = "G_TYPE_INT", marshaller_type_name = "INT",
get_value_function = "g_value_get_int", set_value_function = "g_value_set_int", default_value = "0",
type_signature = "n")]
[IntegerType (rank = 4, min = -32768, max = 32767)]
public struct short {
[CCode (cname = "G_MINSHORT")]
@@ -212,7 +212,7 @@ public struct short {
[SimpleType]
[GIR (name = "gushort")]
-[CCode (cname = "gushort", cheader_filename = "glib.h", has_type_id = false, default_value = "0U",
type_signature = "q")]
+[CCode (cname = "gushort", cheader_filename = "glib.h", type_id = "G_TYPE_UINT", marshaller_type_name =
"UINT", get_value_function = "g_value_get_uint", set_value_function = "g_value_set_uint", default_value =
"0U", type_signature = "q")]
[IntegerType (rank = 5, min = 0, max = 65535)]
public struct ushort {
[CCode (cname = "0U")]
@@ -465,7 +465,7 @@ public struct uint8 {
[SimpleType]
[GIR (name = "gint16")]
-[CCode (cname = "gint16", cheader_filename = "glib.h", default_value = "0", type_signature = "n",
has_type_id = false)]
+[CCode (cname = "gint16", cheader_filename = "glib.h", type_id = "G_TYPE_INT", marshaller_type_name = "INT",
get_value_function = "g_value_get_int", set_value_function = "g_value_set_int", default_value = "0",
type_signature = "n")]
[IntegerType (rank = 4, min = -32768, max = 32767)]
public struct int16 {
[Version (since = "2.4")]
@@ -504,7 +504,7 @@ public struct int16 {
[SimpleType]
[GIR (name = "guint16")]
-[CCode (cname = "guint16", cheader_filename = "glib.h", default_value = "0U", type_signature = "q",
has_type_id = false)]
+[CCode (cname = "guint16", cheader_filename = "glib.h", type_id = "G_TYPE_UINT", marshaller_type_name =
"UINT", get_value_function = "g_value_get_uint", set_value_function = "g_value_set_uint", default_value =
"0U", type_signature = "q")]
[IntegerType (rank = 5, min = 0, max = 65535)]
public struct uint16 {
[CCode (cname = "0U")]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]