Skip to content

Commit 51cd373

Browse files
committed
[PR #1487] dix: unexport functions from pixmap.h
PR: #1487
1 parent e059e16 commit 51cd373

File tree

8 files changed

+31
-13
lines changed

8 files changed

+31
-13
lines changed

dix/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ Equipment Corporation.
9191
#include "dix/dix_priv.h"
9292
#include "dix/input_priv.h"
9393
#include "dix/gc_priv.h"
94+
#include "dix/pixmap_priv.h"
9495
#include "dix/registry_priv.h"
9596
#include "dix/screensaver_priv.h"
9697
#include "dix/selection_priv.h"

dix/pixmap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ from The Open Group.
3131
#include <X11/X.h>
3232
#include <X11/extensions/render.h>
3333

34+
#include "dix/pixmap_priv.h"
3435
#include "mi/mi_priv.h"
3536

3637
#include "scrnintstr.h"

dix/pixmap_priv.h

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/* SPDX-License-Identifier: MIT OR X11
2+
*
3+
* Copyright © 2024 Enrico Weigelt, metux IT consult <[email protected]>
4+
*/
5+
#ifndef _XSERVER_DIX_PIXMAP_PRIV_H
6+
#define _XSERVER_DIX_PIXMAP_PRIV_H
7+
8+
#include "include/pixmap.h"
9+
#include "include/regionstr.h"
10+
#include "include/screenint.h"
11+
12+
Bool PixmapScreenInit(ScreenPtr pScreen);
13+
14+
/* for DRI2 module */ _X_EXPORT
15+
PixmapPtr PixmapShareToSecondary(PixmapPtr pixmap, ScreenPtr secondary);
16+
17+
/* for DRI2 module */ _X_EXPORT
18+
void PixmapUnshareSecondaryPixmap(PixmapPtr secondary_pixmap);
19+
20+
/* for modesetting module */ _X_EXPORT
21+
void PixmapDirtyCopyArea(PixmapPtr dst, DrawablePtr src,
22+
int x, int y, int dst_x, int dst_y,
23+
RegionPtr dirty_region);
24+
25+
#endif /* _XSERVER_DIX_PIXMAP_PRIV_H */

hw/xfree86/common/xf86platformBus.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#include <unistd.h>
3939

4040
#include "config/hotplug_priv.h"
41+
#include "dix/pixmap_priv.h"
4142
#include "dix/screenint_priv.h"
4243
#include "randr/randrstr_priv.h"
4344
#include "os/osdep.h"

hw/xfree86/dri2/dri2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#include <errno.h>
3838

3939
#include "dix/dix_priv.h"
40+
#include "dix/pixmap_priv.h"
4041
#include "os/client_priv.h"
4142

4243
#ifdef WITH_LIBDRM

hw/xfree86/drivers/video/modesetting/drmmode_display.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#include <unistd.h>
3636

3737
#include "dix/dix_priv.h"
38+
#include "dix/pixmap_priv.h"
3839
#include "os/fmt.h"
3940
#include "os/mathx_priv.h"
4041
#include "present/present_priv.h"

include/pixmap.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -103,19 +103,11 @@ extern _X_EXPORT PixmapPtr GetScratchPixmapHeader(ScreenPtr pScreen,
103103

104104
extern _X_EXPORT void FreeScratchPixmapHeader(PixmapPtr /*pPixmap */ );
105105

106-
extern _X_EXPORT Bool PixmapScreenInit(ScreenPtr /*pScreen */ );
107-
108106
extern _X_EXPORT PixmapPtr AllocatePixmap(ScreenPtr /*pScreen */ ,
109107
int /*pixDataSize */ );
110108

111109
extern _X_EXPORT void FreePixmap(PixmapPtr /*pPixmap */ );
112110

113-
extern _X_EXPORT PixmapPtr
114-
PixmapShareToSecondary(PixmapPtr pixmap, ScreenPtr secondary);
115-
116-
extern _X_EXPORT void
117-
PixmapUnshareSecondaryPixmap(PixmapPtr secondary_pixmap);
118-
119111
#define HAS_DIRTYTRACKING_ROTATION 1
120112
#define HAS_DIRTYTRACKING_DRAWABLE_SRC 1
121113
extern _X_EXPORT Bool
@@ -132,9 +124,4 @@ PixmapStopDirtyTracking(DrawablePtr src, PixmapPtr slave_dst);
132124
extern _X_EXPORT Bool
133125
PixmapSyncDirtyHelper(PixmapDirtyUpdatePtr dirty);
134126

135-
extern _X_EXPORT void
136-
PixmapDirtyCopyArea(PixmapPtr dst, DrawablePtr src,
137-
int x, int y, int dst_x, int dst_y,
138-
RegionPtr dirty_region);
139-
140127
#endif /* PIXMAP_H */

randr/rrcrtc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include <X11/Xatom.h>
2626

2727
#include "dix/dix_priv.h"
28+
#include "dix/pixmap_priv.h"
2829
#include "dix/request_priv.h"
2930
#include "dix/rpcbuf_priv.h"
3031
#include "randr/randrstr_priv.h"

0 commit comments

Comments
 (0)