summaryrefslogtreecommitdiff
path: root/initx.c
diff options
context:
space:
mode:
Diffstat (limited to 'initx.c')
-rw-r--r--initx.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/initx.c b/initx.c
new file mode 100644
index 0000000..35b619d
--- /dev/null
+++ b/initx.c
@@ -0,0 +1,14 @@
+# include <luma/main.h>
+# include <stdint.h>
+# include <stdio.h>
+# include <xcb/xcb.h>
+void luma__crtxconn(uint32_t * retval) {
+ if(luma__dat.xcbconn) {
+ luma__dat.xcbconn = xcb_connect(NULL,NULL);
+ }
+ else {
+ printf("luma__crtxconn called with a valid X connection!\n");
+ *retval = 0x1;
+ return;
+ }
+}