diff options
Diffstat (limited to 'xorg-server/include')
28 files changed, 153 insertions, 22 deletions
diff --git a/xorg-server/include/callback.h b/xorg-server/include/callback.h index fe7015ee7..8a65af88b 100644..100755 --- a/xorg-server/include/callback.h +++ b/xorg-server/include/callback.h @@ -52,6 +52,10 @@ SOFTWARE. #include <X11/Xproto.h> #include <X11/Xfuncproto.h> +#ifdef _MSC_VER +#define inline __inline +#endif + /* * callback manager stuff */ diff --git a/xorg-server/include/closestr.h b/xorg-server/include/closestr.h index 60e6f09bc..87a2f1781 100644 --- a/xorg-server/include/closestr.h +++ b/xorg-server/include/closestr.h @@ -52,6 +52,7 @@ typedef struct _OFclosure { XID fontid; char *fontname; int fnamelen; + Bool from_dispatch; FontPtr non_cachable_font; } OFclosureRec; @@ -77,6 +78,7 @@ typedef struct _LFWIclosure { LFWIstateRec saved; int savedNumFonts; Bool haveSaved; + Bool from_dispatch; char *savedName; } LFWIclosureRec; @@ -90,6 +92,7 @@ typedef struct _LFclosure { LFWIstateRec current; LFWIstateRec saved; Bool haveSaved; + Bool from_dispatch; char *savedName; int savedNameLen; } LFclosureRec; @@ -108,6 +111,7 @@ typedef struct _PTclosure { CARD8 reqType; XID did; int err; + Bool from_dispatch; } PTclosureRec; /* ImageText */ @@ -122,5 +126,6 @@ typedef struct _ITclosure { int yorg; CARD8 reqType; XID did; + Bool from_dispatch; } ITclosureRec; #endif /* CLOSESTR_H */ diff --git a/xorg-server/include/colormap.h b/xorg-server/include/colormap.h index b89bbe114..b89bbe114 100644..100755 --- a/xorg-server/include/colormap.h +++ b/xorg-server/include/colormap.h diff --git a/xorg-server/include/cursor.h b/xorg-server/include/cursor.h index 1e483ac40..1e483ac40 100644..100755 --- a/xorg-server/include/cursor.h +++ b/xorg-server/include/cursor.h diff --git a/xorg-server/include/dix.h b/xorg-server/include/dix.h index 116da2e2c..116da2e2c 100644..100755 --- a/xorg-server/include/dix.h +++ b/xorg-server/include/dix.h diff --git a/xorg-server/include/dixfont.h b/xorg-server/include/dixfont.h index 48c630539..48c630539 100644..100755 --- a/xorg-server/include/dixfont.h +++ b/xorg-server/include/dixfont.h diff --git a/xorg-server/include/dixgrabs.h b/xorg-server/include/dixgrabs.h index 3bd80132b..3bd80132b 100644..100755 --- a/xorg-server/include/dixgrabs.h +++ b/xorg-server/include/dixgrabs.h diff --git a/xorg-server/include/dixstruct.h b/xorg-server/include/dixstruct.h index 6c13895d7..02ba33ec2 100644 --- a/xorg-server/include/dixstruct.h +++ b/xorg-server/include/dixstruct.h @@ -90,7 +90,7 @@ typedef struct _Client { int priority; ReplySwapPtr pSwapReplyFunc; XID errorValue; - int sequence; + unsigned short sequence; //MH int ignoreCount; /* count for Attend/IgnoreClient */ int numSaved; SaveSetElt *saveSet; diff --git a/xorg-server/include/gc.h b/xorg-server/include/gc.h index eb0a5835e..cb2909e29 100644..100755 --- a/xorg-server/include/gc.h +++ b/xorg-server/include/gc.h @@ -87,8 +87,8 @@ extern _X_EXPORT void ValidateGC(DrawablePtr /*pDraw */ , GCPtr /*pGC */ ); typedef union { - CARD32 val; void *ptr; + CARD32 val; } ChangeGCVal, *ChangeGCValPtr; extern int ChangeGCXIDs(ClientPtr /*client */ , diff --git a/xorg-server/include/gcstruct.h b/xorg-server/include/gcstruct.h index 6358b8cb7..6358b8cb7 100644..100755 --- a/xorg-server/include/gcstruct.h +++ b/xorg-server/include/gcstruct.h diff --git a/xorg-server/include/input.h b/xorg-server/include/input.h index 35ceafa88..d30333a88 100644..100755 --- a/xorg-server/include/input.h +++ b/xorg-server/include/input.h @@ -573,7 +573,7 @@ extern void TouchEventHistoryReplay(TouchPointInfoPtr ti, DeviceIntPtr dev, extern Bool TouchResourceIsOwner(TouchPointInfoPtr ti, XID resource); extern void TouchAddListener(TouchPointInfoPtr ti, XID resource, int resource_type, enum InputLevel level, enum TouchListenerType type, - enum TouchListenerState state, WindowPtr window, GrabPtr grab); + enum TouchListenerState state, WindowPtr window, const GrabPtr grab); extern Bool TouchRemoveListener(TouchPointInfoPtr ti, XID resource); extern void TouchSetupListeners(DeviceIntPtr dev, TouchPointInfoPtr ti, InternalEvent *ev); diff --git a/xorg-server/include/list.h b/xorg-server/include/list.h index 455c670d3..7bf3cc5f4 100644 --- a/xorg-server/include/list.h +++ b/xorg-server/include/list.h @@ -305,7 +305,7 @@ xorg_list_is_empty(struct xorg_list *head) * */ #define xorg_list_for_each_entry(pos, head, member) \ - for (pos = __container_of((head)->next, pos, member); \ + for (pos = NULL, pos = __container_of((head)->next, pos, member); \ &pos->member != (head); \ pos = __container_of(pos->member.next, pos, member)) @@ -317,7 +317,7 @@ xorg_list_is_empty(struct xorg_list *head) * See xorg_list_for_each_entry for more details. */ #define xorg_list_for_each_entry_safe(pos, tmp, head, member) \ - for (pos = __container_of((head)->next, pos, member), \ + for (pos = NULL, pos = __container_of((head)->next, pos, member), \ tmp = __container_of(pos->member.next, pos, member); \ &pos->member != (head); \ pos = tmp, tmp = __container_of(pos->member.next, tmp, member)) diff --git a/xorg-server/include/misc.h b/xorg-server/include/misc.h index 9c2f573b9..594017a26 100644 --- a/xorg-server/include/misc.h +++ b/xorg-server/include/misc.h @@ -79,6 +79,16 @@ OF THIS SOFTWARE. #include <stddef.h> #include <stdint.h> +#include <unistd.h> + +#ifdef _MSC_VER +#define inline __inline +#include <math.h> +static double __inline trunc(double d) +{ + return (d>0) ? floor(d) : ceil(d) ; +} +#endif #ifndef MAXSCREENS #define MAXSCREENS 16 @@ -86,7 +96,7 @@ OF THIS SOFTWARE. #ifndef MAXGPUSCREENS #define MAXGPUSCREENS 16 #endif -#define MAXCLIENTS 256 +#define MAXCLIENTS 1024 #define MAXEXTENSIONS 128 #define MAXFORMATS 8 #define MAXDEVICES 40 /* input devices */ @@ -173,9 +183,9 @@ lswaps(uint16_t x) #include <math.h> #undef MAXSHORT -#define MAXSHORT SHRT_MAX +#define MAXSHORT 32767 #undef MINSHORT -#define MINSHORT SHRT_MIN +#define MINSHORT -32768 #undef MAXINT #define MAXINT INT_MAX #undef MININT @@ -203,7 +213,7 @@ lswaps(uint16_t x) * @param bits The minimum number of bits needed. * @return The number of bytes needed to hold bits. */ -static inline int +static __inline int bits_to_bytes(const int bits) { return ((bits + 7) >> 3); @@ -215,7 +225,7 @@ bits_to_bytes(const int bits) * @param bytes The minimum number of bytes needed. * @return The number of 4-byte units needed to hold bytes. */ -static inline int +static __inline int bytes_to_int32(const int bytes) { return (((bytes) + 3) >> 2); @@ -226,7 +236,7 @@ bytes_to_int32(const int bytes) * @param bytes The minimum number of bytes needed. * @return The closest multiple of 4 that is equal or higher than bytes. */ -static inline int +static __inline int pad_to_int32(const int bytes) { return (((bytes) + 3) & ~3); @@ -426,7 +436,7 @@ extern _X_EXPORT unsigned long serverGeneration; do { if (cond) { \ ErrorFSigSafe("BUG: triggered 'if (" #cond ")'\n"); \ ErrorFSigSafe("BUG: %s:%u in %s()\n", \ - __FILE__, __LINE__, __func__); \ + __FILE__, __LINE__, __FUNCTION__); \ if (with_msg) ErrorFSigSafe(__VA_ARGS__); \ xorg_backtrace(); \ } } while(0) diff --git a/xorg-server/include/os.h b/xorg-server/include/os.h index e4ec4b1b8..2e2dca0c3 100644..100755 --- a/xorg-server/include/os.h +++ b/xorg-server/include/os.h @@ -117,6 +117,8 @@ extern _X_EXPORT int WriteToClient(ClientPtr /*who */ , int /*count */ , extern _X_EXPORT void ResetOsBuffers(void); +extern _X_EXPORT int TransIsListening(char *protocol); + extern _X_EXPORT void InitConnectionLimits(void); extern _X_EXPORT void NotifyParentProcess(void); @@ -422,7 +424,7 @@ extern _X_EXPORT void AccessUsingXdmcp(void); extern _X_EXPORT void -DefineSelf(int /*fd */ ); +DefineSelf(int /*fd */ , const int /*protocol*/); #if XDMCP extern _X_EXPORT void @@ -630,10 +632,20 @@ _X_ATTRIBUTE_PRINTF(1, 2) #define DebugF(...) /* */ #endif +#ifdef _MSC_VER +#ifdef INSERVER +#define SERVEXTERN _declspec(dllimport) +#else +#define SERVEXTERN _declspec(dllexport) +#endif +#else +#define SERVEXTERN _X_EXPORT +#endif + extern _X_EXPORT void VErrorF(const char *f, va_list args) _X_ATTRIBUTE_PRINTF(1, 0); -extern _X_EXPORT void +extern SERVEXTERN void ErrorF(const char *f, ...) _X_ATTRIBUTE_PRINTF(1, 2); extern _X_EXPORT void @@ -648,6 +660,10 @@ LogPrintMarkers(void); extern _X_EXPORT void xorg_backtrace(void); +#ifdef _MSC_VER +#define snprintf _snprintf +#endif + extern _X_EXPORT int os_move_fd(int fd); diff --git a/xorg-server/include/pixmap.h b/xorg-server/include/pixmap.h index 4b8fc244d..4b8fc244d 100644..100755 --- a/xorg-server/include/pixmap.h +++ b/xorg-server/include/pixmap.h diff --git a/xorg-server/include/pixmapstr.h b/xorg-server/include/pixmapstr.h index 2bdff98d9..1c0da7162 100644 --- a/xorg-server/include/pixmapstr.h +++ b/xorg-server/include/pixmapstr.h @@ -76,10 +76,8 @@ typedef struct _Pixmap { int refcnt; int devKind; /* This is the pitch of the pixmap, typically width*bpp/8. */ DevUnion devPrivate; /* When !NULL, devPrivate.ptr points to the raw pixel data. */ -#ifdef COMPOSITE short screen_x; short screen_y; -#endif unsigned usage_hint; /* see CREATE_PIXMAP_USAGE_* */ PixmapPtr master_pixmap; /* pointer to master copy of pixmap for pixmap sharing */ diff --git a/xorg-server/include/property.h b/xorg-server/include/property.h index cae44719b..cae44719b 100644..100755 --- a/xorg-server/include/property.h +++ b/xorg-server/include/property.h diff --git a/xorg-server/include/resource.h b/xorg-server/include/resource.h index fe56bb2a7..8ebced3a8 100644..100755 --- a/xorg-server/include/resource.h +++ b/xorg-server/include/resource.h @@ -69,7 +69,7 @@ typedef uint32_t RESTYPE; #define RC_LASTPREDEF RC_NEVERRETAIN #define RC_ANY (~(RESTYPE)0) -/* types for Resource routines */ +/* types for Resource routines. When you change one of them, please also update the predefTypes array in resource.c*/ #define RT_WINDOW ((RESTYPE)1|RC_DRAWABLE) #define RT_PIXMAP ((RESTYPE)2|RC_DRAWABLE) @@ -99,6 +99,9 @@ typedef uint32_t RESTYPE; #if MAXCLIENTS == 512 #define RESOURCE_CLIENT_BITS 9 #endif +#if MAXCLIENTS == 1024 +#define RESOURCE_CLIENT_BITS 10 +#endif /* client field offset */ #define CLIENTOFFSET (RESOURCE_AND_CLIENT_COUNT - RESOURCE_CLIENT_BITS) /* resource field */ diff --git a/xorg-server/include/scrnintstr.h b/xorg-server/include/scrnintstr.h index 269ff5a0c..444340ca8 100644..100755 --- a/xorg-server/include/scrnintstr.h +++ b/xorg-server/include/scrnintstr.h @@ -66,7 +66,7 @@ typedef struct _Visual { VisualID vid; short class; short bitsPerRGBValue; - short ColormapEntries; + long ColormapEntries; short nplanes; /* = log2 (ColormapEntries). This does not * imply that the screen has this many planes. * it may have more or fewer */ @@ -325,6 +325,10 @@ typedef void (*MarkUnrealizedWindowProcPtr) (WindowPtr /*pChild */ , WindowPtr /*pWin */ , Bool /*fromConfigure */ ); +#ifdef CreateWindow +#undef CreateWindow +#endif + typedef Bool (*DeviceCursorInitializeProcPtr) (DeviceIntPtr /* pDev */ , ScreenPtr /* pScreen */ ); diff --git a/xorg-server/include/servermd.h b/xorg-server/include/servermd.h index c88a5428d..3e6bcf45f 100644..100755 --- a/xorg-server/include/servermd.h +++ b/xorg-server/include/servermd.h @@ -66,6 +66,12 @@ SOFTWARE. #define GLYPHPADBYTES 4 #endif +#ifdef WIN32 +#define IMAGE_BYTE_ORDER LSBFirst +#define BITMAP_BIT_ORDER LSBFirst +#define GLYPHPADBYTES 4 +#endif + /* size of buffer to use with GetImage, measured in bytes. There's obviously * a trade-off between the amount of heap used and the number of times the * ddx routine has to be called. diff --git a/xorg-server/include/site.h b/xorg-server/include/site.h index 25caabbb3..52a5e8388 100644 --- a/xorg-server/include/site.h +++ b/xorg-server/include/site.h @@ -51,7 +51,7 @@ SOFTWARE. * server executable. */ #ifndef VENDOR_STRING -#define VENDOR_STRING "The X.Org Foundation" +#define VENDOR_STRING "HC-Consult" #endif /* @@ -60,7 +60,7 @@ SOFTWARE. * by the vendor. */ #ifndef VENDOR_RELEASE -#define VENDOR_RELEASE 6600 +#define VENDOR_RELEASE XORG_VERSION_CURRENT #endif /* diff --git a/xorg-server/include/version-config.h b/xorg-server/include/version-config.h new file mode 100644 index 000000000..b8d482ce8 --- /dev/null +++ b/xorg-server/include/version-config.h @@ -0,0 +1,16 @@ +/* version-config.h.in: not generated */ + +#ifndef VERSION_CONFIG_H +#define VERSION_CONFIG_H + +/* Vendor man version */ +#undef VENDOR_MAN_VERSION + +/* Vendor name */ +#define VENDOR_NAME "HC-Consult" + +/* Vendor release */ +#define VENDOR_RELEASE XORG_VERSION_CURRENT + +#endif /* VERSION_CONFIG_H */ + diff --git a/xorg-server/include/window.h b/xorg-server/include/window.h index c123728f0..c123728f0 100644..100755 --- a/xorg-server/include/window.h +++ b/xorg-server/include/window.h diff --git a/xorg-server/include/windowstr.h b/xorg-server/include/windowstr.h index 740f4a6c0..3afdec091 100644 --- a/xorg-server/include/windowstr.h +++ b/xorg-server/include/windowstr.h @@ -140,7 +140,7 @@ typedef struct _Window { RegionRec borderSize; DDXPointRec origin; /* position relative to parent */ unsigned short borderWidth; - unsigned short deliverableEvents; /* all masks from all clients */ + unsigned long deliverableEvents; /* all masks from all clients */ Mask eventMask; /* mask from the creating client */ PixUnion background; PixUnion border; diff --git a/xorg-server/include/xkb-config.h b/xorg-server/include/xkb-config.h new file mode 100644 index 000000000..7041656fe --- /dev/null +++ b/xorg-server/include/xkb-config.h @@ -0,0 +1,33 @@ +/* include/xkb-config.h. Generated from xkb-config.h.in by configure. */ +/* xkb-config.h.in: not at all generated. -*- c -*- + * + */ + +#ifndef _XKB_CONFIG_H_ +#define _XKB_CONFIG_H_ + +/* Default set of XKB rules. */ +#define XKB_DFLT_RULES "xorg" + +/* Default XKB model. */ +#define XKB_DFLT_MODEL "pc104" + +/* Default XKB layout. */ +#define XKB_DFLT_LAYOUT "us" + +/* Default XKB variant. */ +#define XKB_DFLT_VARIANT "" + +/* Default XKB options. */ +#define XKB_DFLT_OPTIONS "" + +/* Path to XKB definitions. */ +#define XKB_BASE_DIRECTORY "xkbdata" + +/* Path to xkbcomp. */ +#define XKB_BIN_DIRECTORY "." + +/* XKB output dir for compiled keymaps. */ +#define XKM_OUTPUT_DIR "xkbdata/compiled/" + +#endif /* _XKB_CONFIG_H_ */ diff --git a/xorg-server/include/xkbsrv.h b/xorg-server/include/xkbsrv.h index a4878fc9e..a4878fc9e 100644..100755 --- a/xorg-server/include/xkbsrv.h +++ b/xorg-server/include/xkbsrv.h diff --git a/xorg-server/include/xkbstr.h b/xorg-server/include/xkbstr.h index 935330c7c..b85bf9220 100644 --- a/xorg-server/include/xkbstr.h +++ b/xorg-server/include/xkbstr.h @@ -46,10 +46,10 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE. typedef struct _XkbStateRec { unsigned char group; /* base + latched + locked */ + unsigned char locked_group; /* FIXME: Why are base + latched short and not char?? */ unsigned short base_group; /* physically ... down? */ unsigned short latched_group; - unsigned char locked_group; unsigned char mods; /* base + latched + locked */ unsigned char base_mods; /* physically down */ diff --git a/xorg-server/include/xwin-config.h b/xorg-server/include/xwin-config.h new file mode 100644 index 000000000..e6c4488a3 --- /dev/null +++ b/xorg-server/include/xwin-config.h @@ -0,0 +1,36 @@ +/* + * xwin-config.h.in + * + * This file has all defines used in the xwin ddx + * + */ +#include <dix-config.h> + +/* Winsock networking */ +#define HAS_WINSOCK + +/* Cygwin has /dev/windows for signaling new win32 messages */ +/* #undef HAS_DEVWINDOWS */ + +/* Switch on debug messages */ +/* #undef CYGDEBUG */ +/* #undef CYGWINDOWING_DEBUG */ +/* #undef CYGMULTIWINDOW_DEBUG */ + +/* Define to 1 if unsigned long is 64 bits. */ +/* #undef _XSERVER64 */ + +/* Short vendor name */ +#define XVENDORNAMESHORT "VcXsrv" + +/* Vendor web address for support */ +#define __VENDORDWEBSUPPORT__ "http://www.hc-consult.be/" + +/* Location of system.XWinrc */ +#define SYSCONFDIR "." + +/* Default log location */ +#define DEFAULT_LOGDIR "." + +/* Whether we should re-locate the root to where the executable lives */ +/* #undef RELOCATE_PROJECTROOT */ |