diff src/video/Xext/extensions/extutil.h @ 1662:782fd950bd46 SDL-1.3

Revamp of the video system in progress - adding support for multiple displays, multiple windows, and a full video mode selection API. WARNING: None of the video drivers have been updated for the new API yet! The API is still under design and very fluid. The code is now run through a consistent indent format: indent -i4 -nut -nsc -br -ce The headers are being converted to automatically generate doxygen documentation.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 28 May 2006 13:04:16 +0000
parents ecba4bbaf9c2
children 4da1ee79c9af
line wrap: on
line diff
--- a/src/video/Xext/extensions/extutil.h	Sun May 21 17:27:13 2006 +0000
+++ b/src/video/Xext/extensions/extutil.h	Sun May 28 13:04:16 2006 +0000
@@ -36,7 +36,7 @@
 #ifndef _EXTUTIL_H_
 #define _EXTUTIL_H_
 
-#include "SDL_stdinc.h"		/* For portable string functions */
+#include "SDL_stdinc.h"         /* For portable string functions */
 
 #include "./Xext.h"
 
@@ -45,133 +45,136 @@
  * public.  We also have to per-display info in a separate block since it isn't
  * stored directly in the Display structure.
  */
-typedef struct _XExtDisplayInfo {
-    struct _XExtDisplayInfo *next;	/* keep a linked list */
-    Display *display;			/* which display this is */
-    XExtCodes *codes;			/* the extension protocol codes */
-    XPointer data;			/* extra data for extension to use */
+typedef struct _XExtDisplayInfo
+{
+    struct _XExtDisplayInfo *next;      /* keep a linked list */
+    Display *display;           /* which display this is */
+    XExtCodes *codes;           /* the extension protocol codes */
+    XPointer data;              /* extra data for extension to use */
 } XExtDisplayInfo;
 
-typedef struct _XExtensionInfo {
-    XExtDisplayInfo *head;		/* start of list */
-    XExtDisplayInfo *cur;		/* most recently used */
-    int ndisplays;			/* number of displays */
+typedef struct _XExtensionInfo
+{
+    XExtDisplayInfo *head;      /* start of list */
+    XExtDisplayInfo *cur;       /* most recently used */
+    int ndisplays;              /* number of displays */
 } XExtensionInfo;
 
-typedef struct _XExtensionHooks {
-    int (*create_gc)(
+typedef struct _XExtensionHooks
+{
+    int (*create_gc) (
 #if NeedNestedPrototypes
-	      Display*			/* display */,
-	      GC			/* gc */,
-	      XExtCodes*		/* codes */
+                         Display * /* display */ ,
+                         GC /* gc */ ,
+                         XExtCodes *    /* codes */
 #endif
-);
-    int (*copy_gc)(
+        );
+    int (*copy_gc) (
 #if NeedNestedPrototypes
-	      Display*			/* display */,
-              GC			/* gc */,
-              XExtCodes*		/* codes */
+                       Display * /* display */ ,
+                       GC /* gc */ ,
+                       XExtCodes *      /* codes */
 #endif
-);
-    int (*flush_gc)(
+        );
+    int (*flush_gc) (
 #if NeedNestedPrototypes
-	      Display*			/* display */,
-              GC			/* gc */,
-              XExtCodes*		/* codes */
+                        Display * /* display */ ,
+                        GC /* gc */ ,
+                        XExtCodes *     /* codes */
 #endif
-);
-    int (*free_gc)(
+        );
+    int (*free_gc) (
 #if NeedNestedPrototypes
-	      Display*			/* display */,
-              GC			/* gc */,
-              XExtCodes*		/* codes */
+                       Display * /* display */ ,
+                       GC /* gc */ ,
+                       XExtCodes *      /* codes */
 #endif
-);
-    int (*create_font)(
+        );
+    int (*create_font) (
 #if NeedNestedPrototypes
-	      Display*			/* display */,
-              XFontStruct*		/* fs */,
-              XExtCodes*		/* codes */
+                           Display * /* display */ ,
+                           XFontStruct * /* fs */ ,
+                           XExtCodes *  /* codes */
 #endif
-);
-    int (*free_font)(
+        );
+    int (*free_font) (
 #if NeedNestedPrototypes
-	      Display*			/* display */,
-              XFontStruct*		/* fs */,
-              XExtCodes*		/* codes */
+                         Display * /* display */ ,
+                         XFontStruct * /* fs */ ,
+                         XExtCodes *    /* codes */
 #endif
-);
-    int (*close_display)(
+        );
+    int (*close_display) (
 #if NeedNestedPrototypes
-	      Display*			/* display */,
-              XExtCodes*		/* codes */
+                             Display * /* display */ ,
+                             XExtCodes *        /* codes */
 #endif
-);
-    Bool (*wire_to_event)(
+        );
+      Bool (*wire_to_event) (
 #if NeedNestedPrototypes
-	       Display*			/* display */,
-               XEvent*			/* re */,
-               xEvent*			/* event */
+                                Display * /* display */ ,
+                                XEvent * /* re */ ,
+                                xEvent *        /* event */
 #endif
-);
-    Status (*event_to_wire)(
+        );
+      Status (*event_to_wire) (
 #if NeedNestedPrototypes
-	      Display*			/* display */,
-              XEvent*			/* re */,
-              xEvent*			/* event */
+                                  Display * /* display */ ,
+                                  XEvent * /* re */ ,
+                                  xEvent *      /* event */
 #endif
-);
-    int (*error)(
+        );
+    int (*error) (
 #if NeedNestedPrototypes
-	      Display*			/* display */,
-              xError*			/* err */,
-              XExtCodes*		/* codes */,
-              int*			/* ret_code */
+                     Display * /* display */ ,
+                     xError * /* err */ ,
+                     XExtCodes * /* codes */ ,
+                     int *      /* ret_code */
 #endif
-);
-    char *(*error_string)(
+        );
+    char *(*error_string) (
 #if NeedNestedPrototypes
-	        Display*		/* display */,
-                int			/* code */,
-                XExtCodes*		/* codes */,
-                char*			/* buffer */,
-                int			/* nbytes */
+                              Display * /* display */ ,
+                              int /* code */ ,
+                              XExtCodes * /* codes */ ,
+                              char * /* buffer */ ,
+                              int       /* nbytes */
 #endif
-);
+        );
 } XExtensionHooks;
 
-extern XExtensionInfo *XextCreateExtension(
+extern XExtensionInfo *XextCreateExtension (
 #if NeedFunctionPrototypes
-    void
+                                               void
 #endif
-);
-extern void XextDestroyExtension(
+    );
+extern void XextDestroyExtension (
 #if NeedFunctionPrototypes
-    XExtensionInfo*	/* info */
+                                     XExtensionInfo *   /* info */
 #endif
-);
-extern XExtDisplayInfo *XextAddDisplay(
+    );
+extern XExtDisplayInfo *XextAddDisplay (
 #if NeedFunctionPrototypes
-    XExtensionInfo*	/* extinfo */,
-    Display*		/* dpy */,
-    char*		/* ext_name */,
-    XExtensionHooks*	/* hooks */,
-    int			/* nevents */,
-    XPointer		/* data */
+                                           XExtensionInfo * /* extinfo */ ,
+                                           Display * /* dpy */ ,
+                                           char * /* ext_name */ ,
+                                           XExtensionHooks * /* hooks */ ,
+                                           int /* nevents */ ,
+                                           XPointer     /* data */
 #endif
-);
-extern int XextRemoveDisplay(
+    );
+extern int XextRemoveDisplay (
 #if NeedFunctionPrototypes
-    XExtensionInfo*	/* extinfo */,
-    Display*		/* dpy */
+                                 XExtensionInfo * /* extinfo */ ,
+                                 Display *      /* dpy */
 #endif
-);
-extern XExtDisplayInfo *XextFindDisplay(
+    );
+extern XExtDisplayInfo *XextFindDisplay (
 #if NeedFunctionPrototypes
-    XExtensionInfo*	/* extinfo */,
-    Display*		/* dpy */
+                                            XExtensionInfo * /* extinfo */ ,
+                                            Display *   /* dpy */
 #endif
-);
+    );
 
 #define XextHasExtension(i) ((i) && ((i)->codes))
 #define XextCheckExtension(dpy,i,name,val) \
@@ -224,3 +227,4 @@
 #define XEXT_ERROR_STRING_PROTO(proc) \
 	char *proc(Display *dpy, int code, XExtCodes *codes, char *buf, int n)
 #endif
+/* vi: set ts=4 sw=4 expandtab: */