Merge branch 'mi-revert' into 'master'

Revert all commits that have broken libvnc.so

Closes #1855

See merge request xorg/xserver!2102
This commit is contained in:
kohnish 2025-12-19 14:37:27 +00:00
commit a6500098ef
117 changed files with 656 additions and 599 deletions

View file

@ -30,14 +30,12 @@ from The Open Group.
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include <X11/extensions/bigreqsproto.h>
#include "dix/dix_priv.h"
#include "misc.h" #include "misc.h"
#include "os.h" #include "os.h"
#include "dixstruct.h" #include "dixstruct.h"
#include "dix_priv.h"
#include "extnsionst.h" #include "extnsionst.h"
#include <X11/extensions/bigreqsproto.h>
#include "opaque.h" #include "opaque.h"
#include "extinit_priv.h" #include "extinit_priv.h"

View file

@ -46,6 +46,7 @@ in this Software without prior written authorization from the X Consortium.
#include "extnsionst.h" #include "extnsionst.h"
#include "dixstruct.h" #include "dixstruct.h"
#include "resource.h" #include "resource.h"
#include "opaque.h"
#include "gcstruct.h" #include "gcstruct.h"
#include "cursorstr.h" #include "cursorstr.h"
#include "colormapst.h" #include "colormapst.h"

View file

@ -67,6 +67,7 @@ PERFORMANCE OF THIS SOFTWARE.
#include "dixstruct.h" #include "dixstruct.h"
#include "pixmapstr.h" #include "pixmapstr.h"
#include "resource.h" #include "resource.h"
#include "opaque.h"
#include "syncsrv.h" #include "syncsrv.h"
#include "syncsdk.h" #include "syncsdk.h"
#include "protocol-versions.h" #include "protocol-versions.h"

View file

@ -55,29 +55,31 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#define XACE_KEY_AVAIL 14 #define XACE_KEY_AVAIL 14
#define XACE_NUM_HOOKS 15 #define XACE_NUM_HOOKS 15
extern CallbackListPtr XaceHooks[XACE_NUM_HOOKS]; extern _X_EXPORT CallbackListPtr XaceHooks[XACE_NUM_HOOKS];
/* Entry point for hook functions. Called by Xserver. /* Entry point for hook functions. Called by Xserver.
* Required by libdbe and libextmod * Required by libdbe and libextmod
*/ */
/* needs to be exported for in-tree modsetting driver, but not part extern _X_EXPORT int XaceHook(int /*hook */ ,
of public API for external modules */ ... /*appropriate args for hook */
_X_EXPORT int XaceHook(int hook, ... /* appropriate args for hook */); );
/* determine whether any callbacks are present for the XACE hook */ /* determine whether any callbacks are present for the XACE hook */
int XaceHookIsSet(int hook); extern _X_EXPORT int XaceHookIsSet(int hook);
/* Special-cased hook functions /* Special-cased hook functions
*/ */
int XaceHookDispatch0(ClientPtr ptr, int major); int XaceHookDispatch0(ClientPtr client, int major);
#define XaceHookDispatch(c, m) \ #define XaceHookDispatch(c, m) \
((XaceHooks[XACE_EXT_DISPATCH] && (m) >= EXTENSION_BASE) ? \ ((XaceHooks[XACE_EXT_DISPATCH] && (m) >= EXTENSION_BASE) ? \
XaceHookDispatch0((c), (m)) : \ XaceHookDispatch0((c), (m)) : \
Success) Success)
int XaceHookPropertyAccess(ClientPtr ptr, WindowPtr pWin, PropertyPtr *ppProp, extern _X_EXPORT int XaceHookPropertyAccess(ClientPtr ptr, WindowPtr pWin,
Mask access_mode); PropertyPtr *ppProp,
int XaceHookSelectionAccess(ClientPtr ptr, Selection ** ppSel, Mask access_mode); Mask access_mode);
extern _X_EXPORT int XaceHookSelectionAccess(ClientPtr ptr, Selection ** ppSel,
Mask access_mode);
/* needs to be exported for in-tree modsetting, but not part of public API */ /* needs to be exported for in-tree modsetting, but not part of public API */
_X_EXPORT int XaceHookResourceAccess(ClientPtr client, XID id, RESTYPE rtype, void *res, _X_EXPORT int XaceHookResourceAccess(ClientPtr client, XID id, RESTYPE rtype, void *res,
@ -109,18 +111,18 @@ int XaceHookKeyAvail(xEventPtr ev, DeviceIntPtr dev, int count);
/* XTrans wrappers for use by security modules /* XTrans wrappers for use by security modules
*/ */
int XaceGetConnectionNumber(ClientPtr ptr); extern _X_EXPORT int XaceGetConnectionNumber(ClientPtr ptr);
int XaceIsLocal(ClientPtr ptr); extern _X_EXPORT int XaceIsLocal(ClientPtr ptr);
/* From the original Security extension... /* From the original Security extension...
*/ */
void XaceCensorImage(ClientPtr client, extern _X_EXPORT void XaceCensorImage(ClientPtr client,
RegionPtr pVisibleRegion, RegionPtr pVisibleRegion,
long widthBytesLine, long widthBytesLine,
DrawablePtr pDraw, DrawablePtr pDraw,
int x, int y, int w, int h, int x, int y, int w, int h,
unsigned int format, char *pBuf); unsigned int format, char *pBuf);
#else /* XACE */ #else /* XACE */

View file

@ -38,7 +38,6 @@
#include "dix/input_priv.h" #include "dix/input_priv.h"
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "dix/exevents_priv.h" #include "dix/exevents_priv.h"
#include "mi/mi_priv.h"
#include "mi/mipointer_priv.h" #include "mi/mipointer_priv.h"
#include "os/client_priv.h" #include "os/client_priv.h"
#include "os/osdep.h" #include "os/osdep.h"
@ -52,6 +51,7 @@
#include "scrnintstr.h" #include "scrnintstr.h"
#include "dixevents.h" #include "dixevents.h"
#include "sleepuntil.h" #include "sleepuntil.h"
#include "mi.h"
#include "xkbsrv.h" #include "xkbsrv.h"
#include "xkbstr.h" #include "xkbstr.h"
#include "exglobals.h" #include "exglobals.h"

View file

@ -60,6 +60,7 @@ SOFTWARE.
#include "dix/input_priv.h" #include "dix/input_priv.h"
#include "exglobals.h" #include "exglobals.h"
#include "allowev.h" #include "allowev.h"
#include "dixevents.h" #include "dixevents.h"

View file

@ -93,7 +93,6 @@ SOFTWARE.
#include "dix/eventconvert.h" #include "dix/eventconvert.h"
#include "dix/exevents_priv.h" #include "dix/exevents_priv.h"
#include "dix/input_priv.h" #include "dix/input_priv.h"
#include "mi/mi_priv.h"
#include "inputstr.h" #include "inputstr.h"
#include "windowstr.h" #include "windowstr.h"
@ -109,6 +108,7 @@ SOFTWARE.
#include "xiquerydevice.h" /* For List*Info */ #include "xiquerydevice.h" /* For List*Info */
#include "eventstr.h" #include "eventstr.h"
#include "inpututils.h" #include "inpututils.h"
#include "mi.h"
#include "xkbsrv.h" #include "xkbsrv.h"
#define WID(w) ((w) ? ((w)->drawable.id) : 0) #define WID(w) ((w) ? ((w)->drawable.id) : 0)

View file

@ -53,6 +53,9 @@ SOFTWARE.
#include <dix-config.h> #include <dix-config.h>
#include "inputstr.h"
#include "gcstruct.h" /* pointer for extnsionst.h */
#include "extnsionst.h" /* extension entry */
#include <X11/extensions/XI.h> #include <X11/extensions/XI.h>
#include <X11/extensions/XIproto.h> #include <X11/extensions/XIproto.h>
#include <X11/extensions/XI2proto.h> #include <X11/extensions/XI2proto.h>
@ -65,6 +68,7 @@ SOFTWARE.
#include "gcstruct.h" /* pointer for extnsionst.h */ #include "gcstruct.h" /* pointer for extnsionst.h */
#include "extnsionst.h" /* extension entry */ #include "extnsionst.h" /* extension entry */
#include "geext.h" /* extension interfaces for ge */ #include "geext.h" /* extension interfaces for ge */
#include "dixevents.h" #include "dixevents.h"
#include "extinit_priv.h" #include "extinit_priv.h"
#include "exglobals.h" #include "exglobals.h"

View file

@ -52,15 +52,13 @@ SOFTWARE.
#include <dix-config.h> #include <dix-config.h>
#include <X11/extensions/XI.h>
#include <X11/extensions/XIproto.h>
#include "dix/dix_priv.h"
#include "inputstr.h" /* DeviceIntPtr */ #include "inputstr.h" /* DeviceIntPtr */
#include "windowstr.h" /* window structure */ #include "windowstr.h" /* window structure */
#include <X11/extensions/XI.h>
#include <X11/extensions/XIproto.h>
#include "exglobals.h" #include "exglobals.h"
#include "dixevents.h" /* GrabDevice */ #include "dixevents.h" /* GrabDevice */
#include "grabdev.h" #include "grabdev.h"
extern XExtEventInfo EventInfo[]; extern XExtEventInfo EventInfo[];

View file

@ -52,16 +52,15 @@ SOFTWARE.
#include <dix-config.h> #include <dix-config.h>
#include "windowstr.h" /* focus struct */
#include "inputstr.h" /* DeviceIntPtr */
#include <X11/extensions/XI.h> #include <X11/extensions/XI.h>
#include <X11/extensions/XIproto.h> #include <X11/extensions/XIproto.h>
#include "windowstr.h" /* focus struct */
#include "inputstr.h" /* DeviceIntPtr */
#include "dix/dix_priv.h"
#include "dixevents.h" #include "dixevents.h"
#include "exglobals.h" #include "exglobals.h"
#include "setfocus.h" #include "setfocus.h"
/*********************************************************************** /***********************************************************************

View file

@ -45,7 +45,6 @@
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "dix/input_priv.h" #include "dix/input_priv.h"
#include "mi/mi_priv.h"
#include "xibarriers.h" #include "xibarriers.h"
#include "scrnintstr.h" #include "scrnintstr.h"
@ -59,6 +58,7 @@
#include "list.h" #include "list.h"
#include "exglobals.h" #include "exglobals.h"
#include "eventstr.h" #include "eventstr.h"
#include "mi.h"
RESTYPE PointerBarrierType; RESTYPE PointerBarrierType;

View file

@ -45,12 +45,17 @@
#include "inputstr.h" /* DeviceIntPtr */ #include "inputstr.h" /* DeviceIntPtr */
#include "windowstr.h" /* window structure */ #include "windowstr.h" /* window structure */
#include "scrnintstr.h" /* screen structure */ #include "scrnintstr.h" /* screen structure */
#include <X11/extensions/XI.h>
#include <X11/extensions/XI2proto.h>
#include <X11/extensions/geproto.h>
#include "extnsionst.h" #include "extnsionst.h"
#include "exglobals.h" #include "exglobals.h"
#include "misc.h" #include "misc.h"
#include "xace.h" #include "xace.h"
#include "xiquerydevice.h" /* for GetDeviceUse */ #include "xiquerydevice.h" /* for GetDeviceUse */
#include "xkbsrv.h" #include "xkbsrv.h"
#include "xichangehierarchy.h" #include "xichangehierarchy.h"
#include "xibarriers.h" #include "xibarriers.h"

View file

@ -31,6 +31,8 @@
#include <dix-config.h> #include <dix-config.h>
#include "inputstr.h" /* DeviceIntPtr */
#include "windowstr.h" /* window structure */
#include <X11/extensions/XI2.h> #include <X11/extensions/XI2.h>
#include <X11/extensions/XI2proto.h> #include <X11/extensions/XI2proto.h>

View file

@ -30,13 +30,11 @@
#include <dix-config.h> #include <dix-config.h>
#include "inputstr.h" /* DeviceIntPtr */
#include "windowstr.h" /* window structure */
#include <X11/extensions/XI2.h> #include <X11/extensions/XI2.h>
#include <X11/extensions/XI2proto.h> #include <X11/extensions/XI2proto.h>
#include "dix/dix_priv.h"
#include "inputstr.h" /* DeviceIntPtr */
#include "windowstr.h" /* window structure */
#include "exglobals.h" /* BadDevice */ #include "exglobals.h" /* BadDevice */
#include "xisetdevfocus.h" #include "xisetdevfocus.h"

View file

@ -8,7 +8,6 @@
#include <X11/Xdefs.h> #include <X11/Xdefs.h>
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include "dix/screenint_priv.h"
#include "include/colormap.h" #include "include/colormap.h"
#include "include/dix.h" #include "include/dix.h"
#include "include/window.h" #include "include/window.h"

View file

@ -48,9 +48,6 @@ SOFTWARE.
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xmd.h> #include <X11/Xmd.h>
#include "dix/dix_priv.h"
#include "servermd.h" #include "servermd.h"
#include "scrnintstr.h" #include "scrnintstr.h"
#include "dixstruct.h" #include "dixstruct.h"

View file

@ -60,7 +60,6 @@ SOFTWARE.
#include "dix/exevents_priv.h" #include "dix/exevents_priv.h"
#include "dix/input_priv.h" #include "dix/input_priv.h"
#include "dix/ptrveloc_priv.h" #include "dix/ptrveloc_priv.h"
#include "mi/mi_priv.h"
#include "os/osdep.h" #include "os/osdep.h"
#include "xkb/xkbsrv_priv.h" #include "xkb/xkbsrv_priv.h"
@ -74,6 +73,7 @@ SOFTWARE.
#include "ptrveloc.h" #include "ptrveloc.h"
#include "privates.h" #include "privates.h"
#include "xace.h" #include "xace.h"
#include "mi.h"
#include "dispatch.h" #include "dispatch.h"
#include "swaprep.h" #include "swaprep.h"
#include "dixevents.h" #include "dixevents.h"

View file

@ -100,6 +100,9 @@ Equipment Corporation.
#include <version-config.h> #include <version-config.h>
#include <stddef.h> #include <stddef.h>
#include "dix/registry_priv.h"
#include "windowstr.h"
#include <X11/fonts/fontstruct.h> #include <X11/fonts/fontstruct.h>
#include <X11/fonts/libxfont2.h> #include <X11/fonts/libxfont2.h>
@ -108,16 +111,15 @@ Equipment Corporation.
#include "dix/input_priv.h" #include "dix/input_priv.h"
#include "dix/gc_priv.h" #include "dix/gc_priv.h"
#include "dix/registry_priv.h" #include "dix/registry_priv.h"
#include "dix/screenint_priv.h"
#include "include/resource.h" #include "include/resource.h"
#include "os/auth.h" #include "os/auth.h"
#include "os/client_priv.h" #include "os/client_priv.h"
#include "os/ddx_priv.h"
#include "os/osdep.h" #include "os/osdep.h"
#include "os/screensaver.h" #include "os/screensaver.h"
#include "windowstr.h" #include "windowstr.h"
#include "dixfontstr.h" #include "dixfontstr.h"
#include "dix_priv.h"
#include "gcstruct.h" #include "gcstruct.h"
#include "selection.h" #include "selection.h"
#include "colormapst.h" #include "colormapst.h"
@ -4147,4 +4149,3 @@ DetachOffloadGPU(ScreenPtr secondary)
assert(secondary->is_offload_secondary); assert(secondary->is_offload_secondary);
secondary->is_offload_secondary = FALSE; secondary->is_offload_secondary = FALSE;
} }

View file

@ -7,6 +7,7 @@
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "include/dix.h" #include "include/dix.h"
#include "include/screenint.h" #include "include/screenint.h"
#include "opaque.h"
const char *display = "0"; const char *display = "0";
int displayfd = -1; int displayfd = -1;

View file

@ -15,35 +15,18 @@
#include <X11/Xdefs.h> #include <X11/Xdefs.h>
#include <X11/Xfuncproto.h> #include <X11/Xfuncproto.h>
#include <X11/extensions/XI.h>
#include "include/callback.h"
#include "include/cursor.h"
#include "include/dix.h" #include "include/dix.h"
#include "include/events.h"
#include "include/gc.h" #include "include/gc.h"
#include "include/input.h"
#include "include/window.h" #include "include/window.h"
/* server setting: maximum size for big requests */ /* server setting: maximum size for big requests */
#define MAX_BIG_REQUEST_SIZE 4194303 #define MAX_BIG_REQUEST_SIZE 4194303
extern long maxBigRequestSize; extern long maxBigRequestSize;
extern char dispatchExceptionAtReset;
extern int terminateDelay;
extern Bool touchEmulatePointer;
extern HWEventQueuePtr checkForInput[2];
/* -retro mode */ /* -retro mode */
extern Bool party_like_its_1989; extern Bool party_like_its_1989;
static inline _X_NOTSAN Bool
InputCheckPending(void)
{
return (*checkForInput[0] != *checkForInput[1]);
}
void ClearWorkQueue(void); void ClearWorkQueue(void);
void ProcessWorkQueue(void); void ProcessWorkQueue(void);
void ProcessWorkQueueZombies(void); void ProcessWorkQueueZombies(void);
@ -86,170 +69,4 @@ int dixLookupClient(ClientPtr *result,
ClientPtr client, ClientPtr client,
Mask access_mode); Mask access_mode);
Bool CreateConnectionBlock(void);
void EnableLimitedSchedulingLatency(void);
void DisableLimitedSchedulingLatency(void);
int dix_main(int argc, char *argv[], char *envp[]);
void SetMaskForEvent(int deviceid, Mask mask, int event);
void EnqueueEvent(InternalEvent *ev, DeviceIntPtr device);
void PlayReleasedEvents(void);
void ActivatePointerGrab(DeviceIntPtr mouse,
GrabPtr grab,
TimeStamp time,
Bool autoGrab);
void DeactivatePointerGrab(DeviceIntPtr mouse);
void ActivateKeyboardGrab(DeviceIntPtr keybd,
GrabPtr grab,
TimeStamp time,
Bool passive);
void DeactivateKeyboardGrab(DeviceIntPtr keybd);
BOOL ActivateFocusInGrab(DeviceIntPtr dev, WindowPtr old, WindowPtr win);
void AllowSome(ClientPtr client,
TimeStamp time,
DeviceIntPtr thisDev,
int newState);
void ReleaseActiveGrabs(ClientPtr client);
GrabPtr CheckPassiveGrabsOnWindow(WindowPtr pWin,
DeviceIntPtr device,
InternalEvent *event,
BOOL checkCore,
BOOL activate);
int DeliverDeviceEvents(WindowPtr pWin,
InternalEvent *event,
GrabPtr grab,
WindowPtr stopAt,
DeviceIntPtr dev);
int DeliverOneGrabbedEvent(InternalEvent *event,
DeviceIntPtr dev,
enum InputLevel level);
void DeliverTouchEvents(DeviceIntPtr dev,
TouchPointInfoPtr ti,
InternalEvent *ev,
XID resource);
Bool DeliverGestureEventToOwner(DeviceIntPtr dev,
GestureInfoPtr gi,
InternalEvent *ev);
void InitializeSprite(DeviceIntPtr pDev, WindowPtr pWin);
void FreeSprite(DeviceIntPtr pDev);
void UpdateSpriteForScreen(DeviceIntPtr pDev, ScreenPtr pScreen);
Bool CheckDeviceGrabs(DeviceIntPtr device,
InternalEvent *event,
WindowPtr ancestor);
void DeliverFocusedEvent(DeviceIntPtr keybd,
InternalEvent *event,
WindowPtr window);
int DeliverGrabbedEvent(InternalEvent *event,
DeviceIntPtr thisDev,
Bool deactivateGrab);
void FreezeThisEventIfNeededForSyncGrab(DeviceIntPtr thisDev,
InternalEvent *event);
void FixKeyState(DeviceEvent *event, DeviceIntPtr keybd);
void RecalculateDeliverableEvents(WindowPtr pWin);
void DoFocusEvents(DeviceIntPtr dev,
WindowPtr fromWin,
WindowPtr toWin,
int mode);
int SetInputFocus(ClientPtr client,
DeviceIntPtr dev,
Window focusID,
CARD8 revertTo,
Time ctime,
Bool followOK);
int GrabDevice(ClientPtr client,
DeviceIntPtr dev,
unsigned this_mode,
unsigned other_mode,
Window grabWindow,
unsigned ownerEvents,
Time ctime,
GrabMask *mask,
int grabtype,
Cursor curs,
Window confineToWin,
CARD8 *status);
void InitEvents(void);
void CloseDownEvents(void);
void DeleteWindowFromAnyEvents(WindowPtr pWin, Bool freeResources);
Mask EventMaskForClient(WindowPtr pWin, ClientPtr client);
Bool CheckMotion(DeviceEvent *ev, DeviceIntPtr pDev);
int SetClientPointer(ClientPtr client, DeviceIntPtr device);
Bool IsInterferingGrab(ClientPtr client, DeviceIntPtr dev, xEvent *events);
int XItoCoreType(int xi_type);
Bool DevHasCursor(DeviceIntPtr pDev);
Bool IsPointerEvent(InternalEvent *event);
Bool IsTouchEvent(InternalEvent *event);
Bool IsGestureEvent(InternalEvent *event);
Bool IsGestureBeginEvent(InternalEvent *event);
Bool IsGestureEndEvent(InternalEvent *event);
void CopyKeyClass(DeviceIntPtr device, DeviceIntPtr master);
int CorePointerProc(DeviceIntPtr dev, int what);
int CoreKeyboardProc(DeviceIntPtr dev, int what);
extern Bool whiteRoot;
extern volatile char isItTimeToYield;
/* bit values for dispatchException */
#define DE_RESET 1
#define DE_TERMINATE 2
#define DE_PRIORITYCHANGE 4 /* set when a client's priority changes */
extern volatile char dispatchException;
extern int ScreenSaverBlanking;
extern int ScreenSaverAllowExposures;
extern int defaultScreenSaverBlanking;
extern int defaultScreenSaverAllowExposures;
extern const char *display;
extern int displayfd;
extern Bool explicit_display;
extern Bool disableBackingStore;
extern Bool enableBackingStore;
#endif /* _XSERVER_DIX_PRIV_H */ #endif /* _XSERVER_DIX_PRIV_H */

View file

@ -31,7 +31,6 @@
#include <X11/extensions/XIproto.h> #include <X11/extensions/XIproto.h>
#include <X11/extensions/XI2proto.h> #include <X11/extensions/XI2proto.h>
#include "dix/dix_priv.h"
#include "dix/eventconvert.h" #include "dix/eventconvert.h"
#include "dix/input_priv.h" #include "dix/input_priv.h"

View file

@ -37,7 +37,6 @@
#include <X11/extensions/XI.h> #include <X11/extensions/XI.h>
#include <X11/extensions/XI2.h> #include <X11/extensions/XI2.h>
#include "dix/dix_priv.h"
#include "dix/eventconvert.h" #include "dix/eventconvert.h"
#include "dix/exevents_priv.h" #include "dix/exevents_priv.h"

View file

@ -29,15 +29,16 @@
#include "dix/dixgrabs_priv.h" #include "dix/dixgrabs_priv.h"
#include "dix/eventconvert.h" #include "dix/eventconvert.h"
#include "dix/input_priv.h" #include "dix/input_priv.h"
#include "mi/mi_priv.h"
#include "inputstr.h" #include "inputstr.h"
#include "scrnintstr.h" #include "scrnintstr.h"
#include "eventstr.h" #include "eventstr.h"
#include "exevents.h" #include "exevents.h"
#include "exglobals.h" #include "exglobals.h"
#include "inpututils.h" #include "inpututils.h"
#include "windowstr.h" #include "windowstr.h"
#include "mi.h"
#define GESTURE_HISTORY_SIZE 100 #define GESTURE_HISTORY_SIZE 100

View file

@ -41,7 +41,6 @@
#include <X11/extensions/XKBproto.h> #include <X11/extensions/XKBproto.h>
#include "dix/input_priv.h" #include "dix/input_priv.h"
#include "mi/mi_priv.h"
#include "misc.h" #include "misc.h"
#include "resource.h" #include "resource.h"
@ -55,6 +54,7 @@
#include "eventstr.h" #include "eventstr.h"
#include "eventconvert.h" #include "eventconvert.h"
#include "inpututils.h" #include "inpututils.h"
#include "mi.h"
#include "windowstr.h" #include "windowstr.h"
#include "xkbsrv.h" #include "xkbsrv.h"

View file

@ -48,15 +48,13 @@ SOFTWARE.
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xmd.h> #include <X11/Xmd.h>
#include "dix/dix_priv.h"
#include "misc.h" #include "misc.h"
#include "windowstr.h" #include "windowstr.h"
#include "scrnintstr.h" #include "scrnintstr.h"
#include "input.h" #include "input.h"
#include "dixfont.h" #include "dixfont.h"
#include "dixstruct.h" #include "dixstruct.h"
#include "dix_priv.h"
#include "os.h" #include "os.h"
ScreenInfo screenInfo; ScreenInfo screenInfo;

View file

@ -93,8 +93,6 @@ Equipment Corporation.
#include "os/audit.h" #include "os/audit.h"
#include "os/auth.h" #include "os/auth.h"
#include "os/client_priv.h" #include "os/client_priv.h"
#include "os/cmdline.h"
#include "os/ddx_priv.h"
#include "os/osdep.h" #include "os/osdep.h"
#include "os/screensaver.h" #include "os/screensaver.h"
@ -110,6 +108,10 @@ Equipment Corporation.
#include "colormapst.h" #include "colormapst.h"
#include "cursorstr.h" #include "cursorstr.h"
#include "selection.h" #include "selection.h"
#include <X11/fonts/font.h>
#include <X11/fonts/fontstruct.h>
#include <X11/fonts/libxfont2.h>
#include "opaque.h"
#include "servermd.h" #include "servermd.h"
#include "dixfont.h" #include "dixfont.h"
#include "extnsionst.h" #include "extnsionst.h"

View file

@ -29,11 +29,8 @@ from The Open Group.
#include <dix-config.h> #include <dix-config.h>
#include <X11/X.h> #include <X11/X.h>
#include <X11/extensions/render.h>
#include "mi/mi_priv.h"
#include "scrnintstr.h" #include "scrnintstr.h"
#include "mi.h"
#include "misc.h" #include "misc.h"
#include "os.h" #include "os.h"
#include "windowstr.h" #include "windowstr.h"
@ -41,6 +38,7 @@ from The Open Group.
#include "dixstruct.h" #include "dixstruct.h"
#include "gcstruct.h" #include "gcstruct.h"
#include "servermd.h" #include "servermd.h"
#include "X11/extensions/render.h"
#include "picturestr.h" #include "picturestr.h"
#include "randrstr.h" #include "randrstr.h"
/* /*

View file

@ -1,26 +0,0 @@
/* SPDX-License-Identifier: MIT OR X11
*
* Copyright © 2024 Enrico Weigelt, metux IT consult <info@metux.net>
* Copyright © 1987, 1998 The Open Group
*/
#ifndef _XSERVER_DIX_SCREENINT_PRIV_H
#define _XSERVER_DIX_SCREENINT_PRIV_H
#include <X11/Xdefs.h>
#include "screenint.h"
typedef Bool (*ScreenInitProcPtr)(ScreenPtr pScreen, int argc, char **argv);
int AddScreen(ScreenInitProcPtr pfnInit, int argc, char **argv);
int AddGPUScreen(ScreenInitProcPtr pfnInit, int argc, char **argv);
void RemoveGPUScreen(ScreenPtr pScreen);
void AttachUnboundGPU(ScreenPtr pScreen, ScreenPtr newScreen);
void DetachUnboundGPU(ScreenPtr unbound);
void AttachOffloadGPU(ScreenPtr pScreen, ScreenPtr newScreen);
void DetachOffloadGPU(ScreenPtr slave);
#endif /* _XSERVER_DIX_SCREENINT_PRIV_H */

View file

@ -31,7 +31,6 @@
#include "dix/eventconvert.h" #include "dix/eventconvert.h"
#include "dix/exevents_priv.h" #include "dix/exevents_priv.h"
#include "dix/input_priv.h" #include "dix/input_priv.h"
#include "mi/mi_priv.h"
#include "inputstr.h" #include "inputstr.h"
#include "scrnintstr.h" #include "scrnintstr.h"
@ -39,6 +38,7 @@
#include "exglobals.h" #include "exglobals.h"
#include "inpututils.h" #include "inpututils.h"
#include "windowstr.h" #include "windowstr.h"
#include "mi.h"
#define TOUCH_HISTORY_SIZE 100 #define TOUCH_HISTORY_SIZE 100

View file

@ -103,7 +103,6 @@ Equipment Corporation.
#include "dix/exevents_priv.h" #include "dix/exevents_priv.h"
#include "dix/input_priv.h" #include "dix/input_priv.h"
#include "dix/property_priv.h" #include "dix/property_priv.h"
#include "mi/mi_priv.h" /* miPaintWindow */
#include "os/auth.h" #include "os/auth.h"
#include "os/client_priv.h" #include "os/client_priv.h"
#include "os/screensaver.h" #include "os/screensaver.h"
@ -129,6 +128,7 @@ Equipment Corporation.
#endif /* XINERAMA */ #endif /* XINERAMA */
#include "dixevents.h" #include "dixevents.h"
#include "globals.h" #include "globals.h"
#include "mi.h" /* miPaintWindow */
#ifdef COMPOSITE #ifdef COMPOSITE
#include "compint.h" #include "compint.h"
#endif #endif

View file

@ -26,8 +26,6 @@
#include <stdlib.h> #include <stdlib.h>
#include "mi/mi_priv.h"
#include "fb.h" #include "fb.h"
#include "fboverlay.h" #include "fboverlay.h"
#include "shmint.h" #include "shmint.h"

View file

@ -40,8 +40,6 @@
#include <GL/glxproto.h> #include <GL/glxproto.h>
#include "vndservervendor.h" #include "vndservervendor.h"
#include "dix/dix_priv.h"
ExtensionEntry *GlxExtensionEntry; ExtensionEntry *GlxExtensionEntry;
int GlxErrorBase = 0; int GlxErrorBase = 0;
static CallbackListRec vndInitCallbackList; static CallbackListRec vndInitCallbackList;

View file

@ -30,6 +30,7 @@
#include "mi/mipointer_priv.h" #include "mi/mipointer_priv.h"
#include "os/client_priv.h" #include "os/client_priv.h"
#include "os/osdep.h"
#include "ephyr.h" #include "ephyr.h"
#include "inputstr.h" #include "inputstr.h"

View file

@ -25,9 +25,7 @@
#include <dix-config.h> #include <dix-config.h>
#include "dix/dix_priv.h" #include "os/osdep.h"
#include "os/cmdline.h"
#include "os/ddx_priv.h"
#include "ephyr.h" #include "ephyr.h"
#include "ephyrlog.h" #include "ephyrlog.h"

View file

@ -23,15 +23,11 @@
#include <dix-config.h> #include <dix-config.h>
#include "config/hotplug_priv.h" #include "config/hotplug_priv.h"
#include "dix/screenint_priv.h"
#include "os/cmdline.h"
#include "os/ddx_priv.h"
#include "kdrive.h" #include "kdrive.h"
#include <mivalidate.h> #include <mivalidate.h>
#include <dixstruct.h> #include <dixstruct.h>
#include "privates.h" #include "privates.h"
#ifdef RANDR #ifdef RANDR
#include <randrstr.h> #include <randrstr.h>
#endif #endif

View file

@ -41,7 +41,6 @@
#include "dix/input_priv.h" #include "dix/input_priv.h"
#include "mi/mi_priv.h" #include "mi/mi_priv.h"
#include "mi/mipointer_priv.h" #include "mi/mipointer_priv.h"
#include "os/cmdline.h"
#include "xkbsrv.h" #include "xkbsrv.h"
#include "XIstubs.h" /* even though we don't use stubs. cute, no? */ #include "XIstubs.h" /* even though we don't use stubs. cute, no? */
@ -53,6 +52,10 @@
#include "inpututils.h" #include "inpututils.h"
#include "optionstr.h" #include "optionstr.h"
#if defined(CONFIG_UDEV) || defined(CONFIG_HAL)
#include <hotplug.h>
#endif
#define AtomFromName(x) MakeAtom(x, strlen(x), 1) #define AtomFromName(x) MakeAtom(x, strlen(x), 1)
struct KdConfigDevice { struct KdConfigDevice {

View file

@ -29,16 +29,14 @@ from The Open Group.
#include <dix-config.h> #include <dix-config.h>
#include <X11/X.h> #include <X11/X.h>
#include "mi.h"
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include <X11/Xos.h>
#include <X11/keysym.h>
#include "mi/mi_priv.h"
#include "scrnintstr.h" #include "scrnintstr.h"
#include "inputstr.h" #include "inputstr.h"
#include <X11/Xos.h>
#include "mipointer.h" #include "mipointer.h"
#include "xkbsrv.h" #include "xkbsrv.h"
#include <X11/keysym.h>
#include "xserver-properties.h" #include "xserver-properties.h"
#include "exevents.h" #include "exevents.h"
#include "extinit.h" #include "extinit.h"

View file

@ -38,10 +38,7 @@ from The Open Group.
#include "dix/colormap_priv.h" #include "dix/colormap_priv.h"
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "dix/screenint_priv.h" #include "os/osdep.h"
#include "mi/mipointer_priv.h"
#include "os/cmdline.h"
#include "os/ddx_priv.h"
#include "scrnintstr.h" #include "scrnintstr.h"
#include "servermd.h" #include "servermd.h"

View file

@ -29,7 +29,7 @@
#include <errno.h> #include <errno.h>
#include "os/ddx_priv.h" #include "os/osdep.h"
#include "xf86.h" #include "xf86.h"
#include "xf86Config.h" #include "xf86Config.h"

View file

@ -34,7 +34,6 @@
#include <X11/extensions/XIproto.h> #include <X11/extensions/XIproto.h>
#include "dix/input_priv.h" #include "dix/input_priv.h"
#include "mi/mipointer_priv.h"
#include "cursor.h" #include "cursor.h"
#include "mipointer.h" #include "mipointer.h"

View file

@ -41,22 +41,20 @@
#include <xorg-config.h> #include <xorg-config.h>
#endif #endif
#include <string.h>
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include <X11/extensions/xf86dgaproto.h>
#include "dix/colormap_priv.h" #include "dix/colormap_priv.h"
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "dix/eventconvert.h" #include "dix/eventconvert.h"
#include "dix/exevents_priv.h" #include "dix/exevents_priv.h"
#include "mi/mi_priv.h"
#include "xf86.h" #include "xf86.h"
#include "xf86str.h" #include "xf86str.h"
#include "xf86Priv.h" #include "xf86Priv.h"
#include "dgaproc.h" #include "dgaproc.h"
#include "dgaproc_priv.h" #include "dgaproc_priv.h"
#include <X11/extensions/xf86dgaproto.h>
#include "colormapst.h" #include "colormapst.h"
#include "pixmapstr.h" #include "pixmapstr.h"
#include "inputstr.h" #include "inputstr.h"
@ -68,6 +66,9 @@
#include "exglobals.h" #include "exglobals.h"
#include "eventstr.h" #include "eventstr.h"
#include "xf86Extensions.h" #include "xf86Extensions.h"
#include "mi.h"
#include "misc.h" #include "misc.h"
#include "dixstruct.h" #include "dixstruct.h"
#include "dixevents.h" #include "dixevents.h"
@ -78,6 +79,8 @@
#include "dgaproc.h" #include "dgaproc.h"
#include "protocol-versions.h" #include "protocol-versions.h"
#include <string.h>
#define DGA_PROTOCOL_OLD_SUPPORT 1 #define DGA_PROTOCOL_OLD_SUPPORT 1
static DevPrivateKeyRec DGAScreenKeyRec; static DevPrivateKeyRec DGAScreenKeyRec;

View file

@ -59,17 +59,15 @@
#include <X11/Xatom.h> #include <X11/Xatom.h>
#include <X11/extensions/XI.h> #include <X11/extensions/XI.h>
#include <X11/extensions/XIproto.h> #include <X11/extensions/XIproto.h>
#include <X11/keysym.h>
#include "dix/dix_priv.h"
#include "dix/input_priv.h" #include "dix/input_priv.h"
#include "mi/mi_priv.h"
#include "misc.h" #include "misc.h"
#include "xf86.h" #include "xf86.h"
#include "xf86Priv.h" #include "xf86Priv.h"
#include "xf86_os_support.h" #include "xf86_os_support.h"
#include "xf86_OSlib.h" #include "xf86_OSlib.h"
#include <X11/keysym.h>
#ifdef XFreeXDGA #ifdef XFreeXDGA
#include "dgaproc.h" #include "dgaproc.h"
@ -78,7 +76,9 @@
#include "inputstr.h" #include "inputstr.h"
#include "xf86Xinput.h" #include "xf86Xinput.h"
#include "mi.h"
#include "mipointer.h" #include "mipointer.h"
#include "xkbsrv.h" #include "xkbsrv.h"
#include "xkbstr.h" #include "xkbstr.h"

View file

@ -43,8 +43,8 @@
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "dix/input_priv.h" #include "dix/input_priv.h"
#include "mi/mi_priv.h"
#include "mi.h"
#include "os.h" #include "os.h"
#include "servermd.h" #include "servermd.h"
#include "pixmapstr.h" #include "pixmapstr.h"

View file

@ -54,14 +54,13 @@
#include "config/dbus-core.h" #include "config/dbus-core.h"
#include "config/hotplug_priv.h" #include "config/hotplug_priv.h"
#include "dix/input_priv.h" #include "dix/input_priv.h"
#include "dix/screenint_priv.h" #include "os/osdep.h"
#include "mi/mi_priv.h"
#include "os/cmdline.h"
#include "os/ddx_priv.h"
#include "input.h"
#include "servermd.h" #include "servermd.h"
#include "windowstr.h" #include "windowstr.h"
#include "scrnintstr.h" #include "scrnintstr.h"
#include "mi.h"
#include "systemd-logind.h" #include "systemd-logind.h"
#include "loaderProcs.h" #include "loaderProcs.h"

View file

@ -50,14 +50,12 @@
#include <xorg-config.h> #include <xorg-config.h>
#endif #endif
#include <string.h> /* InputClassMatches */
#include <X11/Xfuncproto.h> #include <X11/Xfuncproto.h>
#include <X11/Xmd.h> #include <X11/Xmd.h>
#include <X11/extensions/XI.h> #include <X11/extensions/XI.h>
#include <X11/extensions/XIproto.h> #include <X11/extensions/XIproto.h>
#include <X11/Xatom.h> #include <X11/Xatom.h>
#include "dix/dix_priv.h"
#include "dix/ptrveloc_priv.h" #include "dix/ptrveloc_priv.h"
#include "dix/input_priv.h" #include "dix/input_priv.h"
@ -71,12 +69,14 @@
#include "extinit.h" #include "extinit.h"
#include "loaderProcs.h" #include "loaderProcs.h"
#include "systemd-logind.h" #include "systemd-logind.h"
#include "exevents.h" /* AddInputDevice */ #include "exevents.h" /* AddInputDevice */
#include "exglobals.h" #include "exglobals.h"
#include "eventstr.h" #include "eventstr.h"
#include "inpututils.h" #include "inpututils.h"
#include "optionstr.h" #include "optionstr.h"
#include <string.h> /* InputClassMatches */
#ifdef HAVE_FNMATCH_H #ifdef HAVE_FNMATCH_H
#include <fnmatch.h> #include <fnmatch.h>
#endif #endif

View file

@ -36,11 +36,9 @@
#include "misc.h" #include "misc.h"
#include "dix/colormap_priv.h" #include "dix/colormap_priv.h"
#include "mi/mi_priv.h"
#include "misc.h"
#include "colormapst.h" #include "colormapst.h"
#include "scrnintstr.h" #include "scrnintstr.h"
#include "resource.h" #include "resource.h"
#include "xf86.h" #include "xf86.h"

View file

@ -38,7 +38,6 @@
#include <unistd.h> #include <unistd.h>
#include "config/hotplug_priv.h" #include "config/hotplug_priv.h"
#include "dix/screenint_priv.h"
#include "os.h" #include "os.h"
#include "systemd-logind.h" #include "systemd-logind.h"

View file

@ -27,7 +27,6 @@
#include <X11/extensions/render.h> #include <X11/extensions/render.h>
#include "dix/input_priv.h" #include "dix/input_priv.h"
#include "dix/screenint_priv.h"
#include "xf86.h" #include "xf86.h"
#include "os.h" #include "os.h"

View file

@ -28,19 +28,16 @@
#include <stddef.h> #include <stddef.h>
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#include <X11/Xatom.h> #include "mi.h"
#include <X11/extensions/render.h>
#include <X11/extensions/dpmsconst.h>
#include "dix/dix_priv.h"
#include "mi/mi_priv.h"
#include "xf86.h" #include "xf86.h"
#include "xf86DDC.h" #include "xf86DDC.h"
#include "windowstr.h" #include "windowstr.h"
#include "xf86Crtc.h" #include "xf86Crtc.h"
#include "xf86Modes.h" #include "xf86Modes.h"
#include "xf86RandR12.h" #include "xf86RandR12.h"
#include "X11/extensions/render.h"
#include "X11/extensions/dpmsconst.h"
#include "X11/Xatom.h"
void void
xf86RotateCrtcRedisplay(xf86CrtcPtr crtc, PixmapPtr dst_pixmap, xf86RotateCrtcRedisplay(xf86CrtcPtr crtc, PixmapPtr dst_pixmap,

View file

@ -29,8 +29,6 @@
#include <X11/X.h> #include <X11/X.h>
#include "os/cmdline.h"
#include "compiler.h" #include "compiler.h"
#include "xf86.h" #include "xf86.h"
#include "xf86Priv.h" #include "xf86Priv.h"

View file

@ -31,10 +31,9 @@
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xmd.h> #include <X11/Xmd.h>
#include "os/cmdline.h"
#include "compiler.h" #include "compiler.h"
#include "linux.h" #include "linux.h"
#include "xf86.h" #include "xf86.h"
#include "xf86Priv.h" #include "xf86Priv.h"
#include "xf86_os_support.h" #include "xf86_os_support.h"

View file

@ -29,8 +29,6 @@
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "../../../../os/cmdline.h"
#include "xf86.h" #include "xf86.h"
#include "xf86Priv.h" #include "xf86Priv.h"
#include "xf86_os_support.h" #include "xf86_os_support.h"

View file

@ -17,8 +17,6 @@ is" without express or implied warranty.
#include <X11/Xdefs.h> #include <X11/Xdefs.h>
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include "os/ddx_priv.h"
#include "screenint.h" #include "screenint.h"
#include "input.h" #include "input.h"
#include "misc.h" #include "misc.h"

View file

@ -17,8 +17,6 @@ is" without express or implied warranty.
#include <X11/Xdefs.h> #include <X11/Xdefs.h>
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include "mi/mi_priv.h"
#include "screenint.h" #include "screenint.h"
#include "input.h" #include "input.h"
#include "misc.h" #include "misc.h"
@ -27,6 +25,7 @@ is" without express or implied warranty.
#include "servermd.h" #include "servermd.h"
#include "inputstr.h" #include "inputstr.h"
#include "inpututils.h" #include "inpututils.h"
#include "mi.h"
#include "Xnest.h" #include "Xnest.h"

View file

@ -20,9 +20,7 @@ is" without express or implied warranty.
#include <X11/fonts/fontstruct.h> #include <X11/fonts/fontstruct.h>
#include <X11/fonts/libxfont2.h> #include <X11/fonts/libxfont2.h>
#include "dix/screenint_priv.h" #include "os/osdep.h"
#include "mi/mi_priv.h"
#include "os/ddx_priv.h"
#include "screenint.h" #include "screenint.h"
#include "input.h" #include "input.h"
@ -30,6 +28,7 @@ is" without express or implied warranty.
#include "scrnintstr.h" #include "scrnintstr.h"
#include "windowstr.h" #include "windowstr.h"
#include "servermd.h" #include "servermd.h"
#include "mi.h"
#include "dixfontstr.h" #include "dixfontstr.h"
#include "extinit_priv.h" #include "extinit_priv.h"
#include "Xnest.h" #include "Xnest.h"

View file

@ -17,8 +17,8 @@ is" without express or implied warranty.
#include <X11/Xdefs.h> #include <X11/Xdefs.h>
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include "mi/mi.h"
#include "mi/mi_priv.h" #include "mi/mi_priv.h"
#include "mi/mipointer_priv.h"
#include "scrnintstr.h" #include "scrnintstr.h"
#include "dix.h" #include "dix.h"

View file

@ -17,8 +17,6 @@ is" without express or implied warranty.
#include <X11/Xdefs.h> #include <X11/Xdefs.h>
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include "mi/mi_priv.h"
#include "gcstruct.h" #include "gcstruct.h"
#include "window.h" #include "window.h"
#include "windowstr.h" #include "windowstr.h"

View file

@ -34,7 +34,7 @@
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include "os/ddx_priv.h" #include "os/osdep.h"
#include "os.h" #include "os.h"
#include "servermd.h" #include "servermd.h"

View file

@ -45,16 +45,14 @@
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xmd.h> #include <X11/Xmd.h>
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include "mi/mi_priv.h"
#include "os/client_priv.h" #include "os/client_priv.h"
#include "misc.h" #include "misc.h"
#include "windowstr.h" #include "windowstr.h"
#include "pixmapstr.h" #include "pixmapstr.h"
#include "inputstr.h" #include "inputstr.h"
#include "inpututils.h" #include "inpututils.h"
#include "eventstr.h" #include "eventstr.h"
#include "mi.h"
#include "scrnintstr.h" #include "scrnintstr.h"
#include "mipointer.h" #include "mipointer.h"
#include "os.h" #include "os.h"

View file

@ -38,8 +38,6 @@
#include "darwinEvents.h" #include "darwinEvents.h"
#include <Xplugin.h> #include <Xplugin.h>
#include "mi/mipointer_priv.h"
#include "mi.h" #include "mi.h"
#include "scrnintstr.h" #include "scrnintstr.h"
#include "cursorstr.h" #include "cursorstr.h"

View file

@ -32,13 +32,13 @@
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "dix/exevents_priv.h" #include "dix/exevents_priv.h"
#include "dix/input_priv.h" #include "dix/input_priv.h"
#include "mi/mi_priv.h"
#include "mi/mipointer_priv.h" #include "mi/mipointer_priv.h"
#include <inputstr.h> #include <inputstr.h>
#include <xkbsrv.h> #include <xkbsrv.h>
#include <xserver-properties.h> #include <xserver-properties.h>
#include <inpututils.h> #include <inpututils.h>
#include <mi.h>
#include <mipointer.h> #include <mipointer.h>
#include <mipointrst.h> #include <mipointrst.h>
#include <misc.h> #include <misc.h>

View file

@ -24,7 +24,7 @@
*/ */
#include <dix-config.h> #include <dix-config.h>
#include "dix/dix_priv.h"
#include <float.h> #include <float.h>
#include <math.h> #include <math.h>
#include <sys/mman.h> #include <sys/mman.h>
@ -32,8 +32,6 @@
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xatom.h> #include <X11/Xatom.h>
#include "dix/dix_priv.h"
#include "compositeext.h" #include "compositeext.h"
#include "compint.h" #include "compint.h"
#include "inputstr.h" #include "inputstr.h"

View file

@ -35,11 +35,7 @@
#include <X11/Xatom.h> #include <X11/Xatom.h>
#include <X11/Xfuncproto.h> #include <X11/Xfuncproto.h>
#include "dix/dix_priv.h"
#include "dix/screenint_priv.h"
#include "os/cmdline.h"
#include "os/client_priv.h" #include "os/client_priv.h"
#include "os/ddx_priv.h"
#include "os/fmt.h" #include "os/fmt.h"
#include "os/osdep.h" #include "os/osdep.h"
#include "os/xserver_poll.h" #include "os/xserver_poll.h"

View file

@ -29,9 +29,6 @@
#ifdef HAVE_XWIN_CONFIG_H #ifdef HAVE_XWIN_CONFIG_H
#include <xwin-config.h> #include <xwin-config.h>
#endif #endif
#include "mi/mi_priv.h"
#include "win.h" #include "win.h"
#include "dixstruct_priv.h" #include "dixstruct_priv.h"
#include "inputstr.h" #include "inputstr.h"

View file

@ -32,13 +32,9 @@ from The Open Group.
#include <xwin-config.h> #include <xwin-config.h>
#endif #endif
#include "win.h"
#include "dix/dix_priv.h"
#include "dix/screenint_priv.h"
#include "os/ddx_priv.h"
#include "os/osdep.h" #include "os/osdep.h"
#include "win.h"
#include "winmsg.h" #include "winmsg.h"
#include "winconfig.h" #include "winconfig.h"
#include "winprefs.h" #include "winprefs.h"
@ -63,15 +59,13 @@ typedef WINAPI HRESULT(*SHGETFOLDERPATHPROC) (HWND hwndOwner,
DWORD dwFlags, LPTSTR pszPath); DWORD dwFlags, LPTSTR pszPath);
#endif #endif
#include "dix/screenint_priv.h" #include "os/osdep.h"
#include "winmonitors.h" #include "winmonitors.h"
#include "nonsdk_extinit.h" #include "nonsdk_extinit.h"
#include "extinit_priv.h" #include "extinit_priv.h"
#include "pseudoramiX/pseudoramiX.h" #include "pseudoramiX/pseudoramiX.h"
#include "dix/dix_priv.h"
#include "glx_extinit.h" #include "glx_extinit.h"
#ifdef XWIN_GLX_WINDOWS #ifdef XWIN_GLX_WINDOWS
#include "glx/glwindows.h" #include "glx/glwindows.h"

View file

@ -31,9 +31,6 @@
#ifdef HAVE_XWIN_CONFIG_H #ifdef HAVE_XWIN_CONFIG_H
#include <xwin-config.h> #include <xwin-config.h>
#endif #endif
#include "dix/dix_priv.h"
#include "win.h" #include "win.h"
#include "shellapi.h" #include "shellapi.h"

View file

@ -36,9 +36,6 @@
#endif #endif
#include "win.h" #include "win.h"
#include "winmsg.h" #include "winmsg.h"
#include "mi/mipointer_priv.h"
#include <cursorstr.h> #include <cursorstr.h>
#include <mipointrst.h> #include <mipointrst.h>
#include <servermd.h> #include <servermd.h>

View file

@ -30,8 +30,6 @@
#endif #endif
#include <opaque.h> // for display #include <opaque.h> // for display
#include "dix/dix_priv.h" // for display
#include "windisplay.h" #include "windisplay.h"
#include "winmsg.h" #include "winmsg.h"

View file

@ -34,16 +34,11 @@
#ifdef HAVE_XWIN_CONFIG_H #ifdef HAVE_XWIN_CONFIG_H
#include <xwin-config.h> #include <xwin-config.h>
#endif #endif
#include "mi/mi_priv.h"
#include "win.h" #include "win.h"
#include "dix/dix_priv.h"
#include "winkeybd.h" #include "winkeybd.h"
#include "winconfig.h" #include "winconfig.h"
#include "winmsg.h" #include "winmsg.h"
#include "xkbsrv.h" #include "xkbsrv.h"
/* C does not have a logical XOR operator, so we use a macro instead */ /* C does not have a logical XOR operator, so we use a macro instead */

View file

@ -35,9 +35,7 @@ from The Open Group.
#include <sys/utsname.h> #include <sys/utsname.h>
#endif #endif
#include "os/cmdline.h"
#include "os/osdep.h" #include "os/osdep.h"
#include "os/ddx_priv.h"
#include <../xfree86/common/xorgVersion.h> #include <../xfree86/common/xorgVersion.h>
#include "win.h" #include "win.h"

View file

@ -38,8 +38,6 @@
#include "winprefs.h" #include "winprefs.h"
#include "winclipboard/winclipboard.h" #include "winclipboard/winclipboard.h"
#include "dix/dix_priv.h"
/* /*
* Initialize the tray icon * Initialize the tray icon
*/ */

View file

@ -130,15 +130,26 @@ typedef struct _WorkQueue *WorkQueuePtr;
extern _X_EXPORT ClientPtr clients[MAXCLIENTS]; extern _X_EXPORT ClientPtr clients[MAXCLIENTS];
extern _X_EXPORT ClientPtr serverClient; extern _X_EXPORT ClientPtr serverClient;
extern _X_EXPORT int currentMaxClients; extern _X_EXPORT int currentMaxClients;
extern _X_EXPORT char dispatchExceptionAtReset;
extern _X_EXPORT int terminateDelay;
extern _X_EXPORT Bool touchEmulatePointer;
typedef int HWEventQueueType;
typedef HWEventQueueType *HWEventQueuePtr;
extern _X_EXPORT HWEventQueuePtr checkForInput[2];
static inline _X_NOTSAN Bool
InputCheckPending(void)
{
return (*checkForInput[0] != *checkForInput[1]);
}
typedef struct _TimeStamp { typedef struct _TimeStamp {
CARD32 months; /* really ~49.7 days */ CARD32 months; /* really ~49.7 days */
CARD32 milliseconds; CARD32 milliseconds;
} TimeStamp; } TimeStamp;
typedef int HWEventQueueType;
typedef HWEventQueueType *HWEventQueuePtr;
/* dispatch.c */ /* dispatch.c */
extern _X_EXPORT void SetInputCheck(HWEventQueuePtr /*c0 */ , extern _X_EXPORT void SetInputCheck(HWEventQueuePtr /*c0 */ ,
HWEventQueuePtr /*c1 */ ); HWEventQueuePtr /*c1 */ );
@ -160,6 +171,8 @@ extern _X_EXPORT void SendErrorToClient(ClientPtr /*client */ ,
extern _X_EXPORT void MarkClientException(ClientPtr /*client */ ); extern _X_EXPORT void MarkClientException(ClientPtr /*client */ );
extern _X_HIDDEN Bool CreateConnectionBlock(void);
/* dixutils.c */ /* dixutils.c */
extern _X_EXPORT int dixLookupWindow(WindowPtr *result, extern _X_EXPORT int dixLookupWindow(WindowPtr *result,
@ -187,6 +200,12 @@ extern _X_EXPORT void BlockHandler(void *timeout);
extern _X_EXPORT void WakeupHandler(int result); extern _X_EXPORT void WakeupHandler(int result);
void
EnableLimitedSchedulingLatency(void);
void
DisableLimitedSchedulingLatency(void);
typedef void (*ServerBlockHandlerProcPtr) (void *blockData, typedef void (*ServerBlockHandlerProcPtr) (void *blockData,
void *timeout); void *timeout);
@ -260,8 +279,16 @@ InitAtoms(void);
extern _X_EXPORT void extern _X_EXPORT void
SetVendorRelease(int release); SetVendorRelease(int release);
int
dix_main(int argc, char *argv[], char *envp[]);
/* events.c */ /* events.c */
extern void
SetMaskForEvent(int /* deviceid */ ,
Mask /* mask */ ,
int /* event */ );
extern _X_EXPORT void extern _X_EXPORT void
ConfineToShape(DeviceIntPtr /* pDev */ , ConfineToShape(DeviceIntPtr /* pDev */ ,
RegionPtr /* shape */ , RegionPtr /* shape */ ,
@ -281,23 +308,63 @@ GetSpriteWindow(DeviceIntPtr pDev);
extern _X_EXPORT void extern _X_EXPORT void
NoticeTime(const DeviceIntPtr dev, NoticeTime(const DeviceIntPtr dev,
TimeStamp time); TimeStamp time);
extern _X_EXPORT void extern _X_EXPORT void
NoticeEventTime(InternalEvent *ev, NoticeEventTime(InternalEvent *ev,
DeviceIntPtr dev); DeviceIntPtr dev);
extern _X_EXPORT TimeStamp extern _X_EXPORT TimeStamp
LastEventTime(int deviceid); LastEventTime(int deviceid);
extern _X_EXPORT Bool extern _X_EXPORT Bool
LastEventTimeWasReset(int deviceid); LastEventTimeWasReset(int deviceid);
extern _X_EXPORT void extern _X_EXPORT void
LastEventTimeToggleResetFlag(int deviceid, Bool state); LastEventTimeToggleResetFlag(int deviceid, Bool state);
extern _X_EXPORT void extern _X_EXPORT void
LastEventTimeToggleResetAll(Bool state); LastEventTimeToggleResetAll(Bool state);
extern void
EnqueueEvent(InternalEvent * /* ev */ ,
DeviceIntPtr /* device */ );
extern void
PlayReleasedEvents(void);
extern void
ActivatePointerGrab(DeviceIntPtr /* mouse */ ,
GrabPtr /* grab */ ,
TimeStamp /* time */ ,
Bool /* autoGrab */ );
extern void
DeactivatePointerGrab(DeviceIntPtr /* mouse */ );
extern void
ActivateKeyboardGrab(DeviceIntPtr /* keybd */ ,
GrabPtr /* grab */ ,
TimeStamp /* time */ ,
Bool /* passive */ );
extern void
DeactivateKeyboardGrab(DeviceIntPtr /* keybd */ );
extern BOOL
ActivateFocusInGrab(DeviceIntPtr /* dev */ ,
WindowPtr /* old */ ,
WindowPtr /* win */ );
extern void
AllowSome(ClientPtr /* client */ ,
TimeStamp /* time */ ,
DeviceIntPtr /* thisDev */ ,
int /* newState */ );
extern void
ReleaseActiveGrabs(ClientPtr client);
extern GrabPtr
CheckPassiveGrabsOnWindow(WindowPtr /* pWin */ ,
DeviceIntPtr /* device */ ,
InternalEvent * /* event */ ,
BOOL /* checkCore */ ,
BOOL /* activate */ );
extern _X_EXPORT int extern _X_EXPORT int
DeliverEventsToWindow(DeviceIntPtr /* pWin */ , DeliverEventsToWindow(DeviceIntPtr /* pWin */ ,
WindowPtr /* pWin */ , WindowPtr /* pWin */ ,
@ -311,19 +378,123 @@ DeliverRawEvent(RawDeviceEvent * /* ev */ ,
DeviceIntPtr /* dev */ DeviceIntPtr /* dev */
); );
extern int
DeliverDeviceEvents(WindowPtr /* pWin */ ,
InternalEvent * /* event */ ,
GrabPtr /* grab */ ,
WindowPtr /* stopAt */ ,
DeviceIntPtr /* dev */ );
extern int
DeliverOneGrabbedEvent(InternalEvent * /* event */ ,
DeviceIntPtr /* dev */ ,
enum InputLevel /* level */ );
extern void
DeliverTouchEvents(DeviceIntPtr /* dev */ ,
TouchPointInfoPtr /* ti */ ,
InternalEvent * /* ev */ ,
XID /* resource */ );
extern Bool
DeliverGestureEventToOwner(DeviceIntPtr dev, GestureInfoPtr gi,
InternalEvent *ev);
extern void
InitializeSprite(DeviceIntPtr /* pDev */ ,
WindowPtr /* pWin */ );
extern void
FreeSprite(DeviceIntPtr pDev);
extern void
UpdateSpriteForScreen(DeviceIntPtr /* pDev */ ,
ScreenPtr /* pScreen */ );
extern _X_EXPORT void extern _X_EXPORT void
WindowHasNewCursor(WindowPtr /* pWin */ ); WindowHasNewCursor(WindowPtr /* pWin */ );
extern Bool
CheckDeviceGrabs(DeviceIntPtr /* device */ ,
InternalEvent * /* event */ ,
WindowPtr /* ancestor */ );
extern void
DeliverFocusedEvent(DeviceIntPtr /* keybd */ ,
InternalEvent * /* event */ ,
WindowPtr /* window */ );
extern int
DeliverGrabbedEvent(InternalEvent * /* event */ ,
DeviceIntPtr /* thisDev */ ,
Bool /* deactivateGrab */ );
extern void
FreezeThisEventIfNeededForSyncGrab(DeviceIntPtr thisDev,
InternalEvent *event);
extern void
FixKeyState(DeviceEvent * /* event */ ,
DeviceIntPtr /* keybd */ );
extern void
RecalculateDeliverableEvents(WindowPtr /* pWin */ );
extern _X_EXPORT int extern _X_EXPORT int
OtherClientGone(void *value, OtherClientGone(void *value,
XID id); XID id);
extern void
DoFocusEvents(DeviceIntPtr /* dev */ ,
WindowPtr /* fromWin */ ,
WindowPtr /* toWin */ ,
int /* mode */ );
extern int
SetInputFocus(ClientPtr /* client */ ,
DeviceIntPtr /* dev */ ,
Window /* focusID */ ,
CARD8 /* revertTo */ ,
Time /* ctime */ ,
Bool /* followOK */ );
extern int
GrabDevice(ClientPtr /* client */ ,
DeviceIntPtr /* dev */ ,
unsigned /* this_mode */ ,
unsigned /* other_mode */ ,
Window /* grabWindow */ ,
unsigned /* ownerEvents */ ,
Time /* ctime */ ,
GrabMask * /* mask */ ,
int /* grabtype */ ,
Cursor /* curs */ ,
Window /* confineToWin */ ,
CARD8 * /* status */ );
extern void
InitEvents(void);
extern void
CloseDownEvents(void);
extern void
DeleteWindowFromAnyEvents(WindowPtr /* pWin */ ,
Bool /* freeResources */ );
extern Mask
EventMaskForClient(WindowPtr /* pWin */ ,
ClientPtr /* client */ );
extern _X_EXPORT int extern _X_EXPORT int
DeliverEvents(WindowPtr /*pWin */ , DeliverEvents(WindowPtr /*pWin */ ,
xEventPtr /*xE */ , xEventPtr /*xE */ ,
int /*count */ , int /*count */ ,
WindowPtr /*otherParent */ ); WindowPtr /*otherParent */ );
extern Bool
CheckMotion(DeviceEvent * /* ev */ ,
DeviceIntPtr /* pDev */ );
extern _X_EXPORT void extern _X_EXPORT void
WriteEventsToClient(ClientPtr /*pClient */ , WriteEventsToClient(ClientPtr /*pClient */ ,
int /*count */ , int /*count */ ,
@ -341,12 +512,21 @@ TryClientEvents(ClientPtr /*client */ ,
extern _X_EXPORT void extern _X_EXPORT void
WindowsRestructured(void); WindowsRestructured(void);
extern int
SetClientPointer(ClientPtr /* client */ ,
DeviceIntPtr /* device */ );
extern _X_EXPORT DeviceIntPtr extern _X_EXPORT DeviceIntPtr
PickPointer(ClientPtr /* client */ ); PickPointer(ClientPtr /* client */ );
extern _X_EXPORT DeviceIntPtr extern _X_EXPORT DeviceIntPtr
PickKeyboard(ClientPtr /* client */ ); PickKeyboard(ClientPtr /* client */ );
extern Bool
IsInterferingGrab(ClientPtr /* client */ ,
DeviceIntPtr /* dev */ ,
xEvent * /* events */ );
#ifdef RANDR #ifdef RANDR
extern _X_EXPORT void extern _X_EXPORT void
ScreenRestructured(ScreenPtr pScreen); ScreenRestructured(ScreenPtr pScreen);
@ -392,18 +572,37 @@ typedef struct {
extern _X_EXPORT CallbackListPtr RootWindowFinalizeCallback; extern _X_EXPORT CallbackListPtr RootWindowFinalizeCallback;
extern int
XItoCoreType(int xi_type);
extern Bool
DevHasCursor(DeviceIntPtr pDev);
extern _X_EXPORT Bool extern _X_EXPORT Bool
IsPointerDevice(DeviceIntPtr dev); IsPointerDevice(DeviceIntPtr dev);
extern _X_EXPORT Bool extern _X_EXPORT Bool
IsKeyboardDevice(DeviceIntPtr dev); IsKeyboardDevice(DeviceIntPtr dev);
extern Bool
IsPointerEvent(InternalEvent *event);
extern Bool
IsTouchEvent(InternalEvent *event);
Bool
IsGestureEvent(InternalEvent *event);
Bool
IsGestureBeginEvent(InternalEvent *event);
Bool
IsGestureEndEvent(InternalEvent *event);
extern _X_EXPORT Bool extern _X_EXPORT Bool
IsMaster(DeviceIntPtr dev); IsMaster(DeviceIntPtr dev);
extern _X_EXPORT Bool extern _X_EXPORT Bool
IsFloating(DeviceIntPtr dev); IsFloating(DeviceIntPtr dev);
extern _X_HIDDEN void
CopyKeyClass(DeviceIntPtr device, DeviceIntPtr master);
extern _X_HIDDEN int
CorePointerProc(DeviceIntPtr dev, int what);
extern _X_HIDDEN int
CoreKeyboardProc(DeviceIntPtr dev, int what);
extern _X_EXPORT void *lastGLContext; extern _X_EXPORT void *lastGLContext;
/** /**

View file

@ -35,6 +35,27 @@ from The Open Group.
// needed by libglx and libglamor (server modules) // needed by libglx and libglamor (server modules)
extern _X_EXPORT Bool enableIndirectGLX; extern _X_EXPORT Bool enableIndirectGLX;
extern _X_EXPORT volatile char isItTimeToYield;
extern _X_EXPORT volatile char dispatchException;
/* bit values for dispatchException */
#define DE_RESET 1
#define DE_TERMINATE 2
#define DE_PRIORITYCHANGE 4 /* set when a client's priority changes */
extern _X_EXPORT int ScreenSaverBlanking;
extern _X_EXPORT int ScreenSaverAllowExposures;
extern _X_EXPORT int defaultScreenSaverBlanking;
extern _X_EXPORT int defaultScreenSaverAllowExposures;
extern _X_EXPORT const char *display;
extern _X_EXPORT int displayfd;
extern _X_EXPORT Bool explicit_display;
extern _X_EXPORT Bool disableBackingStore;
extern _X_EXPORT Bool enableBackingStore;
extern _X_EXPORT Bool RunFromSigStopParent;
extern _X_EXPORT Bool whiteRoot;
extern _X_EXPORT Bool bgNoneRoot; extern _X_EXPORT Bool bgNoneRoot;
#endif /* OPAQUE_H */ #endif /* OPAQUE_H */

View file

@ -84,6 +84,14 @@ typedef struct _NewClientRec *NewClientPtr;
#include <stdio.h> #include <stdio.h>
#include <stdarg.h> #include <stdarg.h>
#ifdef DDXBEFORERESET
extern void ddxBeforeReset(void);
#endif
extern _X_EXPORT Bool WaitForSomething(Bool clients_are_ready);
extern _X_EXPORT int ReadRequestFromClient(ClientPtr /*client */ );
extern _X_EXPORT int ReadFdFromClient(ClientPtr client); extern _X_EXPORT int ReadFdFromClient(ClientPtr client);
extern _X_EXPORT void SetCriticalOutputPending(void); extern _X_EXPORT void SetCriticalOutputPending(void);
@ -135,6 +143,14 @@ extern _X_EXPORT void TimerFree(OsTimerPtr /* pTimer */ );
extern _X_EXPORT void GiveUp(int /*sig */ ); extern _X_EXPORT void GiveUp(int /*sig */ );
extern _X_EXPORT void UseMsg(void);
extern _X_EXPORT void ProcessCommandLine(int /*argc */ , char * /*argv */ []);
extern _X_EXPORT int set_font_authorizations(char **authorizations,
int *authlen,
void *client);
/* /*
* This function malloc(3)s buffer, terminating the server if there is not * This function malloc(3)s buffer, terminating the server if there is not
* enough memory. * enough memory.
@ -242,9 +258,85 @@ OsAbort(void)
extern _X_EXPORT Bool extern _X_EXPORT Bool
PrivsElevated(void); PrivsElevated(void);
extern _X_EXPORT void
CheckUserParameters(int argc, char **argv, char **envp);
extern _X_EXPORT void
CheckUserAuthorization(void);
extern _X_EXPORT int
AddHost(ClientPtr /*client */ ,
int /*family */ ,
unsigned /*length */ ,
const void * /*pAddr */ );
extern _X_EXPORT Bool
ForEachHostInFamily(int family,
Bool (*func)(
unsigned char *addr,
short len,
void *closure),
void *closure);
extern _X_EXPORT int
RemoveHost(ClientPtr client,
int family,
unsigned length,
void *pAddr);
extern _X_EXPORT int
GetHosts(void ** /*data */ ,
int * /*pnHosts */ ,
int * /*pLen */ ,
BOOL * /*pEnabled */ );
typedef struct sockaddr *sockaddrPtr;
extern _X_EXPORT int
InvalidHost(sockaddrPtr /*saddr */ , int /*len */ , ClientPtr client);
#define LCC_UID_SET (1 << 0)
#define LCC_GID_SET (1 << 1)
#define LCC_PID_SET (1 << 2)
#define LCC_ZID_SET (1 << 3)
typedef struct {
int fieldsSet; /* Bit mask of fields set */
int euid; /* Effective uid */
int egid; /* Primary effective group id */
int nSuppGids; /* Number of supplementary group ids */
int *pSuppGids; /* Array of supplementary group ids */
int pid; /* Process id */
int zoneid; /* Only set on Solaris 10 & later */
} LocalClientCredRec;
extern _X_EXPORT int
GetLocalClientCreds(ClientPtr, LocalClientCredRec **);
extern _X_EXPORT void
FreeLocalClientCreds(LocalClientCredRec *);
extern _X_EXPORT int
ChangeAccessControl(ClientPtr /*client */ , int /*fEnabled */ );
extern _X_EXPORT int extern _X_EXPORT int
GetClientFd(ClientPtr); GetClientFd(ClientPtr);
extern _X_EXPORT Bool
ClientIsLocal(ClientPtr client);
extern _X_EXPORT int
ddxProcessArgument(int /*argc */ , char * /*argv */ [], int /*i */ );
#define CHECK_FOR_REQUIRED_ARGUMENTS(num) \
do if (((i + num) >= argc) || (!argv[i + num])) { \
UseMsg(); \
FatalError("Required argument to %s not specified\n", argv[i]); \
} while (0)
extern _X_EXPORT void
ddxUseMsg(void);
/* stuff for ReplyCallback */ /* stuff for ReplyCallback */
extern _X_EXPORT CallbackListPtr ReplyCallback; extern _X_EXPORT CallbackListPtr ReplyCallback;
typedef struct { typedef struct {
@ -266,6 +358,10 @@ enum ExitCode {
EXIT_ERR_DRIVERS = 3, EXIT_ERR_DRIVERS = 3,
}; };
extern _X_EXPORT void
ddxGiveUp(enum ExitCode error);
extern _X_EXPORT void
ddxInputThreadInit(void);
extern _X_EXPORT int extern _X_EXPORT int
TimeSinceLastInputEvent(void); TimeSinceLastInputEvent(void);

View file

@ -56,6 +56,22 @@ typedef struct _Screen *ScreenPtr;
extern _X_EXPORT void AttachOutputGPU(ScreenPtr pScreen, ScreenPtr newScreen); extern _X_EXPORT void AttachOutputGPU(ScreenPtr pScreen, ScreenPtr newScreen);
extern _X_EXPORT void DetachOutputGPU(ScreenPtr output); extern _X_EXPORT void DetachOutputGPU(ScreenPtr output);
typedef Bool (*ScreenInitProcPtr)(ScreenPtr pScreen, int argc, char **argv);
extern _X_EXPORT int AddScreen(ScreenInitProcPtr pfnInit, int argc, char **argv);
extern _X_EXPORT int AddGPUScreen(ScreenInitProcPtr pfnInit, int argc, char **argv);
extern _X_EXPORT void RemoveGPUScreen(ScreenPtr pScreen);
extern _X_EXPORT void
AttachUnboundGPU(ScreenPtr pScreen, ScreenPtr newScreen);
extern _X_EXPORT void
DetachUnboundGPU(ScreenPtr unbound);
extern _X_EXPORT void
AttachOffloadGPU(ScreenPtr pScreen, ScreenPtr newScreen);
extern _X_EXPORT void
DetachOffloadGPU(ScreenPtr slave);
typedef struct _ColormapRec *ColormapPtr; typedef struct _ColormapRec *ColormapPtr;

148
mi/mi.h
View file

@ -67,6 +67,11 @@ typedef struct _miDash *miDashPtr;
/* miarc.c */ /* miarc.c */
extern _X_EXPORT void miWideArc(DrawablePtr pDraw,
GCPtr pGC,
int narcs,
xArc * parcs);
extern _X_EXPORT void miPolyArc(DrawablePtr /*pDraw */ , extern _X_EXPORT void miPolyArc(DrawablePtr /*pDraw */ ,
GCPtr /*pGC */ , GCPtr /*pGC */ ,
int /*narcs */ , int /*narcs */ ,
@ -108,12 +113,71 @@ miDoCopy(DrawablePtr pSrcDrawable,
int xOut, int xOut,
int yOut, miCopyProc copyProc, Pixel bitplane, void *closure); int yOut, miCopyProc copyProc, Pixel bitplane, void *closure);
/* micursor.c */
extern _X_EXPORT void miRecolorCursor(DeviceIntPtr /* pDev */ ,
ScreenPtr /*pScr */ ,
CursorPtr /*pCurs */ ,
Bool /*displayed */
);
/* midash.c */
extern _X_EXPORT void miStepDash(int /*dist */ ,
int * /*pDashIndex */ ,
unsigned char * /*pDash */ ,
int /*numInDashList */ ,
int * /*pDashOffset */
);
/* mieq.c */ /* mieq.c */
#ifndef INPUT_H #ifndef INPUT_H
typedef struct _DeviceRec *DevicePtr; typedef struct _DeviceRec *DevicePtr;
#endif #endif
extern _X_EXPORT Bool mieqInit(void
);
extern _X_EXPORT void mieqFini(void);
extern _X_EXPORT void mieqEnqueue(DeviceIntPtr /*pDev */ ,
InternalEvent * /*e */
);
extern _X_EXPORT void mieqSwitchScreen(DeviceIntPtr /* pDev */ ,
ScreenPtr /*pScreen */ ,
Bool /*set_dequeue_screen */
);
extern _X_EXPORT void mieqProcessDeviceEvent(DeviceIntPtr /* dev */ ,
InternalEvent * /* event */ ,
ScreenPtr /* screen */
);
extern _X_EXPORT void mieqProcessInputEvents(void
);
extern _X_EXPORT void mieqAddCallbackOnDrained(CallbackProcPtr callback,
void *param);
extern _X_EXPORT void mieqRemoveCallbackOnDrained(CallbackProcPtr callback,
void *param);
extern DeviceIntPtr CopyGetMasterEvent(DeviceIntPtr /* sdev */ ,
InternalEvent * /* original */ ,
InternalEvent * /* copy */
);
/**
* Custom input event handler. If you need to process input events in some
* other way than the default path, register an input event handler for the
* given internal event type.
*/
typedef void (*mieqHandler) (int screen, InternalEvent *event,
DeviceIntPtr dev);
void _X_EXPORT mieqSetHandler(int event, mieqHandler handler);
/* miexpose.c */ /* miexpose.c */
extern _X_EXPORT RegionPtr miHandleExposures(DrawablePtr /*pSrcDrawable */ , extern _X_EXPORT RegionPtr miHandleExposures(DrawablePtr /*pSrcDrawable */ ,
@ -127,9 +191,20 @@ extern _X_EXPORT RegionPtr miHandleExposures(DrawablePtr /*pSrcDrawable */ ,
int /*dsty */ int /*dsty */
); );
extern _X_EXPORT void miSendExposures(WindowPtr /*pWin */ ,
RegionPtr /*pRgn */ ,
int /*dx */ ,
int /*dy */
);
extern _X_EXPORT void miWindowExposures(WindowPtr /*pWin */ , extern _X_EXPORT void miWindowExposures(WindowPtr /*pWin */ ,
RegionPtr /*prgn */); RegionPtr /*prgn */);
extern _X_EXPORT void miPaintWindow(WindowPtr /*pWin */ ,
RegionPtr /*prgn */ ,
int /*what */
);
extern _X_EXPORT void miClearDrawable(DrawablePtr /*pDraw */ , extern _X_EXPORT void miClearDrawable(DrawablePtr /*pDraw */ ,
GCPtr /*pGC */ GCPtr /*pGC */
); );
@ -235,6 +310,11 @@ extern _X_EXPORT void miPushPixels(GCPtr /*pGC */ ,
); );
/* miscrinit.c */ /* miscrinit.c */
extern _X_EXPORT void
miSourceValidate(DrawablePtr pDrawable, int x, int y, int w, int h,
unsigned int subWindowMode);
extern _X_EXPORT Bool miModifyPixmapHeader(PixmapPtr pPixmap, extern _X_EXPORT Bool miModifyPixmapHeader(PixmapPtr pPixmap,
int width, int width,
int height, int height,
@ -264,6 +344,18 @@ extern _X_EXPORT Bool miScreenInit(ScreenPtr pScreen,
/* mivaltree.c */ /* mivaltree.c */
extern _X_EXPORT int miShapedWindowIn(RegionPtr /*universe */ ,
RegionPtr /*bounding */ ,
BoxPtr /*rect */ ,
int /*x */ ,
int /*y */
);
extern _X_EXPORT int miValidateTree(WindowPtr /*pParent */ ,
WindowPtr /*pChild */ ,
VTKind /*kind */
);
extern _X_EXPORT void miWideLine(DrawablePtr /*pDrawable */ , extern _X_EXPORT void miWideLine(DrawablePtr /*pDrawable */ ,
GCPtr /*pGC */ , GCPtr /*pGC */ ,
int /*mode */ , int /*mode */ ,
@ -284,6 +376,62 @@ extern _X_EXPORT void miPolylines(DrawablePtr pDrawable,
int npt, int npt,
DDXPointPtr pPts); DDXPointPtr pPts);
/* miwindow.c */
extern _X_EXPORT void miClearToBackground(WindowPtr /*pWin */ ,
int /*x */ ,
int /*y */ ,
int /*w */ ,
int /*h */ ,
Bool /*generateExposures */
);
extern _X_EXPORT void miMarkWindow(WindowPtr /*pWin */
);
extern _X_EXPORT Bool miMarkOverlappedWindows(WindowPtr /*pWin */ ,
WindowPtr /*pFirst */ ,
WindowPtr * /*ppLayerWin */
);
extern _X_EXPORT void miHandleValidateExposures(WindowPtr /*pWin */
);
extern _X_EXPORT void miMoveWindow(WindowPtr /*pWin */ ,
int /*x */ ,
int /*y */ ,
WindowPtr /*pNextSib */ ,
VTKind /*kind */
);
extern _X_EXPORT void miResizeWindow(WindowPtr /*pWin */ ,
int /*x */ ,
int /*y */ ,
unsigned int /*w */ ,
unsigned int /*h */ ,
WindowPtr /*pSib */
);
extern _X_EXPORT WindowPtr miGetLayerWindow(WindowPtr /*pWin */
);
extern _X_EXPORT void miSetShape(WindowPtr /*pWin */ ,
int /*kind */
);
extern _X_EXPORT void miChangeBorderWidth(WindowPtr /*pWin */ ,
unsigned int /*width */
);
extern _X_EXPORT void miMarkUnrealizedWindow(WindowPtr /*pChild */ ,
WindowPtr /*pWin */ ,
Bool /*fromConfigure */
);
extern _X_EXPORT WindowPtr miSpriteTrace(SpritePtr pSprite, int x, int y);
extern _X_EXPORT WindowPtr miXYToWindow(ScreenPtr pScreen, SpritePtr pSprite, int x, int y);
/* mizerarc.c */ /* mizerarc.c */
extern _X_EXPORT void miZeroPolyArc(DrawablePtr /*pDraw */ , extern _X_EXPORT void miZeroPolyArc(DrawablePtr /*pDraw */ ,

View file

@ -5,71 +5,8 @@
#ifndef _XSERVER_MI_PRIV_H #ifndef _XSERVER_MI_PRIV_H
#define _XSERVER_MI_PRIV_H #define _XSERVER_MI_PRIV_H
#include <X11/Xdefs.h> #include "screenint.h"
#include <X11/Xprotostr.h>
#include "dix/screenint_priv.h"
#include "include/callback.h"
#include "include/events.h"
#include "include/gc.h"
#include "include/pixmap.h"
#include "include/regionstr.h"
#include "include/screenint.h"
#include "include/validate.h"
#include "include/window.h"
#include "mi/mi.h"
#define SetInstalledmiColormap(s,c) \
(dixSetPrivate(&(s)->devPrivates, micmapScrPrivateKey, c))
void miScreenClose(ScreenPtr pScreen); void miScreenClose(ScreenPtr pScreen);
void miWideArc(DrawablePtr pDraw, GCPtr pGC, int narcs, xArc * parcs);
void miStepDash(int dist, int * pDashIndex, unsigned char * pDash,
int numInDashList, int *pDashOffset);
Bool mieqInit(void);
void mieqFini(void);
void mieqEnqueue(DeviceIntPtr pDev, InternalEvent *e);
void mieqSwitchScreen(DeviceIntPtr pDev, ScreenPtr pScreen, Bool set_dequeue_screen);
void mieqProcessDeviceEvent(DeviceIntPtr dev, InternalEvent *event, ScreenPtr screen);
void mieqProcessInputEvents(void);
void mieqAddCallbackOnDrained(CallbackProcPtr callback, void *param);
void mieqRemoveCallbackOnDrained(CallbackProcPtr callback, void *param);
/**
* Custom input event handler. If you need to process input events in some
* other way than the default path, register an input event handler for the
* given internal event type.
*/
typedef void (*mieqHandler) (int screen, InternalEvent *event,
DeviceIntPtr dev);
void mieqSetHandler(int event, mieqHandler handler);
void miSendExposures(WindowPtr pWin, RegionPtr pRgn, int dx, int dy);
void miPaintWindow(WindowPtr pWin, RegionPtr prgn, int what);
void miSourceValidate(DrawablePtr pDrawable, int x, int y, int w, int h,
unsigned int subWindowMode);
int miShapedWindowIn(RegionPtr universe, RegionPtr bounding, BoxPtr rect,
int x, int y);
int miValidateTree(WindowPtr pParent, WindowPtr pChild, VTKind kind);
void miClearToBackground(WindowPtr pWin, int x, int y, int w, int h,
Bool generateExposures);
void miMarkWindow(WindowPtr pWin);
Bool miMarkOverlappedWindows(WindowPtr pWin, WindowPtr pFirst,
WindowPtr *ppLayerWin);
void miHandleValidateExposures(WindowPtr pWin);
void miMoveWindow(WindowPtr pWin, int x, int y, WindowPtr pNextSib, VTKind kind);
void miResizeWindow(WindowPtr pWin, int x, int y, unsigned int w,
unsigned int h, WindowPtr pSib);
WindowPtr miGetLayerWindow(WindowPtr pWin);
void miSetShape(WindowPtr pWin, int kind);
void miChangeBorderWidth(WindowPtr pWin, unsigned int width);
void miMarkUnrealizedWindow(WindowPtr pChild, WindowPtr pWin, Bool fromConfigure);
WindowPtr miSpriteTrace(SpritePtr pSprite, int x, int y);
WindowPtr miXYToWindow(ScreenPtr pScreen, SpritePtr pSprite, int x, int y);
#endif /* _XSERVER_MI_PRIV_H */ #endif /* _XSERVER_MI_PRIV_H */

View file

@ -51,17 +51,15 @@ SOFTWARE.
#include <math.h> #include <math.h>
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xprotostr.h> #include <X11/Xprotostr.h>
#include <X11/Xfuncproto.h>
#include "mi/mi_priv.h"
#include "misc.h" #include "misc.h"
#include "gcstruct.h" #include "gcstruct.h"
#include "scrnintstr.h" #include "scrnintstr.h"
#include "pixmapstr.h" #include "pixmapstr.h"
#include "windowstr.h" #include "windowstr.h"
#include "mifpoly.h" #include "mifpoly.h"
#include "mi.h"
#include "mifillarc.h" #include "mifillarc.h"
#include <X11/Xfuncproto.h>
#define EPSILON 0.000001 #define EPSILON 0.000001
#define ISEQUAL(a,b) (fabs((a) - (b)) <= EPSILON) #define ISEQUAL(a,b) (fabs((a) - (b)) <= EPSILON)

View file

@ -33,9 +33,7 @@
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include "dix/colormap_priv.h" #include "dix/colormap_priv.h"
#include "mi/mi_priv.h"
#include "os/osdep.h" #include "os/osdep.h"
#include "scrnintstr.h" #include "scrnintstr.h"
#include "colormapst.h" #include "colormapst.h"
#include "resource.h" #include "resource.h"

View file

@ -6,6 +6,8 @@
#define GetInstalledmiColormap(s) \ #define GetInstalledmiColormap(s) \
((ColormapPtr) dixLookupPrivate(&(s)->devPrivates, micmapScrPrivateKey)) ((ColormapPtr) dixLookupPrivate(&(s)->devPrivates, micmapScrPrivateKey))
#define SetInstalledmiColormap(s,c) \
(dixSetPrivate(&(s)->devPrivates, micmapScrPrivateKey, c))
extern _X_EXPORT DevPrivateKeyRec micmapScrPrivateKeyRec; extern _X_EXPORT DevPrivateKeyRec micmapScrPrivateKeyRec;

View file

@ -45,8 +45,6 @@ SOFTWARE.
******************************************************************/ ******************************************************************/
#include <dix-config.h> #include <dix-config.h>
#include "mi/mi_priv.h"
#include "regionstr.h" #include "regionstr.h"
#include "mistruct.h" #include "mistruct.h"

View file

@ -33,7 +33,6 @@ in this Software without prior written authorization from The Open Group.
#include <X11/X.h> #include <X11/X.h>
#include "dix/dix_priv.h"
#include "dix/gc_priv.h" #include "dix/gc_priv.h"
#include "misc.h" #include "misc.h"
@ -47,7 +46,9 @@ in this Software without prior written authorization from The Open Group.
#include "mipointer.h" #include "mipointer.h"
#include "misprite.h" #include "misprite.h"
#include "gcstruct.h" #include "gcstruct.h"
#include "picturestr.h" #include "picturestr.h"
#include "inputstr.h" #include "inputstr.h"
/* per-screen private data */ /* per-screen private data */

View file

@ -41,7 +41,6 @@ in this Software without prior written authorization from The Open Group.
#include <X11/extensions/XIproto.h> #include <X11/extensions/XIproto.h>
#include <X11/extensions/geproto.h> #include <X11/extensions/geproto.h>
#include "mi/mi_priv.h"
#include "mi/mipointer_priv.h" #include "mi/mipointer_priv.h"
#include "os/screensaver.h" #include "os/screensaver.h"
@ -50,6 +49,7 @@ in this Software without prior written authorization from The Open Group.
#include "pixmapstr.h" #include "pixmapstr.h"
#include "inputstr.h" #include "inputstr.h"
#include "inpututils.h" #include "inpututils.h"
#include "mi.h"
#include "mipointer.h" #include "mipointer.h"
#include "scrnintstr.h" #include "scrnintstr.h"
#include "extinit.h" #include "extinit.h"
@ -384,7 +384,7 @@ FixUpEventForMaster(DeviceIntPtr mdev, DeviceIntPtr sdev,
* @param copy The event after being copied * @param copy The event after being copied
* @return The master device or NULL if the device is a floating slave. * @return The master device or NULL if the device is a floating slave.
*/ */
static DeviceIntPtr DeviceIntPtr
CopyGetMasterEvent(DeviceIntPtr sdev, CopyGetMasterEvent(DeviceIntPtr sdev,
InternalEvent *original, InternalEvent *copy) InternalEvent *original, InternalEvent *copy)
{ {

View file

@ -74,12 +74,10 @@ Equipment Corporation.
#include <dix-config.h> #include <dix-config.h>
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include <X11/Xprotostr.h> #include <X11/Xprotostr.h>
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "mi/mi_priv.h"
#include "misc.h" #include "misc.h"
#include "regionstr.h" #include "regionstr.h"
@ -88,7 +86,11 @@ Equipment Corporation.
#include "windowstr.h" #include "windowstr.h"
#include "pixmap.h" #include "pixmap.h"
#include "input.h" #include "input.h"
#include "dixstruct.h" #include "dixstruct.h"
#include "mi.h"
#include <X11/Xmd.h>
#include "globals.h" #include "globals.h"
#ifdef XINERAMA #ifdef XINERAMA

View file

@ -3,13 +3,11 @@
#include <X11/X.h> #include <X11/X.h>
#include "mi/mi_priv.h"
#include "scrnintstr.h" #include "scrnintstr.h"
#include <X11/extensions/shapeproto.h> #include <X11/extensions/shapeproto.h>
#include "validate.h" #include "validate.h"
#include "windowstr.h" #include "windowstr.h"
#include "mi.h"
#include "gcstruct.h" #include "gcstruct.h"
#include "regionstr.h" #include "regionstr.h"
#include "privates.h" #include "privates.h"

View file

@ -54,12 +54,12 @@ in this Software without prior written authorization from The Open Group.
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "dix/input_priv.h" #include "dix/input_priv.h"
#include "mi/mi_priv.h"
#include "mi/mipointer_priv.h" #include "mi/mipointer_priv.h"
#include "misc.h" #include "misc.h"
#include "windowstr.h" #include "windowstr.h"
#include "pixmapstr.h" #include "pixmapstr.h"
#include "mi.h"
#include "scrnintstr.h" #include "scrnintstr.h"
#include "mipointrst.h" #include "mipointrst.h"
#include "cursorstr.h" #include "cursorstr.h"
@ -115,10 +115,6 @@ static void miPointerMoveNoEvent(DeviceIntPtr pDev, ScreenPtr pScreen, int x,
static InternalEvent *mipointermove_events; /* for WarpPointer MotionNotifies */ static InternalEvent *mipointermove_events; /* for WarpPointer MotionNotifies */
static void
miRecolorCursor(DeviceIntPtr pDev, ScreenPtr pScr,
CursorPtr pCurs, Bool displayed);
Bool Bool
miPointerInitialize(ScreenPtr pScreen, miPointerInitialize(ScreenPtr pScreen,
miPointerSpriteFuncPtr spriteFuncs, miPointerSpriteFuncPtr spriteFuncs,
@ -299,7 +295,7 @@ miPointerSetCursorPosition(DeviceIntPtr pDev, ScreenPtr pScreen,
return TRUE; return TRUE;
} }
static void void
miRecolorCursor(DeviceIntPtr pDev, ScreenPtr pScr, miRecolorCursor(DeviceIntPtr pDev, ScreenPtr pScr,
CursorPtr pCurs, Bool displayed) CursorPtr pCurs, Bool displayed)
{ {

View file

@ -77,6 +77,12 @@ extern _X_EXPORT Bool miDCInitialize(ScreenPtr /*pScreen */ ,
miPointerScreenFuncPtr /*screenFuncs */ miPointerScreenFuncPtr /*screenFuncs */
); );
extern _X_EXPORT void miPointerWarpCursor(DeviceIntPtr /*pDev */ ,
ScreenPtr /*pScreen */ ,
int /*x */ ,
int /*y */
);
extern _X_EXPORT ScreenPtr extern _X_EXPORT ScreenPtr
miPointerGetScreen(DeviceIntPtr pDev); miPointerGetScreen(DeviceIntPtr pDev);

View file

@ -7,11 +7,8 @@
#include <X11/Xdefs.h> #include <X11/Xdefs.h>
#include "dix/screenint_priv.h"
#include "include/input.h"
#include "mi/mipointer.h" #include "mi/mipointer.h"
void miPointerWarpCursor(DeviceIntPtr pDev, ScreenPtr pScreen, int x, int y);
void miPointerSetScreen(DeviceIntPtr pDev, int screen_num, int x, int y); void miPointerSetScreen(DeviceIntPtr pDev, int screen_num, int x, int y);
void miPointerUpdateSprite(DeviceIntPtr pDev); void miPointerUpdateSprite(DeviceIntPtr pDev);

View file

@ -91,12 +91,10 @@ Equipment Corporation.
#include <dix-config.h> #include <dix-config.h>
#include <X11/X.h> #include <X11/X.h>
#include "mi/mi_priv.h"
#include "scrnintstr.h" #include "scrnintstr.h"
#include "validate.h" #include "validate.h"
#include "windowstr.h" #include "windowstr.h"
#include "mi.h"
#include "regionstr.h" #include "regionstr.h"
#include "mivalidate.h" #include "mivalidate.h"
#include "globals.h" #include "globals.h"

View file

@ -63,13 +63,11 @@ SOFTWARE.
#undef _XOPEN_SOURCE #undef _XOPEN_SOURCE
#endif #endif
#include <X11/X.h> #include <X11/X.h>
#include "mi/mi_priv.h"
#include "windowstr.h" #include "windowstr.h"
#include "gcstruct.h" #include "gcstruct.h"
#include "regionstr.h" #include "regionstr.h"
#include "miwideline.h" #include "miwideline.h"
#include "mi.h"
typedef struct { typedef struct {
int count; /* number of spans */ int count; /* number of spans */

View file

@ -50,10 +50,10 @@ SOFTWARE.
#include <X11/extensions/shapeconst.h> #include <X11/extensions/shapeconst.h>
#include "dix/input_priv.h" #include "dix/input_priv.h"
#include "mi/mi_priv.h"
#include "regionstr.h" #include "regionstr.h"
#include "region.h" #include "region.h"
#include "mi.h"
#include "windowstr.h" #include "windowstr.h"
#include "scrnintstr.h" #include "scrnintstr.h"
#include "pixmapstr.h" #include "pixmapstr.h"

View file

@ -37,12 +37,10 @@ Author: Bob Scheifler, MIT X Consortium
#include <math.h> #include <math.h>
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xprotostr.h> #include <X11/Xprotostr.h>
#include "mi/mi_priv.h"
#include "regionstr.h" #include "regionstr.h"
#include "gcstruct.h" #include "gcstruct.h"
#include "pixmapstr.h" #include "pixmapstr.h"
#include "mi.h"
#include "mizerarc.h" #include "mizerarc.h"
#define FULLCIRCLE (360 * 64) #define FULLCIRCLE (360 * 64)

View file

@ -37,8 +37,8 @@
#include <string.h> #include <string.h>
#include "dix/colormap_priv.h" #include "dix/colormap_priv.h"
#include "mi/mi_priv.h"
#include "mi.h"
#include "scrnintstr.h" #include "scrnintstr.h"
#include "gcstruct.h" #include "gcstruct.h"
#include "pixmapstr.h" #include "pixmapstr.h"

View file

@ -92,13 +92,11 @@ Equipment Corporation.
#include <dix-config.h> #include <dix-config.h>
#include <stddef.h> /* For NULL */ #include <stddef.h> /* For NULL */
#include <X11/X.h> #include <X11/X.h>
#include "mi/mi_priv.h"
#include "scrnintstr.h" #include "scrnintstr.h"
#include "validate.h" #include "validate.h"
#include "windowstr.h" #include "windowstr.h"
#include "mi.h"
#include "regionstr.h" #include "regionstr.h"
#include "mivalidate.h" #include "mivalidate.h"

View file

@ -35,12 +35,9 @@
#include <limits.h> /* For CHAR_BIT */ #include <limits.h> /* For CHAR_BIT */
#include <assert.h> #include <assert.h>
#include <X11/Xatom.h> #include <X11/Xatom.h>
#include "mi/mi_priv.h"
#include "dix_priv.h"
#ifdef __APPLE__ #ifdef __APPLE__
#include <Xplugin.h> #include <Xplugin.h>
#include "mi.h"
#include "pixmapstr.h" #include "pixmapstr.h"
#include "windowstr.h" #include "windowstr.h"
//#include <X11/extensions/applewm.h> //#include <X11/extensions/applewm.h>

View file

@ -54,12 +54,12 @@ SOFTWARE.
#include <dix-config.h> #include <dix-config.h>
#include <errno.h>
#include <stdio.h>
#ifdef WIN32 #ifdef WIN32
#include <X11/Xwinsock.h> #include <X11/Xwinsock.h>
#endif #endif
#include <X11/Xos.h> /* for strings, fcntl, time */ #include <X11/Xos.h> /* for strings, fcntl, time */
#include <errno.h>
#include <stdio.h>
#include <X11/X.h> #include <X11/X.h>
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
@ -70,7 +70,7 @@ SOFTWARE.
#include "misc.h" #include "misc.h"
#include "osdep.h" #include "osdep.h"
#include "dixstruct_priv.h" #include "dixstruct_priv.h"
#include "globals.h" #include "opaque.h"
#ifdef DPMSExtension #ifdef DPMSExtension
#include "dpmsproc.h" #include "dpmsproc.h"
#endif #endif

View file

@ -26,28 +26,11 @@ typedef int (*AuthRemCFunc) (AuthRemCArgs);
#define AuthRstCArgs void #define AuthRstCArgs void
typedef int (*AuthRstCFunc) (AuthRstCArgs); typedef int (*AuthRstCFunc) (AuthRstCArgs);
int set_font_authorizations(char **authorizations,
int *authlen,
void *client);
#define LCC_UID_SET (1 << 0) #define LCC_UID_SET (1 << 0)
#define LCC_GID_SET (1 << 1) #define LCC_GID_SET (1 << 1)
#define LCC_PID_SET (1 << 2) #define LCC_PID_SET (1 << 2)
#define LCC_ZID_SET (1 << 3) #define LCC_ZID_SET (1 << 3)
typedef struct {
int fieldsSet; /* Bit mask of fields set */
int euid; /* Effective uid */
int egid; /* Primary effective group id */
int nSuppGids; /* Number of supplementary group ids */
int *pSuppGids; /* Array of supplementary group ids */
int pid; /* Process id */
int zoneid; /* Only set on Solaris 10 & later */
} LocalClientCredRec;
int GetLocalClientCreds(ClientPtr, LocalClientCredRec **);
void FreeLocalClientCreds(LocalClientCredRec *);
void EnableLocalAccess(void); void EnableLocalAccess(void);
void DisableLocalAccess(void); void DisableLocalAccess(void);
@ -87,17 +70,8 @@ XID GenerateAuthorization(unsigned int name_length,
void RegisterAuthorizations(void); void RegisterAuthorizations(void);
void CheckUserAuthorization(void);
typedef struct sockaddr *sockaddrPtr; typedef struct sockaddr *sockaddrPtr;
int AddHost(ClientPtr client, int family, unsigned length, const void *pAddr);
Bool ForEachHostInFamily(int family,
Bool (*func)(unsigned char *addr, short len, void *closure),
void *closure);
int RemoveHost(ClientPtr client, int family, unsigned length, void *pAddr);
int GetHosts(void **data, int *pnHosts, int *pLen, BOOL *pEnabled);
int InvalidHost(sockaddrPtr saddr, int len, ClientPtr client);
void AddLocalHosts(void); void AddLocalHosts(void);
void ResetHosts(const char *display); void ResetHosts(const char *display);
@ -107,8 +81,6 @@ void DefineSelf(int fd);
/* check whether given addr belongs to ourself */ /* check whether given addr belongs to ourself */
void AugmentSelf(void *from, int len); void AugmentSelf(void *from, int len);
int ChangeAccessControl(ClientPtr client, int fEnabled);
void AccessUsingXdmcp(void); void AccessUsingXdmcp(void);
extern Bool defeatAccessControl; extern Bool defeatAccessControl;

View file

@ -34,7 +34,6 @@ pid_t GetClientPid(struct _Client *client);
const char *GetClientCmdName(struct _Client *client); const char *GetClientCmdName(struct _Client *client);
const char *GetClientCmdArgs(struct _Client *client); const char *GetClientCmdArgs(struct _Client *client);
Bool ClientIsLocal(struct _Client *client);
XID AuthorizationIDOfClient(struct _Client *client); XID AuthorizationIDOfClient(struct _Client *client);
const char *ClientAuthorized(struct _Client *client, const char *ClientAuthorized(struct _Client *client,
unsigned int proto_n, unsigned int proto_n,
@ -43,7 +42,6 @@ const char *ClientAuthorized(struct _Client *client,
char *auth_string); char *auth_string);
Bool AddClientOnOpenFD(int fd); Bool AddClientOnOpenFD(int fd);
void ListenOnOpenFD(int fd, int noxauth); void ListenOnOpenFD(int fd, int noxauth);
int ReadRequestFromClient(struct _Client *client);
int WriteFdToClient(struct _Client *client, int fd, Bool do_close); int WriteFdToClient(struct _Client *client, int fd, Bool do_close);
Bool InsertFakeRequest(struct _Client *client, char *data, int count); Bool InsertFakeRequest(struct _Client *client, char *data, int count);
void FlushAllOutput(void); void FlushAllOutput(void);

View file

@ -1,20 +0,0 @@
/* SPDX-License-Identifier: MIT OR X11
*
* Copyright © 2024 Enrico Weigelt, metux IT consult <info@metux.net>
*/
#ifndef _XSERVER_OS_CMDLINE_H
#define _XSERVER_OS_CMDLINE_H
#include "include/os.h"
#define CHECK_FOR_REQUIRED_ARGUMENTS(num) \
do if (((i + num) >= argc) || (!argv[i + num])) { \
UseMsg(); \
FatalError("Required argument to %s not specified\n", argv[i]); \
} while (0)
void UseMsg(void);
void ProcessCommandLine(int argc, char * argv[]);
void CheckUserParameters(int argc, char **argv, char **envp);
#endif /* _XSERVER_OS_CMELINE_H */

View file

@ -103,6 +103,7 @@ SOFTWARE.
#include "os/osdep.h" #include "os/osdep.h"
#include "misc.h" /* for typedef of pointer */ #include "misc.h" /* for typedef of pointer */
#include "opaque.h"
#include "dixstruct_priv.h" #include "dixstruct_priv.h"
#include "globals.h" #include "globals.h"
#include "xace.h" #include "xace.h"

Some files were not shown because too many files have changed in this diff Show more