summary refs log tree commit diff
path: root/src/x11.zig
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-06-19 15:23:47 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-06-19 15:40:32 +0700
commit7451d8fce4c50729ab3192c93422fa79c9e4fe85 (patch)
tree5a3e89989103b43aac1e3c934f4897b11f91ae2e /src/x11.zig
parenta9faca40b3929f22ad1e21c071c853af47b0b7bc (diff)
downloadclipbuzz-7451d8fce4c50729ab3192c93422fa79c9e4fe85.tar.gz
Translate from C to Zig 2.0.0
Diffstat (limited to 'src/x11.zig')
-rw-r--r--src/x11.zig14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/x11.zig b/src/x11.zig
new file mode 100644
index 0000000..faea858
--- /dev/null
+++ b/src/x11.zig
@@ -0,0 +1,14 @@
+const xlib = @cImport({ @cInclude("X11/Xlib.h"); });
+pub const Atom = xlib.Atom;
+pub const Display = xlib.Display;
+pub const Event = xlib.XEvent;
+pub const False = xlib.False;
+pub const Window = xlib.Window;
+pub const closeDisplay = xlib.XCloseDisplay;
+pub const getAtom = xlib.XInternAtom;
+pub const getDefaultRootWindow = xlib.XDefaultRootWindow;
+pub const nextEvent = xlib.XNextEvent;
+pub const openDisplay = xlib.XOpenDisplay;
+
+const xfixes = @import("xfixes.zig");
+pub const getSelection = xfixes.getSelection;