[vala-extra-vapis] Add xcb-xtest
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala-extra-vapis] Add xcb-xtest
- Date: Thu, 12 Jun 2014 23:11:58 +0000 (UTC)
commit 6400475f36a18863874796228de2f55a11bce6fd
Author: Robert Ancell <robert ancell canonical com>
Date: Fri Jun 13 11:08:07 2014 +1200
Add xcb-xtest
xcb-xtest.deps | 1 +
xcb-xtest.vapi | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 71 insertions(+), 0 deletions(-)
---
diff --git a/xcb-xtest.deps b/xcb-xtest.deps
new file mode 100644
index 0000000..db9438d
--- /dev/null
+++ b/xcb-xtest.deps
@@ -0,0 +1 @@
+xcb-xtest
diff --git a/xcb-xtest.vapi b/xcb-xtest.vapi
new file mode 100644
index 0000000..6e01cff
--- /dev/null
+++ b/xcb-xtest.vapi
@@ -0,0 +1,70 @@
+/*
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+using Xcb;
+
+namespace Xcb {
+
+ [CCode (cprefix = "xcb_test_", cheader_filename = "xcb/xtest.h")]
+ namespace XTest {
+ public static Connection get_connection (Xcb.Connection c) {
+ return (Connection) c;
+ }
+
+ [Compact]
+ [CCode (cname = "xcb_connection_t", cprefix = "xcb_test_", unref_function = "")]
+ public class Connection : Xcb.Connection {
+ public GetVersionCookie get_version (uint8 major_version, uint16 minor_version);
+ public GetVersionCookie get_version_unchecked (uint8 major_version, uint16
minor_version);
+ public GetVersionReply get_version_reply (GetVersionCookie cookie, out
Xcb.GenericError? e = null);
+
+ public CompareCursorCookie compare_cursor (Xcb.Window window, Xcb.Cursor cursor);
+ public CompareCursorCookie compare_cursor_unchecked (Xcb.Window window, Xcb.Cursor
cursor);
+ public CompareCursorReply compare_cursor_reply (CompareCursorCookie cookie, out
Xcb.GenericError? e = null);
+
+ public VoidCookie fake_input_checked (uint8 type, uint8 detail, uint32 time,
Xcb.Window root, int16 rootX, int16 rootY, uint8 device_id);
+ public VoidCookie fake_input (uint8 type, uint8 detail, uint32 time, Xcb.Window root,
int16 rootX, int16 rootY, uint8 device_id);
+
+ public VoidCookie grab_control_checked (bool impervious);
+ public VoidCookie grab_control (bool impervious);
+ }
+
+ [SimpleType]
+ [IntegerType (rank = 9)]
+ [CCode (cname = "xcb_test_get_version_cookie_t", has_type_id = false)]
+ public struct GetVersionCookie {
+ }
+
+ [Compact]
+ [CCode (cname = "xcb_test_get_version_reply_t", ref_function = "", unref_function = "free")]
+ public class GetVersionReply : Xcb.GenericReply {
+ public uint8 major_version;
+ public uint16 minor_version;
+ }
+
+ [SimpleType]
+ [IntegerType (rank = 9)]
+ [CCode (cname = "xcb_test_compare_cursor_cookie_t", has_type_id = false)]
+ public struct CompareCursorCookie {
+ }
+
+ [Compact]
+ [CCode (cname = "xcb_test_compare_cursor_reply_t", ref_function = "", unref_function =
"free")]
+ public class CompareCursorReply : Xcb.GenericReply {
+ public bool same;
+ }
+ }
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]