]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
xcb: merge Xcb.GetPropertyReply and Xcb.GetPropertyReply
authorFlorian Brosch <flo.brosch@gmail.com>
Fri, 29 Aug 2014 02:50:01 +0000 (04:50 +0200)
committerEvan Nemerson <evan@nemerson.com>
Fri, 29 Aug 2014 04:23:59 +0000 (21:23 -0700)
vapi/xcb.vapi

index 6575492d8b1a09be25ae362b92e03d124b731401..bde992856201bb1bcdd3e21116a15c2a087bcfe2 100644 (file)
@@ -621,17 +621,6 @@ namespace Xcb {
        public struct GetPropertyCookie {
        }
 
-       [Compact]
-       [CCode (cname = "xcb_get_property_reply_t", ref_function = "", unref_function = "free")]
-       public class GetPropertyReply {
-               public uint8 format;
-               public AtomT type;
-               [CCode (cname = "xcb_get_property_value_length")]
-               public int32 value_length ();
-               [CCode (cname = "xcb_get_property_value")]
-               public unowned void *value ();
-       }
-
        [SimpleType]
        [IntegerType (rank = 9)]
        [CCode (cname = "xcb_intern_atom_cookie_t", has_type_id = false)]
@@ -1252,14 +1241,16 @@ namespace Xcb {
                }
        }
 
+       [Compact]
        [CCode (cname = "xcb_get_property_reply_t", ref_function = "", unref_function = "free")]
        public class GetPropertyReply {
-               public uint8 format;
-               public Atom type;
+               public AtomT type;
                public uint32 bytes_after;
                private uint32 value_len;
                [CCode (cname = "xcb_get_property_value")]
                public unowned void *value ();
+               [CCode (cname = "xcb_get_property_value_length")]
+               public int32 value_length ();
                public string value_as_string () {
                        GLib.assert (format == 8);
                        return "%.*s".printf (value_len, value ());