~ubuntu-branches/ubuntu/gutsy/vnc4/gutsy

« back to all changes in this revision

Viewing changes to unix/xc/programs/Xserver/GL/glx/glxdrawable.h

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2006-05-15 20:35:17 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515203517-l4lre1ku942mn26k
Tags: 4.1.1+X4.3.0-10
* Correction of critical security issue. Thanks to Martin Kogler
  <e9925248@student.tuwien.ac.at> that informed me about the issue,
  and provided the patch.
  This flaw was originally found by Steve Wiseman of intelliadmin.com.
* Applied patch from Javier Kohen <jkohen@users.sourceforge.net> that
  inform the user that only 8 first characters of the password will
  actually be used when typing more than 8 characters, closes:
  #355619.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $XFree86: xc/programs/Xserver/GL/glx/glxdrawable.h,v 1.3 2001/03/21 16:29:36 dawes Exp $ */
 
2
#ifndef _GLX_drawable_h_
 
3
#define _GLX_drawable_h_
 
4
 
 
5
/*
 
6
** License Applicability. Except to the extent portions of this file are
 
7
** made subject to an alternative license as permitted in the SGI Free
 
8
** Software License B, Version 1.1 (the "License"), the contents of this
 
9
** file are subject only to the provisions of the License. You may not use
 
10
** this file except in compliance with the License. You may obtain a copy
 
11
** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
 
12
** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
 
13
** 
 
14
** http://oss.sgi.com/projects/FreeB
 
15
** 
 
16
** Note that, as provided in the License, the Software is distributed on an
 
17
** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
 
18
** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
 
19
** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
 
20
** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
 
21
** 
 
22
** Original Code. The Original Code is: OpenGL Sample Implementation,
 
23
** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
 
24
** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
 
25
** Copyright in any portions created by third parties is as indicated
 
26
** elsewhere herein. All Rights Reserved.
 
27
** 
 
28
** Additional Notice Provisions: The application programming interfaces
 
29
** established by SGI in conjunction with the Original Code are The
 
30
** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released
 
31
** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version
 
32
** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X
 
33
** Window System(R) (Version 1.3), released October 19, 1998. This software
 
34
** was created using the OpenGL(R) version 1.2.1 Sample Implementation
 
35
** published by SGI, but has not been independently verified as being
 
36
** compliant with the OpenGL(R) version 1.2.1 Specification.
 
37
**
 
38
*/
 
39
 
 
40
typedef struct {
 
41
 
 
42
    DrawablePtr pDraw;
 
43
    __GLXvisualConfig *pGlxVisual;
 
44
    __GLXscreenInfo *pGlxScreen;
 
45
    ScreenPtr pScreen;
 
46
    Bool idExists;
 
47
    int refcnt;
 
48
 
 
49
} __GLXpixmap;
 
50
 
 
51
struct __GLXdrawablePrivateRec {
 
52
    /*
 
53
    ** list of drawable private structs
 
54
    */
 
55
    struct __GLXdrawablePrivateRec *last;
 
56
    struct __GLXdrawablePrivateRec *next;
 
57
 
 
58
    DrawablePtr pDraw;
 
59
    XID drawId;
 
60
    __GLXpixmap *pGlxPixmap;
 
61
 
 
62
    /*
 
63
    ** Either DRAWABLE_PIXMAP or DRAWABLE_WINDOW, copied from pDraw above.
 
64
    ** Needed by the resource freer because pDraw might already have been
 
65
    ** freed.
 
66
    */
 
67
    int type;
 
68
 
 
69
    /*
 
70
    ** Configuration of the visual to which this drawable was created.
 
71
    */
 
72
    __GLXvisualConfig *pGlxVisual;
 
73
 
 
74
    /*
 
75
    ** cached drawable size and origin
 
76
    */
 
77
    GLint xorigin, yorigin;
 
78
    GLint width, height;
 
79
 
 
80
    /*
 
81
    ** list of contexts bound to this drawable
 
82
    */
 
83
    struct __GLXcontextRec *glxc;
 
84
 
 
85
    /*
 
86
    ** "methods" that the drawble should be able to respond to.
 
87
    */
 
88
    void (*freeBuffers)(struct __GLXdrawablePrivateRec *);
 
89
    void (*updatePalette)(struct __GLXdrawablePrivateRec *);
 
90
    GLboolean (*swapBuffers)(struct __GLXdrawablePrivateRec *);
 
91
 
 
92
    /*
 
93
    ** The GL drawable (information shared between GLX and the GL core)
 
94
    */
 
95
    __GLdrawablePrivate glPriv;
 
96
 
 
97
    /*
 
98
    ** reference count
 
99
    */
 
100
    int refCount;
 
101
};
 
102
 
 
103
#endif /* !__GLX_drawable_h__ */