summaryrefslogtreecommitdiffstats
path: root/x11vnc/tkx11vnc.h
diff options
context:
space:
mode:
authorrunge <runge>2006-01-09 01:54:38 +0000
committerrunge <runge>2006-01-09 01:54:38 +0000
commit71f2ec79180185a6c3db0c87f9d53c491dc31e76 (patch)
tree67c341571cbeb1bd9a0744cc8eb03b30ef04f381 /x11vnc/tkx11vnc.h
parentdef301266373e462f4a5e90eab443087ccfc7ccc (diff)
downloadlibtdevnc-71f2ec79180185a6c3db0c87f9d53c491dc31e76.tar.gz
libtdevnc-71f2ec79180185a6c3db0c87f9d53c491dc31e76.zip
x11vnc: the big split.
Diffstat (limited to 'x11vnc/tkx11vnc.h')
-rw-r--r--x11vnc/tkx11vnc.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/x11vnc/tkx11vnc.h b/x11vnc/tkx11vnc.h
index ee6fe5d..58c02e6 100644
--- a/x11vnc/tkx11vnc.h
+++ b/x11vnc/tkx11vnc.h
@@ -1,3 +1,8 @@
+#ifndef _TKX11VNC_H
+#define _TKX11VNC_H
+#ifdef NOGUI
+char gui_code = "";
+#else
/*
* tkx11vnc.h: generated by 'tkx11vnc -spit'
* Abandon all hope, ye who enter here...
@@ -96,6 +101,7 @@
" =DRQA disconnect:\n"
" --\n"
" accept:\n"
+" afteraccept:\n"
" gone:\n"
" vncconnect\n"
" -- D\n"
@@ -5957,6 +5963,11 @@
"\n"
"if {\"$argv\" == \"-spit\"} {\n"
" set fh [open $argv0 r]\n"
+" puts \"#ifndef _TKX11VNC_H\"\n"
+" puts \"#define _TKX11VNC_H\"\n"
+" puts \"#ifdef NOGUI\"\n"
+" puts \"char gui_code[] = \\\"\\\";\"\n"
+" puts \"#else\"\n"
" puts \"/*\"\n"
" puts \" * tkx11vnc.h: generated by 'tkx11vnc -spit'\"\n"
" puts \" * Abandon all hope, ye who enter here...\"\n"
@@ -5968,6 +5979,10 @@
" regsub -all {\"} $line {\\\\\"} line\n"
" puts \"\\\"$line\\\\n\\\"\"\n"
" }\n"
+" puts \"#endif\"\n"
+" puts \"/* ifdef NOGUI */\"\n"
+" puts \"#endif\"\n"
+" puts \"/* ifndef _TKX11VNC_H */\"\n"
" close $fh\n"
" puts \";\"\n"
" exit 0\n"
@@ -6170,4 +6185,8 @@
"}\n"
"\n"
"# main loop.\n"
+#endif
+/* ifdef NOGUI */
+#endif
+/* ifndef _TKX11VNC_H */
;