Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch to recent devPrivates ABI (as used in X.org's Xserver) #560

Open
wants to merge 44 commits into
base: 3.6.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
ddd5284
Move EXTENSION_BASE and EXTENSION_EVENT_BASE to misc.h.
Nov 6, 2017
f8925ad
Add a common ARRAY_SIZE macro to dix.h
fooishbar Nov 6, 2017
bb64abb
X.org cherry-pick reverting X.org bug #6924.
sunweaver Jul 29, 2018
660fa50
mi{Create,Destroy}GCOps are unused, nuke 'em.
nwnk Nov 7, 2017
0a0e5d1
nxagent: Fake backing store support via Composite extension.
sunweaver Nov 20, 2017
1dd2f20
randr: Backport latest devPrivates ABI from X.org
sunweaver Nov 6, 2017
84f0b08
composite: Backport latest devPrivates ABI from X.org.
sunweaver Nov 6, 2017
b6eb64c
Xext: Backport latest devPrivates ABI from X.org.
sunweaver Nov 6, 2017
01ccaa8
include: Backport latest devPrivates ABI from X.org.
sunweaver Nov 7, 2017
66d68df
dix: Backport latest devPrivates ABI from X.org.
sunweaver Nov 7, 2017
a30c9ba
mi: Backport latest devPrivates ABI from X.org.
sunweaver Nov 7, 2017
a83f29c
xkb: Backport latest devPrivates ABI from X.org.
sunweaver Nov 7, 2017
71710e9
dbe: Backport latest devPrivates ABI from X.org.
sunweaver Nov 7, 2017
d3ae956
render: Backport latest devPrivates ABI from X.org.
sunweaver Nov 10, 2017
c0a1a89
damageext: Backport latest devPrivates ABI from X.org.
sunweaver Nov 10, 2017
d112afa
miext/cw: Backport latest devPrivates ABI from X.org.
sunweaver Nov 10, 2017
25c563c
xfixes: Backport latest devPrivates ABI from X.org.
sunweaver Nov 10, 2017
83d7159
record: Backport latest devPrivates ABI from X.org.
sunweaver Nov 10, 2017
4d4d45e
fb: Backport latest devPrivate ABI from X.org.
sunweaver Nov 10, 2017
5b3f2b7
miext/damage: Backport latest devPrivate ABI from X.org.
sunweaver Nov 13, 2017
310c2f3
rebase miext/damage/ devPrivates backport
sunweaver Nov 13, 2017
8910e8f
hw/nxagent: Backport latest devPrivates ABI from X.org.
sunweaver Nov 15, 2017
6cff6ac
rebase devPrivates xkb
sunweaver Nov 21, 2017
103dc70
rebase devPrivates dix
sunweaver Nov 21, 2017
f80ab1f
rebase devPrivates xkb
sunweaver Nov 21, 2017
e44213b
rebase devPrivates dix
sunweaver Nov 21, 2017
6df3122
rebase devPrivates include
sunweaver Nov 21, 2017
9235790
rebase devPrivates nxagent
sunweaver Nov 21, 2017
f7ee2e4
Eviscerate save-under support.
nwnk Nov 21, 2017
a19e251
Start devices after windows are initialized.
Nov 22, 2017
85129d1
mi: Don't save midispcur rendering resources for each cursor
keith-packard Nov 22, 2017
6109e99
dix/render: consolidate window format matching code.
airlied Nov 22, 2017
041b36e
mi: Delete unused flicker-free MoveCursor code.
jameysharp Nov 22, 2017
a7a3326
rebase devPrivates render
sunweaver Nov 22, 2017
fe360d8
rebase devPrivates nxagent
sunweaver Nov 22, 2017
51bfb20
rebase devPrivates include
sunweaver Nov 22, 2017
d1cedfb
rebase devPrivates dix
sunweaver Nov 22, 2017
0f6a6c1
rebase devPrivates Xext
sunweaver Jul 30, 2018
5351dcc
rebase devPrivates dix
sunweaver Jul 30, 2018
db6fca8
rebase devPrivates mi
sunweaver Jul 30, 2018
871386a
rebase devPrivates mi
sunweaver Jul 30, 2018
bfbc191
rebase devPrivates xfixes
sunweaver Jul 30, 2018
c4e0696
rebase devPrivates include/
sunweaver Jul 30, 2018
353e683
rebase devPrivates dix
sunweaver Jul 30, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
include: Backport latest devPrivates ABI from X.org.
  • Loading branch information
sunweaver committed Jul 30, 2018
commit 01ccaa8f9a8db094239c77a4ffbad898ad87f25a
1 change: 1 addition & 0 deletions nx-X11/programs/Xserver/include/Imakefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ InstallDriverSDKNonExecFile(opaque.h,$(DRIVERSDKINCLUDEDIR))
InstallDriverSDKNonExecFile(os.h,$(DRIVERSDKINCLUDEDIR))
InstallDriverSDKNonExecFile(pixmap.h,$(DRIVERSDKINCLUDEDIR))
InstallDriverSDKNonExecFile(pixmapstr.h,$(DRIVERSDKINCLUDEDIR))
InstallDriverSDKNonExecFile(privates.h,$(DRIVERSDKINCLUDEDIR))
InstallDriverSDKNonExecFile(property.h,$(DRIVERSDKINCLUDEDIR))
InstallDriverSDKNonExecFile(propertyst.h,$(DRIVERSDKINCLUDEDIR))
InstallDriverSDKNonExecFile(region.h,$(DRIVERSDKINCLUDEDIR))
Expand Down
3 changes: 2 additions & 1 deletion nx-X11/programs/Xserver/include/colormapst.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ SOFTWARE.

#include "colormap.h"
#include "screenint.h"
#include "privates.h"

/* Shared color -- the color is used by AllocColorPlanes */
typedef struct
Expand Down Expand Up @@ -113,7 +114,7 @@ typedef struct _ColormapRec
Entry *green;
Entry *blue;
void * devPriv;
DevUnion *devPrivates; /* dynamic devPrivates added after devPriv
PrivateRec *devPrivates; /* dynamic devPrivates added after devPriv
already existed - must keep devPriv */
} ColormapRec;

Expand Down
6 changes: 4 additions & 2 deletions nx-X11/programs/Xserver/include/cursorstr.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ SOFTWARE.
#define CURSORSTRUCT_H

#include "cursor.h"
#include "privates.h"

/*
* device-independent cursor storage
*/
Expand All @@ -63,7 +65,7 @@ typedef struct _CursorBits {
Bool emptyMask; /* all zeros mask */
unsigned short width, height, xhot, yhot; /* metrics */
int refcnt; /* can be shared */
void * devPriv[MAXSCREENS]; /* set by pScr->RealizeCursor*/
PrivateRec *devPrivates; /* set by pScr->RealizeCursor */
#ifdef ARGB_CURSOR
CARD32 *argb; /* full-color alpha blended */
#endif
Expand All @@ -74,7 +76,7 @@ typedef struct _Cursor {
unsigned short foreRed, foreGreen, foreBlue; /* device-independent color */
unsigned short backRed, backGreen, backBlue; /* device-independent color */
int refcnt;
void * devPriv[MAXSCREENS]; /* set by pScr->RealizeCursor*/
PrivateRec *devPrivates; /* set by pScr->RealizeCursor */
#ifdef XFIXES
CARD32 serialNumber;
Atom name;
Expand Down
8 changes: 0 additions & 8 deletions nx-X11/programs/Xserver/include/dix.h
Original file line number Diff line number Diff line change
Expand Up @@ -668,14 +668,6 @@ void
ScreenRestructured (ScreenPtr pScreen);
#endif

extern void ResetClientPrivates(void);

extern int AllocateClientPrivateIndex(void);

extern Bool AllocateClientPrivate(
int /*index*/,
unsigned /*amount*/);

/*
* callback manager stuff
*/
Expand Down
3 changes: 2 additions & 1 deletion nx-X11/programs/Xserver/include/dixstruct.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ SOFTWARE.
#include "cursor.h"
#include "gc.h"
#include "pixmap.h"
#include "privates.h"
#include <nx-X11/Xmd.h>

/*
Expand Down Expand Up @@ -112,7 +113,7 @@ typedef struct _Client {
Bool big_requests; /* supports large requests */
int priority;
ClientState clientState;
DevUnion *devPrivates;
PrivateRec *devPrivates;
#ifdef XKB
unsigned short xkbClientFlags;
unsigned short mapNotifyMask;
Expand Down
2 changes: 2 additions & 0 deletions nx-X11/programs/Xserver/include/extnsionst.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ SOFTWARE.
#include "screenint.h"
#include "extension.h"
#include "gc.h"
#include "privates.h"

typedef struct _ExtensionEntry {
int index;
Expand All @@ -69,6 +70,7 @@ typedef struct _ExtensionEntry {
void * extPrivate;
unsigned short (* MinorOpcode)( /* called for errors */
ClientPtr /* client */);
PrivateRec *devPrivates;
#ifdef XCSECURITY
Bool secure; /* extension visible to untrusted clients? */
#endif
Expand Down
6 changes: 2 additions & 4 deletions nx-X11/programs/Xserver/include/gcstruct.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ SOFTWARE.
#include "region.h"
#include "pixmap.h"
#include "screenint.h"
#include "privates.h"
#include <nx-X11/Xprotostr.h>

/*
Expand Down Expand Up @@ -92,7 +93,6 @@ typedef struct _GCFuncs {
void (* CopyClip)(
GCPtr /*pgcDst*/,
GCPtr /*pgcSrc*/);
DevUnion devPrivate;
} GCFuncs;

/*
Expand Down Expand Up @@ -265,8 +265,6 @@ typedef struct _GCOps {
#ifdef NEED_LINEHELPER
void (* LineHelper)();
#endif

DevUnion devPrivate;
} GCOps;

/* there is padding in the bit fields because the Sun compiler doesn't
Expand Down Expand Up @@ -312,7 +310,7 @@ typedef struct _GC {
unsigned long serialNumber;
GCFuncs *funcs;
GCOps *ops;
DevUnion *devPrivates;
PrivateRec *devPrivates;
/*
* The following were moved here from private storage to allow device-
* independent access to them from screen wrappers.
Expand Down
4 changes: 0 additions & 4 deletions nx-X11/programs/Xserver/include/input.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,6 @@ typedef struct {
unsigned char id;
} LedCtrl;

extern int AllocateDevicePrivateIndex(void);
extern Bool AllocateDevicePrivate(DeviceIntPtr device, int index);
extern void ResetDevicePrivateIndex(void);

extern KeybdCtrl defaultKeyboardControl;
extern PtrCtrl defaultPointerControl;

Expand Down
2 changes: 1 addition & 1 deletion nx-X11/programs/Xserver/include/inputstr.h
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ typedef struct _DeviceIntRec {
#ifdef XKB
struct _XkbInterest * xkb_interest;
#endif
DevUnion *devPrivates;
PrivateRec *devPrivates;
int nPrivates;
DeviceUnwrapProc unwrapProc;
} DeviceIntRec;
Expand Down
18 changes: 4 additions & 14 deletions nx-X11/programs/Xserver/include/miscstruct.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,10 @@ typedef xPoint DDXPointRec;
typedef struct pixman_box16 BoxRec;

typedef union _DevUnion {
void * ptr;
long val;
unsigned long uval;
RegionPtr (*fptr)(
DrawablePtr /* pSrcDrawable */,
DrawablePtr /* pDstDrawable */,
GCPtr /* pGC */,
int /* srcx */,
int /* srcy */,
int /* width */,
int /* height */,
int /* dstx */,
int /* dsty */,
unsigned long /* bitPlane */);
void *ptr;
long val;
unsigned long uval;
void *(*fptr) (void);
} DevUnion;

#endif /* MISCSTRUCT_H */
5 changes: 2 additions & 3 deletions nx-X11/programs/Xserver/include/pixmapstr.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ SOFTWARE.
#include "pixmap.h"
#include "screenint.h"
#include "regionstr.h"
#include "privates.h"

/*
* The padN members are unfortunate ABI BC. See fdo bug #6924.
Expand Down Expand Up @@ -82,12 +83,10 @@ typedef struct _Drawable {

typedef struct _Pixmap {
DrawableRec drawable;
PrivateRec *devPrivates;
int refcnt;
int devKind;
DevUnion devPrivate;
#ifdef PIXPRIV
DevUnion *devPrivates; /* real devPrivates like gcs & windows */
#endif
#ifdef COMPOSITE
short screen_x;
short screen_y;
Expand Down
Loading