~ubuntu-branches/ubuntu/edgy/xorg-server/edgy-updates

« back to all changes in this revision

Viewing changes to dbe/dbe.c

  • Committer: Bazaar Package Importer
  • Author(s): Rodrigo Parra Novo
  • Date: 2006-07-25 20:06:28 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060725200628-gjmmd9gxfxdc4ejs
Tags: 1:1.1.1-0ubuntu1
* New Upstream version
* Changed Build-Depends from mesa-swrast-source to mesa-swx11-source,
  following Debian package nomenclature
* Re-did 12_security_policy_in_etc.diff for 1.1.1
* Dropped 15_security_allocate_local.diff (applied upstream)
* Dropped 16_SECURITY_setuid.diff (applied upstream)
* Dropped 000_ubuntu_fix_read_kernel_mapping.patch (applied upstream)
* Dropped 002_ubuntu_fix_for_certain_intel_chipsets.patch (applied upstream)
* Updated versioned Build-Depends on mesa-swx11-source to version
  6.5.0.cvs.20060725-0ubuntu1
* Added arrayobj.c, arrayobj.h, bitset.h & rbadaptors.h to
  GL/symlink-mesa.sh (linked from mesa-swx11-source)
* Added arrayobj.c to default build target on GL/mesa/main

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $XdotOrg: xserver/xorg/dbe/dbe.c,v 1.5 2005/07/03 07:01:17 daniels Exp $ */
 
1
/* $XdotOrg: xserver/xorg/dbe/dbe.c,v 1.6 2006/02/10 22:00:21 anholt Exp $ */
2
2
/* $Xorg: dbe.c,v 1.3 2000/08/17 19:48:16 cpqbld Exp $ */
3
3
/******************************************************************************
4
4
 * 
41
41
#include <dix-config.h>
42
42
#endif
43
43
 
 
44
#include <string.h>
 
45
 
44
46
#include <X11/X.h>
45
47
#include <X11/Xproto.h>
46
48
#include "scrnintstr.h"
51
53
#include "dbestruct.h"
52
54
#include "midbe.h"
53
55
 
54
 
#ifdef XFree86LOADER
55
 
#include "xf86_ansic.h"
56
 
#endif
57
 
 
58
56
/* GLOBALS */
59
57
 
60
58
/* Per-screen initialization functions [init'ed by DbeRegisterFunction()] */
102
100
 *****************************************************************************/
103
101
 
104
102
void
105
 
DbeValidateBuffer(pWin, drawID, dstbuf)
106
 
    WindowPtr pWin;
107
 
    XID drawID;
108
 
    Bool dstbuf;
 
103
DbeValidateBuffer(WindowPtr pWin, XID drawID, Bool dstbuf)
109
104
{
110
105
    DbeScreenPrivPtr pDbeScreenPriv = DBE_SCREEN_PRIV_FROM_WINDOW(pWin);
111
106
    if (pDbeScreenPriv->ValidateBuffer)
124
119
 *****************************************************************************/
125
120
 
126
121
void
127
 
DbeRegisterFunction(pScreen, funct)
128
 
    ScreenPtr   pScreen;
129
 
    Bool        (*funct)();
 
122
DbeRegisterFunction(ScreenPtr pScreen, Bool (*funct) (/* ??? */))
130
123
{
131
124
    int i;
132
125
 
160
153
 *
161
154
 *****************************************************************************/
162
155
static DbeWindowPrivPtr
163
 
DbeAllocWinPriv(pScreen)
164
 
    ScreenPtr   pScreen;
 
156
DbeAllocWinPriv(ScreenPtr pScreen)
165
157
{
166
158
    DbeWindowPrivPtr            pDbeWindowPriv;
167
159
    DbeScreenPrivPtr            pDbeScreenPriv;
230
222
 *****************************************************************************/
231
223
 
232
224
static int
233
 
DbeAllocWinPrivPrivIndex()
 
225
DbeAllocWinPrivPrivIndex(void)
234
226
{
235
227
    return winPrivPrivCount++;
236
228
 
250
242
 *****************************************************************************/
251
243
 
252
244
static Bool
253
 
DbeAllocWinPrivPriv(pScreen, index, amount)
254
 
    register ScreenPtr  pScreen;
255
 
    int                 index;
256
 
    unsigned int        amount;
 
245
DbeAllocWinPrivPriv(register ScreenPtr pScreen, int index, unsigned int amount)
257
246
{
258
247
    DbeScreenPrivPtr    pDbeScreenPriv;
259
248
    unsigned int        oldamount;
304
293
 *****************************************************************************/
305
294
 
306
295
static void
307
 
DbeStubScreen(pDbeScreenPriv, nStubbedScreens)
308
 
    DbeScreenPrivPtr    pDbeScreenPriv;
309
 
    int                 *nStubbedScreens;
 
296
DbeStubScreen(DbeScreenPrivPtr pDbeScreenPriv, int *nStubbedScreens)
310
297
{
311
298
    /* Stub DIX. */
312
299
    pDbeScreenPriv->SetupBackgroundPainter = NULL;
353
340
 *****************************************************************************/
354
341
 
355
342
static int
356
 
ProcDbeGetVersion(client)
357
 
    ClientPtr client;
 
343
ProcDbeGetVersion(ClientPtr client)
358
344
{
359
345
    /* REQUEST(xDbeGetVersionReq); */
360
346
    xDbeGetVersionReply rep;
405
391
 *****************************************************************************/
406
392
 
407
393
static int
408
 
ProcDbeAllocateBackBufferName(client)
409
 
    ClientPtr client;
 
394
ProcDbeAllocateBackBufferName(ClientPtr client)
410
395
{
411
396
    REQUEST(xDbeAllocateBackBufferNameReq);
412
397
    WindowPtr                   pWin;
640
625
 *****************************************************************************/
641
626
 
642
627
static int
643
 
ProcDbeDeallocateBackBufferName(client)
644
 
    ClientPtr   client;
 
628
ProcDbeDeallocateBackBufferName(ClientPtr client)
645
629
{
646
630
    REQUEST(xDbeDeallocateBackBufferNameReq);
647
631
    DbeWindowPrivPtr    pDbeWindowPriv;
712
696
 *****************************************************************************/
713
697
 
714
698
static int
715
 
ProcDbeSwapBuffers(client)
716
 
    ClientPtr client;
 
699
ProcDbeSwapBuffers(ClientPtr client)
717
700
{
718
701
    REQUEST(xDbeSwapBuffersReq);
719
702
    WindowPtr           pWin;
837
820
 *****************************************************************************/
838
821
 
839
822
static int
840
 
ProcDbeBeginIdiom(client)
841
 
    ClientPtr client;
 
823
ProcDbeBeginIdiom(ClientPtr client)
842
824
{
843
825
    /* REQUEST(xDbeBeginIdiomReq); */
844
826
    DbeScreenPrivPtr    pDbeScreenPriv;
881
863
 *****************************************************************************/
882
864
 
883
865
static int
884
 
ProcDbeGetVisualInfo(client)
885
 
    ClientPtr client;
 
866
ProcDbeGetVisualInfo(ClientPtr client)
886
867
{
887
868
    REQUEST(xDbeGetVisualInfoReq);
888
869
    DbeScreenPrivPtr            pDbeScreenPriv;
1058
1039
 *****************************************************************************/
1059
1040
 
1060
1041
static int
1061
 
ProcDbeGetBackBufferAttributes(client)
1062
 
    ClientPtr client;
 
1042
ProcDbeGetBackBufferAttributes(ClientPtr client)
1063
1043
{
1064
1044
    REQUEST(xDbeGetBackBufferAttributesReq);
1065
1045
    xDbeGetBackBufferAttributesReply    rep;
1108
1088
 *****************************************************************************/
1109
1089
 
1110
1090
static int
1111
 
ProcDbeDispatch(client)
1112
 
    ClientPtr client;
 
1091
ProcDbeDispatch(ClientPtr client)
1113
1092
{
1114
1093
    REQUEST(xReq);
1115
1094
 
1164
1143
 *****************************************************************************/
1165
1144
 
1166
1145
static int
1167
 
SProcDbeGetVersion(client)
1168
 
    ClientPtr client;
 
1146
SProcDbeGetVersion(ClientPtr client)
1169
1147
{
1170
1148
    REQUEST(xDbeGetVersionReq);
1171
1149
    register int        n;
1201
1179
 *****************************************************************************/
1202
1180
 
1203
1181
static int
1204
 
SProcDbeAllocateBackBufferName(client)
1205
 
    ClientPtr client;
 
1182
SProcDbeAllocateBackBufferName(ClientPtr client)
1206
1183
{
1207
1184
    REQUEST(xDbeAllocateBackBufferNameReq);
1208
1185
    register int        n;
1237
1214
 *****************************************************************************/
1238
1215
 
1239
1216
static int
1240
 
SProcDbeDeallocateBackBufferName(client)
1241
 
    ClientPtr client;
 
1217
SProcDbeDeallocateBackBufferName(ClientPtr client)
1242
1218
{
1243
1219
    REQUEST (xDbeDeallocateBackBufferNameReq);
1244
1220
    register int        n;
1276
1252
 *****************************************************************************/
1277
1253
 
1278
1254
static int
1279
 
SProcDbeSwapBuffers(client)
1280
 
    ClientPtr client;
 
1255
SProcDbeSwapBuffers(ClientPtr client)
1281
1256
{
1282
1257
    REQUEST(xDbeSwapBuffersReq);
1283
1258
    register int        i, n;
1325
1300
 *****************************************************************************/
1326
1301
 
1327
1302
static int
1328
 
SProcDbeBeginIdiom(client)
1329
 
    ClientPtr client;
 
1303
SProcDbeBeginIdiom(ClientPtr client)
1330
1304
{
1331
1305
    REQUEST(xDbeBeginIdiomReq);
1332
1306
    register int        n;
1355
1329
 *****************************************************************************/
1356
1330
 
1357
1331
static int
1358
 
SProcDbeGetVisualInfo(client)
1359
 
    ClientPtr client;
 
1332
SProcDbeGetVisualInfo(ClientPtr client)
1360
1333
{
1361
1334
    REQUEST(xDbeGetVisualInfoReq);
1362
1335
    register int        n;
1390
1363
 *****************************************************************************/
1391
1364
 
1392
1365
static int
1393
 
SProcDbeGetBackBufferAttributes(client)
1394
 
    ClientPtr client;
 
1366
SProcDbeGetBackBufferAttributes(ClientPtr client)
1395
1367
{
1396
1368
    REQUEST (xDbeGetBackBufferAttributesReq);
1397
1369
    register int        n;
1417
1389
 *****************************************************************************/
1418
1390
 
1419
1391
static int
1420
 
SProcDbeDispatch(client)
1421
 
    ClientPtr client;
 
1392
SProcDbeDispatch(ClientPtr client)
1422
1393
{
1423
1394
    REQUEST(xReq);
1424
1395
 
1472
1443
 *****************************************************************************/
1473
1444
 
1474
1445
static Bool
1475
 
DbeSetupBackgroundPainter(pWin, pGC)
1476
 
    WindowPtr   pWin;
1477
 
    GCPtr       pGC;
 
1446
DbeSetupBackgroundPainter(WindowPtr pWin, GCPtr pGC)
1478
1447
{
1479
1448
    pointer     gcvalues[4];
1480
1449
    int         ts_x_origin, ts_y_origin;
1547
1516
 *
1548
1517
 *****************************************************************************/
1549
1518
static int
1550
 
DbeDrawableDelete(pDrawable, id)
1551
 
    pointer     pDrawable;
1552
 
    XID         id;
 
1519
DbeDrawableDelete(pointer pDrawable, XID id)
1553
1520
{
1554
1521
    return(Success);
1555
1522
 
1568
1535
 *
1569
1536
 *****************************************************************************/
1570
1537
static int
1571
 
DbeWindowPrivDelete(pDbeWinPriv, id)
1572
 
    pointer     pDbeWinPriv;
1573
 
    XID         id;
 
1538
DbeWindowPrivDelete(pointer pDbeWinPriv, XID id)
1574
1539
{
1575
1540
    DbeScreenPrivPtr    pDbeScreenPriv;
1576
1541
    DbeWindowPrivPtr    pDbeWindowPriv = (DbeWindowPrivPtr)pDbeWinPriv;
1677
1642
 *
1678
1643
 *****************************************************************************/
1679
1644
static void
1680
 
DbeResetProc(extEntry)
1681
 
    ExtensionEntry      *extEntry;
 
1645
DbeResetProc(ExtensionEntry *extEntry)
1682
1646
{
1683
1647
    int                 i;
1684
1648
    ScreenPtr           pScreen;
1733
1697
 *****************************************************************************/
1734
1698
 
1735
1699
static Bool
1736
 
DbeDestroyWindow(pWin)
1737
 
    WindowPtr   pWin;
 
1700
DbeDestroyWindow(WindowPtr pWin)
1738
1701
{
1739
1702
    DbeScreenPrivPtr    pDbeScreenPriv;
1740
1703
    DbeWindowPrivPtr    pDbeWindowPriv;
1816
1779
 *****************************************************************************/
1817
1780
 
1818
1781
void
1819
 
DbeExtensionInit()
 
1782
DbeExtensionInit(void)
1820
1783
{
1821
1784
    ExtensionEntry      *extEntry;
1822
1785
    register int        i, j;