src/video/x11/SDL_x11sym.h
author Sam Lantinga <slouken@libsdl.org>
Wed, 26 Jul 2006 06:34:54 +0000
changeset 1950 a344e42bce3b
child 1952 420716272158
permissions -rw-r--r--
Started work on the new X11 driver.
slouken@1950
     1
/*
slouken@1950
     2
    SDL - Simple DirectMedia Layer
slouken@1950
     3
    Copyright (C) 1997-2004 Sam Lantinga
slouken@1950
     4
slouken@1950
     5
    This library is free software; you can redistribute it and/or
slouken@1950
     6
    modify it under the terms of the GNU Library General Public
slouken@1950
     7
    License as published by the Free Software Foundation; either
slouken@1950
     8
    version 2 of the License, or (at your option) any later version.
slouken@1950
     9
slouken@1950
    10
    This library is distributed in the hope that it will be useful,
slouken@1950
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@1950
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@1950
    13
    Library General Public License for more details.
slouken@1950
    14
slouken@1950
    15
    You should have received a copy of the GNU Library General Public
slouken@1950
    16
    License along with this library; if not, write to the Free
slouken@1950
    17
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
slouken@1950
    18
slouken@1950
    19
    Sam Lantinga
slouken@1950
    20
    slouken@libsdl.org
slouken@1950
    21
*/
slouken@1950
    22
slouken@1950
    23
SDL_X11_MODULE(BASEXLIB)
slouken@1950
    24
    SDL_X11_SYM(XClassHint *, XAllocClassHint, (void), (), return)
slouken@1950
    25
    SDL_X11_SYM(Status, XAllocColor, (Display * a, Colormap b, XColor * c),
slouken@1950
    26
            (a, b, c), return) SDL_X11_SYM(XSizeHints *, XAllocSizeHints,
slouken@1950
    27
                                           (void), (),
slouken@1950
    28
                                           return) SDL_X11_SYM(XWMHints *,
slouken@1950
    29
                                                               XAllocWMHints,
slouken@1950
    30
                                                               (void), (),
slouken@1950
    31
                                                               return)
slouken@1950
    32
    SDL_X11_SYM(int, XChangePointerControl,
slouken@1950
    33
            (Display * a, Bool b, Bool c, int d, int e, int f), (a, b, c, d,
slouken@1950
    34
                                                             e, f),
slouken@1950
    35
            return) SDL_X11_SYM(int, XChangeProperty, (Display * a,
slouken@1950
    36
                                                       Window b, Atom c,
slouken@1950
    37
                                                       Atom d, int e, int f,
slouken@1950
    38
                                                       _Xconst unsigned char
slouken@1950
    39
                                                       *g, int h), (a, b, c,
slouken@1950
    40
                                                                    d, e, f,
slouken@1950
    41
                                                                    g, h),
slouken@1950
    42
                                return) SDL_X11_SYM(int,
slouken@1950
    43
                                                    XChangeWindowAttributes,
slouken@1950
    44
                                                    (Display * a, Window b,
slouken@1950
    45
                                                     unsigned long c,
slouken@1950
    46
                                                     XSetWindowAttributes *
slouken@1950
    47
                                                     d), (a, b, c, d), return)
slouken@1950
    48
    SDL_X11_SYM(Bool, XCheckTypedEvent, (Display * a, int b, XEvent * c),
slouken@1950
    49
            (a, b, c), return) SDL_X11_SYM(int, XClearWindow, (Display * a,
slouken@1950
    50
                                                               Window b),
slouken@1950
    51
                                           (a, b), return) SDL_X11_SYM(int,
slouken@1950
    52
                                                                       XCloseDisplay,
slouken@1950
    53
                                                                       (Display
slouken@1950
    54
                                                                        *
slouken@1950
    55
                                                                        a),
slouken@1950
    56
                                                                       (a),
slouken@1950
    57
                                                                       return)
slouken@1950
    58
    SDL_X11_SYM(Colormap, XCreateColormap,
slouken@1950
    59
            (Display * a, Window b, Visual * c, int d), (a, b, c, d),
slouken@1950
    60
            return) SDL_X11_SYM(Cursor, XCreatePixmapCursor, (Display * a,
slouken@1950
    61
                                                              Pixmap b,
slouken@1950
    62
                                                              Pixmap c,
slouken@1950
    63
                                                              XColor * d,
slouken@1950
    64
                                                              XColor * e,
slouken@1950
    65
                                                              unsigned int
slouken@1950
    66
                                                              f,
slouken@1950
    67
                                                              unsigned int
slouken@1950
    68
                                                              g), (a, b, c,
slouken@1950
    69
                                                                   d, e, f,
slouken@1950
    70
                                                                   g),
slouken@1950
    71
                                return) SDL_X11_SYM(GC, XCreateGC,
slouken@1950
    72
                                                    (Display * a,
slouken@1950
    73
                                                     Drawable b,
slouken@1950
    74
                                                     unsigned long c,
slouken@1950
    75
                                                     XGCValues * d), (a, b,
slouken@1950
    76
                                                                      c,
slouken@1950
    77
                                                                      d),
slouken@1950
    78
                                                    return)
slouken@1950
    79
    SDL_X11_SYM(XImage *, XCreateImage,
slouken@1950
    80
            (Display * a, Visual * b, unsigned int c, int d, int e, char *f,
slouken@1950
    81
         unsigned int g, unsigned int h, int i, int j), (a, b, c, d, e,
slouken@1950
    82
                                                     f, g, h, i, j),
slouken@1950
    83
return) SDL_X11_SYM(Pixmap, XCreatePixmap, (Display * a,
slouken@1950
    84
Drawable b,
slouken@1950
    85
unsigned int c,
slouken@1950
    86
unsigned int d,
slouken@1950
    87
unsigned int e), (a,
slouken@1950
    88
      b,
slouken@1950
    89
      c,
slouken@1950
    90
      d,
slouken@1950
    91
      e),
slouken@1950
    92
return) SDL_X11_SYM(Pixmap,
slouken@1950
    93
XCreatePixmapFromBitmapData,
slouken@1950
    94
(Display * a,
slouken@1950
    95
Drawable b, char *c,
slouken@1950
    96
unsigned int d,
slouken@1950
    97
unsigned int e,
slouken@1950
    98
unsigned long f, unsigned long g, unsigned int h), (a, b, c, d, e, f, g, h), return)
slouken@1950
    99
    SDL_X11_SYM(Window, XCreateSimpleWindow,
slouken@1950
   100
            (Display * a, Window b, int c, int d, unsigned int e,
slouken@1950
   101
         unsigned int f, unsigned int g, unsigned long h,
slouken@1950
   102
         unsigned long i), (a, b, c, d, e, f, g, h, i),
slouken@1950
   103
return) SDL_X11_SYM(Window, XCreateWindow, (Display * a,
slouken@1950
   104
Window b, int c,
slouken@1950
   105
int d,
slouken@1950
   106
unsigned int e,
slouken@1950
   107
unsigned int f,
slouken@1950
   108
unsigned int g,
slouken@1950
   109
int h,
slouken@1950
   110
unsigned int i,
slouken@1950
   111
Visual * j,
slouken@1950
   112
unsigned long k,
slouken@1950
   113
XSetWindowAttributes
slouken@1950
   114
* l), (a, b, c, d,
slouken@1950
   115
      e, f, g, h,
slouken@1950
   116
      i, j, k, l),
slouken@1950
   117
return) SDL_X11_SYM(int, XDefineCursor, (Display * a, Window b, Cursor c), (a, b, c), return)
slouken@1950
   118
    SDL_X11_SYM(int, XDeleteProperty, (Display * a, Window b, Atom c), (a, b, c),
slouken@1950
   119
            return) SDL_X11_SYM(int, XDestroyWindow, (Display * a,
slouken@1950
   120
                                                      Window b), (a, b),
slouken@1950
   121
                                return) SDL_X11_SYM(char *, XDisplayName,
slouken@1950
   122
                                                    (_Xconst char *a), (a),
slouken@1950
   123
                                                    return)
slouken@1950
   124
    SDL_X11_SYM(int, XEventsQueued, (Display * a, int b), (a, b),
slouken@1950
   125
            return) SDL_X11_SYM(Bool, XFilterEvent, (XEvent * event,
slouken@1950
   126
                                                     Window w), (event, w),
slouken@1950
   127
                                return) SDL_X11_SYM(int, XFlush,
slouken@1950
   128
                                                    (Display * a), (a),
slouken@1950
   129
                                                    return)
slouken@1950
   130
    SDL_X11_SYM(int, XFree, (void *a), (a), return) SDL_X11_SYM(int,
slouken@1950
   131
                                                                XFreeColormap,
slouken@1950
   132
                                                                (Display *
slouken@1950
   133
                                                                 a,
slouken@1950
   134
                                                                 Colormap
slouken@1950
   135
                                                                 b), (a, b),
slouken@1950
   136
                                                                return)
slouken@1950
   137
    SDL_X11_SYM(int, XFreeColors,
slouken@1950
   138
            (Display * a, Colormap b, unsigned long *c, int d, unsigned long e),
slouken@1950
   139
            (a, b, c, d, e), return) SDL_X11_SYM(int, XFreeCursor,
slouken@1950
   140
                                                 (Display * a, Cursor b),
slouken@1950
   141
                                                 (a, b), return)
slouken@1950
   142
    SDL_X11_SYM(int, XFreeGC, (Display * a, GC b), (a, b),
slouken@1950
   143
            return) SDL_X11_SYM(int, XFreeModifiermap,
slouken@1950
   144
                                (XModifierKeymap * a), (a),
slouken@1950
   145
                                return) SDL_X11_SYM(int, XFreePixmap,
slouken@1950
   146
                                                    (Display * a,
slouken@1950
   147
                                                     Pixmap b), (a, b),
slouken@1950
   148
                                                    return)
slouken@1950
   149
    SDL_X11_SYM(int, XGetErrorDatabaseText,
slouken@1950
   150
            (Display * a, _Xconst char *b, _Xconst char *c, _Xconst char *d,
slouken@1950
   151
         char *e, int f), (a, b, c, d, e, f),
slouken@1950
   152
return) SDL_X11_SYM(XModifierKeymap *, XGetModifierMapping, (Display * a), (a), return) SDL_X11_SYM(int, XGetPointerControl,
slouken@1950
   153
                                            (Display * a, int *b, int *c,
slouken@1950
   154
                                             int *d), (a, b, c, d), return)
slouken@1950
   155
    SDL_X11_SYM(int, XGetScreenSaver,
slouken@1950
   156
            (Display * a, int *b, int *c, int *d, int *e), (a, b, c, d, e),
slouken@1950
   157
            return) SDL_X11_SYM(XVisualInfo *, XGetVisualInfo, (Display * a,
slouken@1950
   158
                                                                long b,
slouken@1950
   159
                                                                XVisualInfo
slouken@1950
   160
                                                                * c,
slouken@1950
   161
                                                                int *d), (a,
slouken@1950
   162
                                                                          b,
slouken@1950
   163
                                                                          c,
slouken@1950
   164
                                                                          d),
slouken@1950
   165
                                return) SDL_X11_SYM(XWMHints *,
slouken@1950
   166
                                                    XGetWMHints,
slouken@1950
   167
                                                    (Display * a,
slouken@1950
   168
                                                     Window b), (a, b),
slouken@1950
   169
                                                    return)
slouken@1950
   170
    SDL_X11_SYM(Status, XGetWindowAttributes,
slouken@1950
   171
            (Display * a, Window b, XWindowAttributes * c), (a, b, c),
slouken@1950
   172
            return) SDL_X11_SYM(int, XGrabKeyboard, (Display * a, Window b,
slouken@1950
   173
                                                     Bool c, int d, int e,
slouken@1950
   174
                                                     Time f), (a, b, c, d,
slouken@1950
   175
                                                               e, f),
slouken@1950
   176
                                return) SDL_X11_SYM(int, XGrabPointer,
slouken@1950
   177
                                                    (Display * a, Window b,
slouken@1950
   178
                                                     Bool c,
slouken@1950
   179
                                                     unsigned int d, int e,
slouken@1950
   180
                                                     int f, Window g,
slouken@1950
   181
                                                     Cursor h, Time i), (a,
slouken@1950
   182
                                                                         b,
slouken@1950
   183
                                                                         c,
slouken@1950
   184
                                                                         d,
slouken@1950
   185
                                                                         e,
slouken@1950
   186
                                                                         f,
slouken@1950
   187
                                                                         g,
slouken@1950
   188
                                                                         h,
slouken@1950
   189
                                                                         i),
slouken@1950
   190
                                                    return)
slouken@1950
   191
    SDL_X11_SYM(Status, XIconifyWindow, (Display * a, Window b, int c),
slouken@1950
   192
            (a, b, c), return) SDL_X11_SYM(int, XInstallColormap,
slouken@1950
   193
                                           (Display * a, Colormap b), (a,
slouken@1950
   194
                                                                       b),
slouken@1950
   195
                                           return) SDL_X11_SYM(KeyCode,
slouken@1950
   196
                                                               XKeysymToKeycode,
slouken@1950
   197
                                                               (Display *
slouken@1950
   198
                                                                a,
slouken@1950
   199
                                                                KeySym b),
slouken@1950
   200
                                                               (a, b), return)
slouken@1950
   201
    SDL_X11_SYM(Atom, XInternAtom, (Display * a, _Xconst char *b, Bool c),
slouken@1950
   202
            (a, b, c), return) SDL_X11_SYM(XPixmapFormatValues *,
slouken@1950
   203
                                           XListPixmapFormats, (Display * a,
slouken@1950
   204
                                                                int *b), (a,
slouken@1950
   205
                                                                          b),
slouken@1950
   206
                                           return) SDL_X11_SYM(int,
slouken@1950
   207
                                                               XLookupString,
slouken@1950
   208
                                                               (XKeyEvent *
slouken@1950
   209
                                                                a, char *b,
slouken@1950
   210
                                                                int c,
slouken@1950
   211
                                                                KeySym * d,
slouken@1950
   212
                                                                XComposeStatus
slouken@1950
   213
                                                                * e), (a,
slouken@1950
   214
                                                                       b,
slouken@1950
   215
                                                                       c,
slouken@1950
   216
                                                                       d,
slouken@1950
   217
                                                                       e),
slouken@1950
   218
                                                               return)
slouken@1950
   219
    SDL_X11_SYM(int, XMapRaised, (Display * a, Window b), (a, b),
slouken@1950
   220
            return) SDL_X11_SYM(int, XMapWindow, (Display * a, Window b),
slouken@1950
   221
                                (a, b), return) SDL_X11_SYM(int,
slouken@1950
   222
                                                            XMaskEvent,
slouken@1950
   223
                                                            (Display * a,
slouken@1950
   224
                                                             long b,
slouken@1950
   225
                                                             XEvent * c),
slouken@1950
   226
                                                            (a, b, c), return)
slouken@1950
   227
    SDL_X11_SYM(Status, XMatchVisualInfo,
slouken@1950
   228
            (Display * a, int b, int c, int d, XVisualInfo * e), (a, b, c, d, e),
slouken@1950
   229
            return) SDL_X11_SYM(int, XMissingExtension, (Display * a,
slouken@1950
   230
                                                         _Xconst char *b),
slouken@1950
   231
                                (a, b), return) SDL_X11_SYM(int,
slouken@1950
   232
                                                            XMoveResizeWindow,
slouken@1950
   233
                                                            (Display * a,
slouken@1950
   234
                                                             Window b,
slouken@1950
   235
                                                             int c, int d,
slouken@1950
   236
                                                             unsigned int
slouken@1950
   237
                                                             e,
slouken@1950
   238
                                                             unsigned int
slouken@1950
   239
                                                             f), (a, b, c,
slouken@1950
   240
                                                                  d, e, f),
slouken@1950
   241
                                                            return)
slouken@1950
   242
    SDL_X11_SYM(int, XMoveWindow, (Display * a, Window b, int c, int d),
slouken@1950
   243
            (a, b, c, d), return) SDL_X11_SYM(int, XNextEvent, (Display * a,
slouken@1950
   244
                                                                XEvent * b),
slouken@1950
   245
                                              (a, b),
slouken@1950
   246
                                              return) SDL_X11_SYM(Display
slouken@1950
   247
                                                                  *,
slouken@1950
   248
                                                                  XOpenDisplay,
slouken@1950
   249
                                                                  (_Xconst
slouken@1950
   250
                                                                   char
slouken@1950
   251
                                                                   *a),
slouken@1950
   252
                                                                  (a), return)
slouken@1950
   253
    SDL_X11_SYM(int, XPeekEvent, (Display * a, XEvent * b), (a, b),
slouken@1950
   254
            return) SDL_X11_SYM(int, XPending, (Display * a), (a),
slouken@1950
   255
                                return) SDL_X11_SYM(int, XPutImage,
slouken@1950
   256
                                                    (Display * a,
slouken@1950
   257
                                                     Drawable b, GC c,
slouken@1950
   258
                                                     XImage * d, int e,
slouken@1950
   259
                                                     int f, int g, int h,
slouken@1950
   260
                                                     unsigned int i,
slouken@1950
   261
                                                     unsigned int j), (a,
slouken@1950
   262
                                                                       b,
slouken@1950
   263
                                                                       c,
slouken@1950
   264
                                                                       d,
slouken@1950
   265
                                                                       e,
slouken@1950
   266
                                                                       f,
slouken@1950
   267
                                                                       g,
slouken@1950
   268
                                                                       h,
slouken@1950
   269
                                                                       i,
slouken@1950
   270
                                                                       j),
slouken@1950
   271
                                                    return)
slouken@1950
   272
    SDL_X11_SYM(int, XQueryColors, (Display * a, Colormap b, XColor * c, int d),
slouken@1950
   273
            (a, b, c, d), return) SDL_X11_SYM(int, XQueryKeymap,
slouken@1950
   274
                                              (Display * a, char *b), (a,
slouken@1950
   275
                                                                       b),
slouken@1950
   276
                                              return) SDL_X11_SYM(Bool,
slouken@1950
   277
                                                                  XQueryPointer,
slouken@1950
   278
                                                                  (Display
slouken@1950
   279
                                                                   * a,
slouken@1950
   280
                                                                   Window
slouken@1950
   281
                                                                   b,
slouken@1950
   282
                                                                   Window *
slouken@1950
   283
                                                                   c,
slouken@1950
   284
                                                                   Window *
slouken@1950
   285
                                                                   d,
slouken@1950
   286
                                                                   int *e,
slouken@1950
   287
                                                                   int *f,
slouken@1950
   288
                                                                   int *g,
slouken@1950
   289
                                                                   int *h,
slouken@1950
   290
                                                                   unsigned
slouken@1950
   291
                                                                   int *i),
slouken@1950
   292
                                                                  (a, b, c,
slouken@1950
   293
                                                                   d, e, f,
slouken@1950
   294
                                                                   g, h,
slouken@1950
   295
                                                                   i), return)
slouken@1950
   296
    SDL_X11_SYM(int, XRaiseWindow, (Display * a, Window b), (a, b),
slouken@1950
   297
            return) SDL_X11_SYM(int, XReparentWindow, (Display * a,
slouken@1950
   298
                                                       Window b, Window c,
slouken@1950
   299
                                                       int d, int e), (a, b,
slouken@1950
   300
                                                                       c, d,
slouken@1950
   301
                                                                       e),
slouken@1950
   302
                                return) SDL_X11_SYM(int, XResizeWindow,
slouken@1950
   303
                                                    (Display * a, Window b,
slouken@1950
   304
                                                     unsigned int c,
slouken@1950
   305
                                                     unsigned int d), (a,
slouken@1950
   306
                                                                       b,
slouken@1950
   307
                                                                       c,
slouken@1950
   308
                                                                       d),
slouken@1950
   309
                                                    return)
slouken@1950
   310
    SDL_X11_SYM(int, XSelectInput, (Display * a, Window b, long c), (a, b, c),
slouken@1950
   311
            return) SDL_X11_SYM(Status, XSendEvent, (Display * a, Window b,
slouken@1950
   312
                                                     Bool c, long d,
slouken@1950
   313
                                                     XEvent * e), (a, b, c,
slouken@1950
   314
                                                                   d, e),
slouken@1950
   315
                                return) SDL_X11_SYM(int, XSetClassHint,
slouken@1950
   316
                                                    (Display * a, Window b,
slouken@1950
   317
                                                     XClassHint * c), (a,
slouken@1950
   318
                                                                       b,
slouken@1950
   319
                                                                       c),
slouken@1950
   320
                                                    return)
slouken@1950
   321
    SDL_X11_SYM(XErrorHandler, XSetErrorHandler, (XErrorHandler a), (a),
slouken@1950
   322
            return) SDL_X11_SYM(XIOErrorHandler, XSetIOErrorHandler,
slouken@1950
   323
                                (XIOErrorHandler a), (a),
slouken@1950
   324
                                return) SDL_X11_SYM(int, XSetScreenSaver,
slouken@1950
   325
                                                    (Display * a, int b,
slouken@1950
   326
                                                     int c, int d, int e),
slouken@1950
   327
                                                    (a, b, c, d, e), return)
slouken@1950
   328
    SDL_X11_SYM(int, XSetTransientForHint, (Display * a, Window b, Window c),
slouken@1950
   329
            (a, b, c), return) SDL_X11_SYM(int, XSetWMHints, (Display * a,
slouken@1950
   330
                                                              Window b,
slouken@1950
   331
                                                              XWMHints * c),
slouken@1950
   332
                                           (a, b, c),
slouken@1950
   333
                                           return) SDL_X11_SYM(void,
slouken@1950
   334
                                                               XSetTextProperty,
slouken@1950
   335
                                                               (Display *
slouken@1950
   336
                                                                a,
slouken@1950
   337
                                                                Window b,
slouken@1950
   338
                                                                XTextProperty
slouken@1950
   339
                                                                * c,
slouken@1950
   340
                                                                Atom d),
slouken@1950
   341
                                                               (a, b, c, d),)
slouken@1950
   342
SDL_X11_SYM(void, XSetWMNormalHints, (Display * a, Window b, XSizeHints * c),
slouken@1950
   343
            (a, b, c),)
slouken@1950
   344
SDL_X11_SYM(Status, XSetWMProtocols,
slouken@1950
   345
            (Display * a, Window b, Atom * c, int d), (a, b, c, d), return)
slouken@1950
   346
SDL_X11_SYM(int, XSetWindowBackground,
slouken@1950
   347
            (Display * a, Window b, unsigned long c), (a, b, c), return)
slouken@1950
   348
SDL_X11_SYM(int, XSetWindowBackgroundPixmap,
slouken@1950
   349
            (Display * a, Window b, Pixmap c), (a, b, c), return)
slouken@1950
   350
SDL_X11_SYM(int, XSetWindowColormap, (Display * a, Window b, Colormap c),
slouken@1950
   351
            (a, b, c), return)
slouken@1950
   352
SDL_X11_SYM(int, XStoreColors, (Display * a, Colormap b, XColor * c, int d),
slouken@1950
   353
            (a, b, c, d), return)
slouken@1950
   354
SDL_X11_SYM(Status, XStringListToTextProperty,
slouken@1950
   355
            (char **a, int b, XTextProperty * c), (a, b, c), return)
slouken@1950
   356
SDL_X11_SYM(int, XSync, (Display * a, Bool b), (a, b), return)
slouken@1950
   357
SDL_X11_SYM(int, XUngrabKeyboard, (Display * a, Time b), (a, b), return)
slouken@1950
   358
SDL_X11_SYM(int, XUngrabPointer, (Display * a, Time b), (a, b), return)
slouken@1950
   359
SDL_X11_SYM(int, XUnmapWindow, (Display * a, Window b), (a, b), return)
slouken@1950
   360
SDL_X11_SYM(int, XWarpPointer,
slouken@1950
   361
            (Display * a, Window b, Window c, int d, int e, unsigned int f,
slouken@1950
   362
             unsigned int g, int h, int i), (a, b, c, d, e, f, g, h, i),
slouken@1950
   363
            return)
slouken@1950
   364
SDL_X11_SYM(VisualID, XVisualIDFromVisual, (Visual * a), (a), return)
slouken@1950
   365
SDL_X11_SYM(XExtDisplayInfo *, XextAddDisplay,
slouken@1950
   366
            (XExtensionInfo * a, Display * b, char *c, XExtensionHooks * d,
slouken@1950
   367
             int e, XPointer f), (a, b, c, d, e, f), return)
slouken@1950
   368
SDL_X11_SYM(XExtensionInfo *, XextCreateExtension, (void), (), return)
slouken@1950
   369
SDL_X11_SYM(void, XextDestroyExtension, (XExtensionInfo * a), (a),)
slouken@1950
   370
SDL_X11_SYM(XExtDisplayInfo *, XextFindDisplay,
slouken@1950
   371
            (XExtensionInfo * a, Display * b), (a, b), return)
slouken@1950
   372
SDL_X11_SYM(int, XextRemoveDisplay, (XExtensionInfo * a, Display * b),
slouken@1950
   373
            (a, b), return)
slouken@1950
   374
SDL_X11_SYM(Bool, XQueryExtension,
slouken@1950
   375
            (Display * a, _Xconst char *b, int *c, int *d, int *e), (a, b, c,
slouken@1950
   376
                                                                     d, e),
slouken@1950
   377
            return)
slouken@1950
   378
SDL_X11_SYM(char *, XDisplayString, (Display * a), (a), return)
slouken@1950
   379
SDL_X11_SYM(int, XGetErrorText, (Display * a, int b, char *c, int d),
slouken@1950
   380
            (a, b, c, d), return)
slouken@1950
   381
SDL_X11_SYM(void, _XEatData, (Display * a, unsigned long b), (a, b),)
slouken@1950
   382
SDL_X11_SYM(void, _XFlush, (Display * a), (a),)
slouken@1950
   383
SDL_X11_SYM(void, _XFlushGCCache, (Display * a, GC b), (a, b),)
slouken@1950
   384
SDL_X11_SYM(int, _XRead, (Display * a, char *b, long c), (a, b, c), return)
slouken@1950
   385
SDL_X11_SYM(void, _XReadPad, (Display * a, char *b, long c), (a, b, c),)
slouken@1950
   386
SDL_X11_SYM(void, _XSend, (Display * a, _Xconst char *b, long c), (a, b, c),)
slouken@1950
   387
SDL_X11_SYM(Status, _XReply, (Display * a, xReply * b, int c, Bool d),
slouken@1950
   388
            (a, b, c, d), return)
slouken@1950
   389
SDL_X11_SYM(unsigned long, _XSetLastRequestRead,
slouken@1950
   390
            (Display * a, xGenericReply * b), (a, b), return)
slouken@1950
   391
SDL_X11_SYM(SDL_X11_XSynchronizeRetType, XSynchronize, (Display * a, Bool b),
slouken@1950
   392
            (a, b), return)
slouken@1950
   393
SDL_X11_SYM(SDL_X11_XESetWireToEventRetType, XESetWireToEvent,
slouken@1950
   394
            (Display * a, int b, SDL_X11_XESetWireToEventRetType c), (a, b,
slouken@1950
   395
                                                                      c),
slouken@1950
   396
            return)
slouken@1950
   397
SDL_X11_SYM(SDL_X11_XESetEventToWireRetType, XESetEventToWire,
slouken@1950
   398
            (Display * a, int b, SDL_X11_XESetEventToWireRetType c), (a, b,
slouken@1950
   399
                                                                      c),
slouken@1950
   400
            return)
slouken@1950
   401
SDL_X11_SYM(XExtensionErrorHandler, XSetExtensionErrorHandler,
slouken@1950
   402
            (XExtensionErrorHandler a), (a), return)
slouken@1950
   403
#if NeedWidePrototypes
slouken@1950
   404
SDL_X11_SYM(KeySym, XKeycodeToKeysym, (Display * a, unsigned int b, int c),
slouken@1950
   405
            (a, b, c), return)
slouken@1950
   406
#else
slouken@1950
   407
SDL_X11_SYM(KeySym, XKeycodeToKeysym, (Display * a, KeyCode b, int c),
slouken@1950
   408
            (a, b, c), return)
slouken@1950
   409
#endif
slouken@1950
   410
#ifdef X_HAVE_UTF8_STRING
slouken@1950
   411
SDL_X11_MODULE(UTF8)
slouken@1950
   412
SDL_X11_SYM(int, Xutf8TextListToTextProperty,
slouken@1950
   413
            (Display * a, char **b, int c, XICCEncodingStyle d,
slouken@1950
   414
             XTextProperty * e), (a, b, c, d, e), return)
slouken@1950
   415
SDL_X11_SYM(int, Xutf8LookupString,
slouken@1950
   416
            (XIC a, XKeyPressedEvent * b, char *c, int d, KeySym * e,
slouken@1950
   417
             Status * f), (a, b, c, d, e, f), return)
slouken@1950
   418
/*SDL_X11_SYM(XIC,XCreateIC,(XIM, ...),return)  !!! ARGH! */
slouken@1950
   419
SDL_X11_SYM(void, XDestroyIC, (XIC a), (a),)
slouken@1950
   420
SDL_X11_SYM(void, XSetICFocus, (XIC a), (a),)
slouken@1950
   421
SDL_X11_SYM(void, XUnsetICFocus, (XIC a), (a),)
slouken@1950
   422
SDL_X11_SYM(XIM, XOpenIM,
slouken@1950
   423
            (Display * a, struct _XrmHashBucketRec * b, char *c, char *d),
slouken@1950
   424
            (a, b, c, d), return)
slouken@1950
   425
SDL_X11_SYM(Status, XCloseIM, (XIM a), (a), return)
slouken@1950
   426
#endif
slouken@1950
   427
#ifndef NO_SHARED_MEMORY
slouken@1950
   428
SDL_X11_MODULE(SHM)
slouken@1950
   429
SDL_X11_SYM(Status, XShmAttach, (Display * a, XShmSegmentInfo * b), (a, b),
slouken@1950
   430
            return)
slouken@1950
   431
SDL_X11_SYM(Status, XShmDetach, (Display * a, XShmSegmentInfo * b), (a, b),
slouken@1950
   432
            return)
slouken@1950
   433
SDL_X11_SYM(Status, XShmPutImage,
slouken@1950
   434
            (Display * a, Drawable b, GC c, XImage * d, int e, int f, int g,
slouken@1950
   435
             int h, unsigned int i, unsigned int j, Bool k), (a, b, c, d, e,
slouken@1950
   436
                                                              f, g, h, i, j,
slouken@1950
   437
                                                              k), return)
slouken@1950
   438
SDL_X11_SYM(XImage *, XShmCreateImage,
slouken@1950
   439
            (Display * a, Visual * b, unsigned int c, int d, char *e,
slouken@1950
   440
             XShmSegmentInfo * f, unsigned int g, unsigned int h), (a, b, c,
slouken@1950
   441
                                                                    d, e, f,
slouken@1950
   442
                                                                    g, h),
slouken@1950
   443
            return)
slouken@1950
   444
SDL_X11_SYM(Bool, XShmQueryExtension, (Display * a), (a), return)
slouken@1950
   445
#endif
slouken@1950
   446
/*
slouken@1950
   447
 * Not required...these only exist in code in headers on some 64-bit platforms,
slouken@1950
   448
 *  and are removed via macros elsewhere, so it's safe for them to be missing.
slouken@1950
   449
 */
slouken@1950
   450
#ifdef LONG64
slouken@1950
   451
SDL_X11_MODULE(IO_32BIT)
slouken@1950
   452
SDL_X11_SYM(int, _XData32,
slouken@1950
   453
            (Display * dpy, register long *data, unsigned len), (dpy, data,
slouken@1950
   454
                                                                 len), return)
slouken@1950
   455
SDL_X11_SYM(void, _XRead32, (Display * dpy, register long *data, long len),
slouken@1950
   456
            (dpy, data, len),)
slouken@1950
   457
#endif
slouken@1950
   458
/*
slouken@1950
   459
 * These only show up on some variants of Unix.
slouken@1950
   460
 */
slouken@1950
   461
#if defined(__osf__)
slouken@1950
   462
SDL_X11_MODULE(OSF_ENTRY_POINTS)
slouken@1950
   463
SDL_X11_SYM(void, _SmtBufferOverflow,
slouken@1950
   464
            (Display * dpy, register smtDisplayPtr p), (dpy, p),)
slouken@1950
   465
SDL_X11_SYM(void, _SmtIpError,
slouken@1950
   466
            (Display * dpy, register smtDisplayPtr p, int i), (dpy, p, i),)
slouken@1950
   467
SDL_X11_SYM(int, ipAllocateData, (ChannelPtr a, IPCard b, IPDataPtr * c),
slouken@1950
   468
            (a, b, c), return)
slouken@1950
   469
SDL_X11_SYM(int, ipUnallocateAndSendData, (ChannelPtr a, IPCard b), (a, b),
slouken@1950
   470
            return)
slouken@1950
   471
#endif
slouken@1950
   472
/* Xrandr support. */
slouken@1950
   473
#if SDL_VIDEO_DRIVER_X11_XRANDR
slouken@1950
   474
SDL_X11_MODULE(XRANDR)
slouken@1950
   475
SDL_X11_SYM(Status, XRRQueryVersion,
slouken@1950
   476
            (Display * dpy, int *major_versionp, int *minor_versionp), (dpy,
slouken@1950
   477
                                                                        major_versionp,
slouken@1950
   478
                                                                        minor_versionp),
slouken@1950
   479
            return)
slouken@1950
   480
SDL_X11_SYM(XRRScreenConfiguration *, XRRGetScreenInfo,
slouken@1950
   481
            (Display * dpy, Drawable draw), (dpy, draw), return)
slouken@1950
   482
SDL_X11_SYM(SizeID, XRRConfigCurrentConfiguration,
slouken@1950
   483
            (XRRScreenConfiguration * config, Rotation * rotation), (config,
slouken@1950
   484
                                                                     rotation),
slouken@1950
   485
            return)
slouken@1950
   486
SDL_X11_SYM(XRRScreenSize *, XRRConfigSizes,
slouken@1950
   487
            (XRRScreenConfiguration * config, int *nsizes), (config, nsizes),
slouken@1950
   488
            return)
slouken@1950
   489
SDL_X11_SYM(short *, XRRConfigRates,
slouken@1950
   490
            (XRRScreenConfiguration * config, int sizeID, int *nrates),
slouken@1950
   491
            (config, sizeID, nrates), return)
slouken@1950
   492
SDL_X11_SYM(Status, XRRSetScreenConfig,
slouken@1950
   493
            (Display * dpy, XRRScreenConfiguration * config, Drawable draw,
slouken@1950
   494
             int size_index, Rotation rotation, Time timestamp), (dpy,
slouken@1950
   495
                                                                  config,
slouken@1950
   496
                                                                  draw,
slouken@1950
   497
                                                                  size_index,
slouken@1950
   498
                                                                  rotation,
slouken@1950
   499
                                                                  timestamp),
slouken@1950
   500
            return)
slouken@1950
   501
SDL_X11_SYM(void, XRRFreeScreenConfigInfo, (XRRScreenConfiguration * config),
slouken@1950
   502
            (config),)
slouken@1950
   503
#endif
slouken@1950
   504
/* DPMS support */
slouken@1950
   505
#if SDL_VIDEO_DRIVER_X11_DPMS
slouken@1950
   506
SDL_X11_MODULE(DPMS)
slouken@1950
   507
SDL_X11_SYM(Status, DPMSQueryExtension,
slouken@1950
   508
            (Display * dpy, int *major_versionp, int *minor_versionp), (dpy,
slouken@1950
   509
                                                                        major_versionp,
slouken@1950
   510
                                                                        minor_versionp),
slouken@1950
   511
            return)
slouken@1950
   512
SDL_X11_SYM(Status, DPMSInfo, (Display * dpy, CARD16 * state, BOOL * onoff),
slouken@1950
   513
            (dpy, state, onoff), return)
slouken@1950
   514
SDL_X11_SYM(Status, DPMSEnable, (Display * dpy), (dpy), return)
slouken@1950
   515
SDL_X11_SYM(Status, DPMSDisable, (Display * dpy), (dpy), return)
slouken@1950
   516
#endif
slouken@1950
   517
/* end of SDL_x11sym.h ... */
slouken@1950
   518
/* vi: set ts=4 sw=4 expandtab: */