summaryrefslogtreecommitdiffstats
path: root/doc/manual/example6/function.h
diff options
context:
space:
mode:
Diffstat (limited to 'doc/manual/example6/function.h')
-rw-r--r--doc/manual/example6/function.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/manual/example6/function.h b/doc/manual/example6/function.h
new file mode 100644
index 0000000..0517471
--- /dev/null
+++ b/doc/manual/example6/function.h
@@ -0,0 +1,23 @@
+typedef struct {} Display;
+typedef struct {} Visual;
+typedef unsigned long VisualID;
+
+typedef struct {
+ Visual *visual;
+ VisualID visualid;
+ int screen;
+ int depth;
+ int c_class; /* C++ */
+ unsigned long red_mask;
+ unsigned long green_mask;
+ unsigned long blue_mask;
+ int colormap_size;
+ int bits_per_rgb;
+} XVisualInfo;
+
+XVisualInfo *XGetVisualInfo(
+ Display* /* display */,
+ long /* vinfo_mask */,
+ XVisualInfo* /* vinfo_template */,
+ int* /* nitems_return */
+);