summaryrefslogtreecommitdiff
path: root/vapi/xcb.vapi
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2014-05-14 09:39:34 +1200
committerRobert Ancell <robert.ancell@canonical.com>2014-05-14 16:01:38 +1200
commit9bd520ede27e47225d562bc377b6eefd39b6df7c (patch)
treee162841af8dfc0651421352d05fa739924a57ae8 /vapi/xcb.vapi
parent5e0c6d094a3cc4aca1d9d90971c61faf75f93d49 (diff)
downloadvala-9bd520ede27e47225d562bc377b6eefd39b6df7c.tar.gz
xcb: Add binding for xcb_connection_has_error
https://bugzilla.gnome.org/show_bug.cgi?id=730088
Diffstat (limited to 'vapi/xcb.vapi')
-rw-r--r--vapi/xcb.vapi16
1 files changed, 15 insertions, 1 deletions
diff --git a/vapi/xcb.vapi b/vapi/xcb.vapi
index 294991e4d..d15e11b2a 100644
--- a/vapi/xcb.vapi
+++ b/vapi/xcb.vapi
@@ -29,6 +29,8 @@ namespace Xcb {
public class Connection {
[CCode (cname = "xcb_connect")]
public Connection (string? display = null, out int screen = null);
+ [CCode (cname = "xcb_connection_has_error")]
+ public int has_error ();
public void flush ();
public uint32 generate_id ();
@@ -116,7 +118,19 @@ namespace Xcb {
public GetGeometryCookie get_geometry_unchecked(Drawable drawable);
public GetGeometryReply ? get_geometry_reply(GetGeometryCookie cookie, out GenericError ? e);
}
-
+
+ [CCode (cprefix = "XCB_CONN_", cname = "int", has_type_id = false)]
+ public enum ConnectionError
+ {
+ ERROR,
+ CLOSED_EXT_NOTSUPPORTED,
+ CLOSED_MEM_INSUFFICIENT,
+ CLOSED_REQ_LEN_EXCEED,
+ CLOSED_PARSE_ERR,
+ CLOSED_INVALID_SCREEN,
+ CLOSED_FDPASSING_FAILED,
+ }
+
[SimpleType]
[IntegerType (rank = 9)]
[CCode (cname = "xcb_get_geometry_cookie_t", has_type_id = false)]