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

« back to all changes in this revision

Viewing changes to unix/xc/lib/Xrandr/Xrandrint.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
/*
 
2
 * $XFree86: xc/lib/Xrandr/Xrandrint.h,v 1.4 2002/10/14 18:01:40 keithp Exp $
 
3
 *
 
4
 *
 
5
 * Copyright � 2000, Compaq Computer Corporation, 
 
6
 * Copyright � 2002, Hewlett Packard, Inc.
 
7
 *
 
8
 * Permission to use, copy, modify, distribute, and sell this software and its
 
9
 * documentation for any purpose is hereby granted without fee, provided that
 
10
 * the above copyright notice appear in all copies and that both that
 
11
 * copyright notice and this permission notice appear in supporting
 
12
 * documentation, and that the name of Compaq or HP not be used in advertising
 
13
 * or publicity pertaining to distribution of the software without specific,
 
14
 * written prior permission.  HP makes no representations about the
 
15
 * suitability of this software for any purpose.  It is provided "as is"
 
16
 * without express or implied warranty.
 
17
 *
 
18
 * HP DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
 
19
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL HP
 
20
 * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 
21
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
 
22
 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 
 
23
 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
24
 *
 
25
 * Author:  Jim Gettys, HP Labs, Hewlett-Packard, Inc.
 
26
 */
 
27
 
 
28
#ifndef _XRANDRINT_H_
 
29
#define _XRANDRINT_H_
 
30
 
 
31
#define NEED_EVENTS
 
32
#define NEED_REPLIES
 
33
#include <X11/Xlibint.h>
 
34
#include <X11/Xutil.h>
 
35
#include "Xext.h"                       /* in ../include */
 
36
#include "extutil.h"                    /* in ../include */
 
37
#include "Xrandr.h"
 
38
#include "randr.h"
 
39
#include "randrproto.h"
 
40
 
 
41
extern XExtensionInfo XrandrExtensionInfo;
 
42
extern char XrandrExtensionName[];
 
43
 
 
44
#define RRCheckExtension(dpy,i,val) \
 
45
  XextCheckExtension (dpy, i, XRRExtensionName, val)
 
46
#define RRSimpleCheckExtension(dpy,i) \
 
47
  XextSimpleCheckExtension (dpy, i, XRRExtensionName)
 
48
 
 
49
XExtDisplayInfo *XRRFindDisplay (Display *dpy);
 
50
 
 
51
 
 
52
/* deliberately opaque internal data structure; can be extended, 
 
53
   but not reordered */
 
54
struct _XRRScreenConfiguration {
 
55
  Screen *screen;       /* the root window in GetScreenInfo */
 
56
  XRRScreenSize *sizes;
 
57
  Rotation rotations;
 
58
  Rotation current_rotation;
 
59
  int nsizes;
 
60
  int current_size;
 
61
  short current_rate;
 
62
  Time timestamp;
 
63
  Time config_timestamp;
 
64
  int subpixel_order;   /* introduced in randr v0.1 */
 
65
  short *rates;         /* introduced in randr v1.1 */
 
66
  int nrates;
 
67
};
 
68
 
 
69
/*
 
70
 * if a configure notify on the root is recieved, or
 
71
 * an XRRScreenChangeNotify is recieved,
 
72
 * XRRUpdateConfiguration should be called to update the X library's
 
73
 * view of the screen configuration; it will also invalidate the cache
 
74
 * provided by XRRScreenConfig and XRRConfig, and force a round trip
 
75
 * when next used.  Returns invalid status if not an event type
 
76
 * the library routine understand.
 
77
 */
 
78
 
 
79
/* we cache one screen configuration/screen */
 
80
 
 
81
typedef struct _XRandRInfo {
 
82
  XRRScreenConfiguration **config;
 
83
  int major_version, minor_version;     /* major_version = -1 means we don't know */
 
84
  Bool has_rates;                       /* Server supports refresh rates */
 
85
} XRandRInfo;
 
86
 
 
87
#endif /* _XRANDRINT_H_ */