[vala] xcb: Add binding for xcb_connection_has_error
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] xcb: Add binding for xcb_connection_has_error
- Date: Wed, 14 May 2014 04:03:14 +0000 (UTC)
commit 9bd520ede27e47225d562bc377b6eefd39b6df7c
Author: Robert Ancell <robert ancell canonical com>
Date: Wed May 14 09:39:34 2014 +1200
xcb: Add binding for xcb_connection_has_error
https://bugzilla.gnome.org/show_bug.cgi?id=730088
vapi/xcb.vapi | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/vapi/xcb.vapi b/vapi/xcb.vapi
index 294991e..d15e11b 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)]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]