dix: move LOCO struct declaration out of public header

Not used by any external module/driver, so no need to keep it in
public header.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-02-25 15:07:21 +01:00
parent afe086b654
commit 375ca0abc3
9 changed files with 20 additions and 9 deletions

View File

@@ -26,6 +26,13 @@ typedef struct {
short refcnt;
} SHAREDCOLOR;
/* LOCO -- a local color for a PseudoColor cell. DirectColor maps always
* use the first value (called red) in the structure. What channel they
* are really talking about depends on which map they are in. */
typedef struct _CMAP_LOCO {
unsigned short red, green, blue;
} LOCO;
/* SHCO -- a shared color for a PseudoColor cell. Used with AllocColorPlanes.
* DirectColor maps always use the first value (called red) in the structure.
* What channel they are really talking about depends on which map they

View File

@@ -538,6 +538,7 @@ typedef struct {
/*
* Driver entry point types
*/
struct _CMAP_LOCO;
typedef Bool xf86ProbeProc(DriverPtr, int);
typedef Bool xf86PreInitProc(ScrnInfoPtr, int);
@@ -554,7 +555,7 @@ typedef int xf86ChangeGammaProc(ScrnInfoPtr, Gamma);
typedef void xf86PointerMovedProc(ScrnInfoPtr, int, int);
typedef Bool xf86PMEventProc(ScrnInfoPtr, pmEvent, Bool);
typedef void xf86DPMSSetProc(ScrnInfoPtr, int, int);
typedef void xf86LoadPaletteProc(ScrnInfoPtr, int, int *, LOCO *, VisualPtr);
typedef void xf86LoadPaletteProc(ScrnInfoPtr, int, int *, struct _CMAP_LOCO *, VisualPtr);
typedef void xf86SetOverscanProc(ScrnInfoPtr, int);
typedef void xf86ModeSetProc(ScrnInfoPtr);

View File

@@ -34,6 +34,7 @@
#include <sys/mman.h>
#include <unistd.h>
#include "dix/colormap_priv.h"
#include "os/fmt.h"
#include "dumb_bo.h"

View File

@@ -6,6 +6,8 @@
#include <string.h>
#include <sys/mman.h>
#include "dix/colormap_priv.h"
#include "xf86.h"
#include "xf86Modes.h"
#include "xf86_OSproc.h"

View File

@@ -10,6 +10,8 @@
#define FBDEVHW_TEXT 3 /* Text/attributes */
#define FBDEVHW_VGA_PLANES 4 /* EGA/VGA planes */
struct _CMAP_LOCO;
extern _X_EXPORT Bool fbdevHWGetRec(ScrnInfoPtr pScrn);
extern _X_EXPORT void fbdevHWFreeRec(ScrnInfoPtr pScrn);
@@ -40,7 +42,7 @@ extern _X_EXPORT void fbdevHWSave(ScrnInfoPtr pScrn);
extern _X_EXPORT void fbdevHWRestore(ScrnInfoPtr pScrn);
extern _X_EXPORT void fbdevHWLoadPalette(ScrnInfoPtr pScrn, int numColors,
int *indices, LOCO * colors,
int *indices, struct _CMAP_LOCO * colors,
VisualPtr pVisual);
extern _X_EXPORT ModeStatus fbdevHWValidMode(ScrnInfoPtr pScrn, DisplayModePtr mode,

View File

@@ -2,6 +2,8 @@
#include <xorg-config.h>
#endif
#include "dix/colormap_priv.h"
#include "xf86.h"
#include "xf86cmap.h"
#include "fbdevhw.h"

View File

@@ -7,6 +7,8 @@
#include <X11/extensions/render.h>
#include "dix/colormap_priv.h"
#include "randrstr.h"
#include "xf86RandR12.h"

View File

@@ -17,6 +17,7 @@
#include <X11/X.h>
#include "dix/colormap_priv.h"
#include "os/log_priv.h"
#include "misc.h"

View File

@@ -49,11 +49,4 @@ SOFTWARE.
#include <X11/Xdefs.h>
/* LOCO -- a local color for a PseudoColor cell. DirectColor maps always
* use the first value (called red) in the structure. What channel they
* are really talking about depends on which map they are in. */
typedef struct {
unsigned short red, green, blue;
} LOCO;
#endif /* COLORMAP_H */