[vala] Dehackify GVariantBuilder bindings
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Dehackify GVariantBuilder bindings
- Date: Wed, 3 Mar 2010 16:10:39 +0000 (UTC)
commit b68e3a58708eb4d59139f5b788a31081804bb728
Author: Ryan Lortie <desrt desrt ca>
Date: Wed Mar 3 11:10:23 2010 -0500
Dehackify GVariantBuilder bindings
vapi/glib-2.0.vapi | 28 +++++-----------------------
1 files changed, 5 insertions(+), 23 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 2a2ed0f..3643948 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -3791,7 +3791,7 @@ namespace GLib {
public VariantIter iterator ();
}
- [Compact]
+ [Compact]
[CCode (copy_func = "g_variant_iter_copy", free_func = "g_variant_iter_free")]
public class VariantIter {
public VariantIter (Variant value);
@@ -3804,30 +3804,12 @@ namespace GLib {
[CCode (ref_function = "g_variant_builder_ref", unref_function = "g_variant_builder_unref")]
public class VariantBuilder {
public VariantBuilder (VariantType type);
-
- [CCode (cname = "g_variant_builder_end")]
- private static Variant end_ (owned VariantBuilder self);
- [CCode (cname = "_vapi_g_variant_builder_end")]
- public Variant end () {
- return end_ (this);
- }
-
- [CCode (cname = "g_variant_builder_open")]
- private static VariantBuilder open_ (owned VariantBuilder self, VariantType type);
- [CCode (cname = "_vapi_g_variant_builder_open")]
- public VariantBuilder open (VariantType type) {
- return open_ (this, type);
- }
-
- [CCode (cname = "g_variant_builder_close")]
- private static VariantBuilder close_ (owned VariantBuilder self);
- [CCode (cname = "_vapi_g_variant_builder_close")]
- public VariantBuilder close () {
- return close_ (this);
- }
-
+ public void open (VariantType type);
+ public void close ();
public void add_value (Variant value);
public void add (string format_string, ...);
+ [CCode (returns_floating_reference = true)]
+ public Variant end ();
}
[CCode (cname = "G_LIKELY", cheader_filename = "glib.h")]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]