Commit af154d0f authored by Robert Ancell's avatar Robert Ancell

xcb: Add Xcb.Connection.get_atom_name

https://bugzilla.gnome.org/show_bug.cgi?id=730099
parent fc626692
......@@ -66,6 +66,10 @@ namespace Xcb {
return this.vala_intern_atom(only_if_exists,(uint16)name.length,name);
}
public InternAtomReply intern_atom_reply(InternAtomCookie cookie, out GenericError? e);
public GetAtomNameCookie get_atom_name(Atom atom);
public GetAtomNameCookie get_atom_name_unchecked(Atom atom);
public GetAtomNameReply get_atom_name_reply(GetAtomNameCookie cookie, out GenericError? e);
[CCode (cname = "xcb_change_property")]
private VoidCookie vala_change_property(PropMode mode, Window window, AtomT property, AtomT type, uint8 format, uint32 len, void *data);
......@@ -151,12 +155,6 @@ namespace Xcb {
public uint16 border_width;
}
[SimpleType]
[IntegerType (rank = 9)]
[CCode (cname = "xcb_intern_atom_cookie_t", has_type_id = false)]
public struct InternAtomCookie {
}
[SimpleType]
[IntegerType (rank = 9)]
[CCode (cname = "xcb_get_window_attributes_cookie_t", has_type_id = false)]
......@@ -203,6 +201,12 @@ namespace Xcb {
public unowned void *value();
}
[SimpleType]
[IntegerType (rank = 9)]
[CCode (cname = "xcb_intern_atom_cookie_t", has_type_id = false)]
public struct InternAtomCookie {
}
[Compact]
[CCode (cname = "xcb_intern_atom_reply_t", ref_function = "", unref_function = "free")]
public class InternAtomReply {
......@@ -211,6 +215,23 @@ namespace Xcb {
public uint32 length;
public AtomT atom;
}
[SimpleType]
[IntegerType (rank = 9)]
[CCode (cname = "xcb_get_atom_name_cookie_t", has_type_id = false)]
public struct GetAtomNameCookie {
}
[Compact]
[CCode (cname = "xcb_get_atom_name_reply_t", ref_function = "", unref_function = "free")]
public class GetAtomNameReply {
private uint8 response_type;
private uint16 sequence;
public uint32 length;
public uint16 name_len;
[CCode (cname = "xcb_get_atom_name_name")]
public unowned string name ();
}
[SimpleType]
[IntegerType (rank = 9)]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment