Hi,

I'm currently working on writing Vala bindings for the XTest extension.
For that to work I need several simple type definitions
from /usr/include/X11/X.h which aren't yet defined in x11.vapi.

The attached patch adds these type definitions. Please include it in
master if there are no objections.

Best regards

Alexander Kurtz
diff -Naur a/x11.vapi b/x11.vapi
--- a/x11.vapi	2011-04-06 09:02:54.000000000 +0200
+++ b/x11.vapi	2011-04-07 12:36:42.403108945 +0200
@@ -1,6 +1,7 @@
 /* x11.vapi
  *
  * Copyright (C) 2009  Jürg Billeter
+ * Copyright (C) 2011  Alexander Kurtz
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -16,8 +17,9 @@
  * License along with this library; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
  *
- * Author:
+ * Authors:
  * 	Jürg Billeter <[email protected]>
+ * 	Alexander Kurtz <[email protected]>
  */
 
 [CCode (cprefix = "", lower_case_cprefix = "", cheader_filename = "X11/Xlib.h,X11/Xatom.h,X11/Xutil.h,X11/Xregion.h")]
@@ -327,6 +329,48 @@
 	public struct Pixmap : Drawable	{
 	}
 
+	[SimpleType]
+	[IntegerType (rank = 9)]
+	[CCode (cname = "Mask")]
+	public struct Mask {
+	}
+
+	[SimpleType]
+	[IntegerType (rank = 9)]
+	[CCode (cname = "VisualID")]
+	public struct VisualID {
+	}
+
+	[SimpleType]
+	[IntegerType (rank = 9)]
+	[CCode (cname = "Time")]
+	public struct Time {
+	}
+
+	[SimpleType]
+	[IntegerType (rank = 9)]
+	[CCode (cname = "Cursor")]
+	public struct Cursor {
+	}
+
+	[SimpleType]
+	[IntegerType (rank = 9)]
+	[CCode (cname = "GContext")]
+	public struct GContext {
+	}
+
+	[SimpleType]
+	[IntegerType (rank = 9)]
+	[CCode (cname = "KeySym")]
+	public struct KeySym {
+	}
+
+	[SimpleType]
+	[IntegerType (rank = 9)]
+	[CCode (cname = "KeyCode")]	
+	public struct KeyCode {
+	}
+
 	public struct Visual {
 	}
 

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to