~ubuntu-branches/ubuntu/vivid/virtualbox-ose/vivid

« back to all changes in this revision

Viewing changes to src/VBox/Additions/x11/x11include/7.1/xorg/micmap.h

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2009-09-14 18:25:07 UTC
  • mfrom: (0.4.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090914182507-c98g07mq16hjmn6d
Tags: 3.0.6-dfsg-1ubuntu1
* Merge from debian unstable (LP: #429697), remaining changes:
  - Enable DKMS support on virtualbox host and guest modules (LP: #267097)
    - Drop virtualbox-ose{-guest,}-modules-* package templates
    - Recommend *-source instead of *-modules packages
    - Replace error messages related to missing/mismatched
      kernel module accordingly
  - Autoload kernel module
    - LOAD_VBOXDRV_MODULE=1 in virtualbox-ose.default
  - Disable update action
    - patches/u01-disable-update-action.dpatch
  - Virtualbox should go in Accessories, not in System tools (LP: #288590)
    - virtualbox-ose-qt.files/virtualbox-ose.desktop
  - Add apport hook
    - virtualbox-ose.files/source_virtualbox-ose.py
    - virtualbox-ose.install
  - Add launchpad integration
    - control
    - lpi-bug.xpm
    - patches/u02-lp-integration.dpatch
  - virtualbox, virtualbox-* (names of the upstream proprietary packages)
    conflict with virtualbox-ose (LP: #379878)
* Make debug package depend on normal or guest utils package
* Drop patches/22-pulseaudio-stubs.dpatch (applied upstream)
* Rename Ubuntu specific patches to uXX-*.dpatch
* Fix lintian warnings in maintainer scripts

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $XFree86: xc/programs/Xserver/mi/micmap.h,v 1.5 1999/06/14 07:32:11 dawes Exp $ */
2
 
 
3
 
#include "colormapst.h"
4
 
 
5
 
#ifndef _MICMAP_H_
6
 
#define _MICMAP_H_
7
 
 
8
 
extern ColormapPtr miInstalledMaps[MAXSCREENS];
9
 
 
10
 
typedef Bool (* miInitVisualsProcPtr)(VisualPtr *, DepthPtr *, int *, int *,
11
 
                                        int *, VisualID *, unsigned long, int,
12
 
                                        int);
13
 
 
14
 
extern miInitVisualsProcPtr miInitVisualsProc;
15
 
                                        
16
 
int miListInstalledColormaps(ScreenPtr pScreen, Colormap *pmaps);
17
 
void miInstallColormap(ColormapPtr pmap);
18
 
void miUninstallColormap(ColormapPtr pmap);
19
 
 
20
 
void miResolveColor(unsigned short *, unsigned short *, unsigned short *,
21
 
                        VisualPtr);
22
 
Bool miInitializeColormap(ColormapPtr);
23
 
int miExpandDirectColors(ColormapPtr, int, xColorItem *, xColorItem *);
24
 
Bool miCreateDefColormap(ScreenPtr);
25
 
void miClearVisualTypes(void);
26
 
Bool miSetVisualTypes(int, int, int, int);
27
 
Bool miSetPixmapDepths(void);
28
 
Bool miSetVisualTypesAndMasks(int depth, int visuals, int bitsPerRGB, 
29
 
                              int preferredCVC,
30
 
                              Pixel redMask, Pixel greenMask, Pixel blueMask);
31
 
int miGetDefaultVisualMask(int);
32
 
Bool miInitVisuals(VisualPtr *, DepthPtr *, int *, int *, int *, VisualID *,
33
 
                        unsigned long, int, int);
34
 
void miResetInitVisuals(void);
35
 
 
36
 
void miHookInitVisuals(void (**old)(miInitVisualsProcPtr *),
37
 
                       void (*new)(miInitVisualsProcPtr *));
38
 
 
39
 
 
40
 
#define MAX_PSEUDO_DEPTH        10
41
 
#define MIN_TRUE_DEPTH          6
42
 
 
43
 
#define StaticGrayMask  (1 << StaticGray)
44
 
#define GrayScaleMask   (1 << GrayScale)
45
 
#define StaticColorMask (1 << StaticColor)
46
 
#define PseudoColorMask (1 << PseudoColor)
47
 
#define TrueColorMask   (1 << TrueColor)
48
 
#define DirectColorMask (1 << DirectColor)
49
 
                
50
 
#define ALL_VISUALS     (StaticGrayMask|\
51
 
                         GrayScaleMask|\
52
 
                         StaticColorMask|\
53
 
                         PseudoColorMask|\
54
 
                         TrueColorMask|\
55
 
                         DirectColorMask)
56
 
 
57
 
#define LARGE_VISUALS   (TrueColorMask|\
58
 
                         DirectColorMask)
59
 
 
60
 
#define SMALL_VISUALS   (StaticGrayMask|\
61
 
                         GrayScaleMask|\
62
 
                         StaticColorMask|\
63
 
                         PseudoColorMask)
64
 
 
65
 
#endif /* _MICMAP_H_ */