Blame SOURCES/tigervnc-1.3.1-xserver-1.16.patch

288618
diff -up tigervnc-1.3.0/unix/xserver/hw/vnc/xorg-version.h.jx tigervnc-1.3.0/unix/xserver/hw/vnc/xorg-version.h
288618
--- tigervnc-1.3.0/unix/xserver/hw/vnc/xorg-version.h.jx	2013-07-01 08:41:24.000000000 -0400
288618
+++ tigervnc-1.3.0/unix/xserver/hw/vnc/xorg-version.h	2013-11-07 11:39:49.749992669 -0500
288618
@@ -44,8 +44,12 @@
288618
 #define XORG 113
288618
 #elif XORG_VERSION_CURRENT < ((1 * 10000000) + (14 * 100000) + (99 * 1000))
288618
 #define XORG 114
288618
+#elif XORG_VERSION_CURRENT < ((1 * 10000000) + (15 * 100000) + (99 * 1000))
288618
+#define XORG 115
288618
+#elif XORG_VERSION_CURRENT < ((1 * 10000000) + (16 * 100000) + (99 * 1000))
288618
+#define XORG 116
288618
 #else
288618
-#error "X.Org newer than 1.14 is not supported"
288618
+#error "X.Org newer than 1.16 is not supported"
288618
 #endif
288618
 
288618
 #endif
288618
288618
diff -up tigervnc-1.3.1/unix/xserver/hw/vnc/Input.cc.116 tigervnc-1.3.1/unix/xserver/hw/vnc/Input.cc
288618
--- tigervnc-1.3.1/unix/xserver/hw/vnc/Input.cc.116	2013-05-30 16:53:40.000000000 +0200
288618
+++ tigervnc-1.3.1/unix/xserver/hw/vnc/Input.cc	2014-04-28 16:55:02.591440218 +0200
288618
@@ -262,7 +262,7 @@ static int pointerProc(DeviceIntPtr pDev
288618
 	return Success;
288618
 }
288618
 
288618
-static void keyboardBell(int percent, DeviceIntPtr device, pointer ctrl,
288618
+static void keyboardBell(int percent, DeviceIntPtr device, void * ctrl,
288618
 			 int class_)
288618
 {
288618
 	if (percent > 0)
288618
diff -up tigervnc-1.3.1/unix/xserver/hw/vnc/XserverDesktop.cc.116 tigervnc-1.3.1/unix/xserver/hw/vnc/XserverDesktop.cc
288618
--- tigervnc-1.3.1/unix/xserver/hw/vnc/XserverDesktop.cc.116	2014-04-28 16:55:02.530441812 +0200
288618
+++ tigervnc-1.3.1/unix/xserver/hw/vnc/XserverDesktop.cc	2014-04-28 16:55:02.592440192 +0200
288618
@@ -48,7 +48,7 @@ extern "C" {
288618
 #define public c_public
288618
 #define class c_class
288618
 
288618
-extern char *display;
288618
+extern const char *display;
288618
 
288618
 #include "colormapst.h"
288618
 #ifdef RANDR
288618
@@ -174,7 +174,7 @@ void XserverDesktop::serverReset(ScreenP
288618
 {
288618
   pScreen = pScreen_;
288618
   int i;
288618
-  pointer retval;
288618
+  void * retval;
288618
 
288618
 #if XORG >= 17
288618
 #define dixLookupResource dixLookupResourceByType
288618
diff -up tigervnc-1.3.1/unix/xserver/hw/vnc/vncExtInit.cc.116 tigervnc-1.3.1/unix/xserver/hw/vnc/vncExtInit.cc
288618
--- tigervnc-1.3.1/unix/xserver/hw/vnc/vncExtInit.cc.116	2014-04-28 16:55:02.524441969 +0200
288618
+++ tigervnc-1.3.1/unix/xserver/hw/vnc/vncExtInit.cc	2014-04-28 16:55:02.592440192 +0200
288618
@@ -65,18 +65,18 @@ extern "C" {
288618
 
288618
   extern void vncExtensionInit();
288618
   static void vncResetProc(ExtensionEntry* extEntry);
288618
-  static void vncBlockHandler(pointer data, OSTimePtr t, pointer readmask);
288618
-  static void vncWakeupHandler(pointer data, int nfds, pointer readmask);
288618
+  static void vncBlockHandler(void * data, OSTimePtr t, void * readmask);
288618
+  static void vncWakeupHandler(void * data, int nfds, void * readmask);
288618
   void vncWriteBlockHandler(fd_set *fds);
288618
   void vncWriteWakeupHandler(int nfds, fd_set *fds);
288618
-  static void vncClientStateChange(CallbackListPtr*, pointer, pointer);
288618
+  static void vncClientStateChange(CallbackListPtr*, void *, void *);
288618
   static void SendSelectionChangeEvent(Atom selection);
288618
   static int ProcVncExtDispatch(ClientPtr client);
288618
   static int SProcVncExtDispatch(ClientPtr client);
288618
-  static void vncSelectionCallback(CallbackListPtr *callbacks, pointer data,
288618
-				   pointer args);
288618
+  static void vncSelectionCallback(CallbackListPtr *callbacks, void * data,
288618
+				   void * args);
288618
 
288618
-  extern char *display;
288618
+  extern const char *display;
288618
   extern char *listenaddr;
288618
 }
288618
 
288618
@@ -284,7 +284,7 @@ static void vncResetProc(ExtensionEntry*
288618
 {
288618
 }
288618
 
288618
-static void vncSelectionCallback(CallbackListPtr *callbacks, pointer data, pointer args)
288618
+static void vncSelectionCallback(CallbackListPtr *callbacks, void * data, void * args)
288618
 {
288618
   SelectionInfoRec *info = (SelectionInfoRec *) args;
288618
   Selection *selection = info->selection;
288618
@@ -301,7 +301,7 @@ static void vncWriteWakeupHandlerFallbac
288618
 // selections have changed, and if so, notify any interested X clients.
288618
 //
288618
 
288618
-static void vncBlockHandler(pointer data, OSTimePtr timeout, pointer readmask)
288618
+static void vncBlockHandler(void * data, OSTimePtr timeout, void * readmask)
288618
 {
288618
   fd_set* fds = (fd_set*)readmask;
288618
 
288618
@@ -312,7 +312,7 @@ static void vncBlockHandler(pointer data
288618
       desktop[scr]->blockHandler(fds, timeout);
288618
 }
288618
 
288618
-static void vncWakeupHandler(pointer data, int nfds, pointer readmask)
288618
+static void vncWakeupHandler(void * data, int nfds, void * readmask)
288618
 {
288618
   fd_set* fds = (fd_set*)readmask;
288618
 
288618
@@ -402,7 +402,7 @@ static void vncWriteWakeupHandlerFallbac
288618
   vncWriteWakeupHandler(ret, &fallbackFds);
288618
 }
288618
 
288618
-static void vncClientStateChange(CallbackListPtr*, pointer, pointer p)
288618
+static void vncClientStateChange(CallbackListPtr*, void *, void * p)
288618
 {
288618
   ClientPtr client = ((NewClientInfoRec*)p)->client;
288618
   if (client->clientState == ClientStateGone) {
288618
@@ -468,7 +468,7 @@ void vncClientCutText(const char* str, i
288618
 
288618
 
288618
 static CARD32 queryConnectTimerCallback(OsTimerPtr timer,
288618
-                                        CARD32 now, pointer arg)
288618
+                                        CARD32 now, void * arg)
288618
 {
288618
   if (queryConnectTimeout)
288618
     queryConnectDesktop->approveConnection(queryConnectId, false, "The attempt to prompt the user to accept the connection failed");
288618
diff -up tigervnc-1.3.1/unix/xserver/hw/vnc/vncHooks.cc.116 tigervnc-1.3.1/unix/xserver/hw/vnc/vncHooks.cc
288618
--- tigervnc-1.3.1/unix/xserver/hw/vnc/vncHooks.cc.116	2013-05-22 14:57:16.000000000 +0200
288618
+++ tigervnc-1.3.1/unix/xserver/hw/vnc/vncHooks.cc	2014-04-28 16:55:02.593440166 +0200
288618
@@ -91,8 +91,8 @@ typedef struct {
288618
 } vncHooksScreenRec, *vncHooksScreenPtr;
288618
 
288618
 typedef struct {
288618
-    GCFuncs *wrappedFuncs;
288618
-    GCOps *wrappedOps;
288618
+    const GCFuncs *wrappedFuncs;
288618
+    const GCOps *wrappedOps;
288618
 } vncHooksGCRec, *vncHooksGCPtr;
288618
 
288618
 #if XORG == 15
288618
@@ -141,11 +141,11 @@ static Bool vncHooksDisplayCursor(
288618
 #endif
288618
 				  ScreenPtr pScreen, CursorPtr cursor);
288618
 #if XORG < 112
288618
-static void vncHooksBlockHandler(int i, pointer blockData, pointer pTimeout,
288618
-                                 pointer pReadmask);
288618
+static void vncHooksBlockHandler(int i, void * blockData, void * pTimeout,
288618
+                                 void * pReadmask);
288618
 #else
288618
-static void vncHooksBlockHandler(ScreenPtr pScreen, pointer pTimeout,
288618
-                                 pointer pReadmask);
288618
+static void vncHooksBlockHandler(ScreenPtr pScreen, void * pTimeout,
288618
+                                 void * pReadmask);
288618
 #endif
288618
 #ifdef RENDER
288618
 static void vncHooksComposite(CARD8 op, PicturePtr pSrc, PicturePtr pMask, 
288618
@@ -174,7 +174,7 @@ static void vncHooksValidateGC(GCPtr pGC
288618
 static void vncHooksChangeGC(GCPtr pGC, unsigned long mask);
288618
 static void vncHooksCopyGC(GCPtr src, unsigned long mask, GCPtr dst);
288618
 static void vncHooksDestroyGC(GCPtr pGC);
288618
-static void vncHooksChangeClip(GCPtr pGC, int type, pointer pValue,int nrects);
288618
+static void vncHooksChangeClip(GCPtr pGC, int type, void * pValue,int nrects);
288618
 static void vncHooksDestroyClip(GCPtr pGC);
288618
 static void vncHooksCopyClip(GCPtr dst, GCPtr src);
288618
 
288618
@@ -226,10 +226,10 @@ static void vncHooksImageText16(Drawable
288618
                                 int count, unsigned short *chars);
288618
 static void vncHooksImageGlyphBlt(DrawablePtr pDrawable, GCPtr pGC, int x,
288618
                                   int y, unsigned int nglyph,
288618
-                                  CharInfoPtr *ppci, pointer pglyphBase);
288618
+                                  CharInfoPtr *ppci, void * pglyphBase);
288618
 static void vncHooksPolyGlyphBlt(DrawablePtr pDrawable, GCPtr pGC, int x,
288618
                                  int y, unsigned int nglyph,
288618
-                                 CharInfoPtr *ppci, pointer pglyphBase);
288618
+                                 CharInfoPtr *ppci, void * pglyphBase);
288618
 static void vncHooksPushPixels(GCPtr pGC, PixmapPtr pBitMap,
288618
                                DrawablePtr pDrawable, int w, int h, int x,
288618
                                int y);
288618
@@ -575,11 +575,11 @@ static Bool vncHooksDisplayCursor(
288618
 // these are just drawing the cursor.
288618
 
288618
 #if XORG < 112
288618
-static void vncHooksBlockHandler(int i, pointer blockData, pointer pTimeout,
288618
-                                 pointer pReadmask)
288618
+static void vncHooksBlockHandler(int i, void * blockData, void * pTimeout,
288618
+                                 void * pReadmask)
288618
 #else
288618
-static void vncHooksBlockHandler(ScreenPtr pScreen_, pointer pTimeout,
288618
-                                 pointer pReadmask)
288618
+static void vncHooksBlockHandler(ScreenPtr pScreen_, void * pTimeout,
288618
+                                 void * pReadmask)
288618
 #endif
288618
 {
288618
 #if XORG < 112
288618
@@ -914,7 +914,7 @@ static void vncHooksDestroyGC(GCPtr pGC)
288618
   GCFuncUnwrapper u(pGC);
288618
   (*pGC->funcs->DestroyGC) (pGC);
288618
 }
288618
-static void vncHooksChangeClip(GCPtr pGC, int type, pointer pValue, int nrects)
288618
+static void vncHooksChangeClip(GCPtr pGC, int type, void * pValue, int nrects)
288618
 {
288618
   GCFuncUnwrapper u(pGC);
288618
   (*pGC->funcs->ChangeClip) (pGC, type, pValue, nrects);
288618
@@ -954,7 +954,7 @@ public:
288618
   }
288618
   GCPtr pGC;
288618
   vncHooksGCPtr vncHooksGC;
288618
-  GCFuncs* oldFuncs;
288618
+  const GCFuncs* oldFuncs;
288618
   ScreenPtr pScreen;
288618
 };
288618
 
288618
@@ -1793,7 +1793,7 @@ static void vncHooksImageText16(Drawable
288618
 
288618
 static void vncHooksImageGlyphBlt(DrawablePtr pDrawable, GCPtr pGC, int x,
288618
                                   int y, unsigned int nglyph,
288618
-                                  CharInfoPtr *ppci, pointer pglyphBase)
288618
+                                  CharInfoPtr *ppci, void * pglyphBase)
288618
 {
288618
   GC_OP_UNWRAPPER(pDrawable, pGC, ImageGlyphBlt);
288618
 
288618
@@ -1819,7 +1819,7 @@ static void vncHooksImageGlyphBlt(Drawab
288618
 
288618
 static void vncHooksPolyGlyphBlt(DrawablePtr pDrawable, GCPtr pGC, int x,
288618
                                  int y, unsigned int nglyph,
288618
-                                 CharInfoPtr *ppci, pointer pglyphBase)
288618
+                                 CharInfoPtr *ppci, void * pglyphBase)
288618
 {
288618
   GC_OP_UNWRAPPER(pDrawable, pGC, PolyGlyphBlt);
288618
 
288618
diff -up tigervnc-1.3.1/unix/xserver/hw/vnc/xf86vncModule.cc.116 tigervnc-1.3.1/unix/xserver/hw/vnc/xf86vncModule.cc
288618
--- tigervnc-1.3.1/unix/xserver/hw/vnc/xf86vncModule.cc.116	2013-03-14 18:52:53.000000000 +0100
288618
+++ tigervnc-1.3.1/unix/xserver/hw/vnc/xf86vncModule.cc	2014-04-28 16:55:02.593440166 +0200
288618
@@ -81,11 +81,11 @@ static XF86ModuleVersionInfo vncVersRec
288618
 
288618
 _X_EXPORT XF86ModuleData vncModuleData = { &vncVersRec, vncSetup, NULL };
288618
 
288618
-static pointer
288618
-vncSetup(pointer module, pointer opts, int *errmaj, int *errmin) {
288618
-    LoadExtension(&vncExt, FALSE);
288618
+static void *
288618
+vncSetup(void * module, void * opts, int *errmaj, int *errmin) {
288618
+    LoadExtensionList(&vncExt, 1, FALSE);
288618
     /* Need a non-NULL return value to indicate success */
288618
-    return (pointer)1;
288618
+    return (void *)1;
288618
 }
288618
 
288618
 static void vncExtensionInitWithParams(INITARGS)
288618
diff -up tigervnc-1.3.1/unix/xserver/hw/vnc/xvnc.cc.116 tigervnc-1.3.1/unix/xserver/hw/vnc/xvnc.cc
288618
--- tigervnc-1.3.1/unix/xserver/hw/vnc/xvnc.cc.116	2014-03-19 13:11:09.000000000 +0100
288618
+++ tigervnc-1.3.1/unix/xserver/hw/vnc/xvnc.cc	2014-04-28 16:53:12.580314921 +0200
288618
@@ -103,7 +103,7 @@ extern "C" {
288618
                        "See http://www.tigervnc.org for information on TigerVNC.\n")
288618
 
288618
 
288618
-extern char *display;
288618
+extern const char *display;
288618
 extern int monitorResolution;
288618
 
288618
 #define VFB_DEFAULT_WIDTH  1024
288618
@@ -762,7 +762,7 @@ vfbUninstallColormap(ColormapPtr pmap)
288618
 	    curpmap = (ColormapPtr) LookupIDByType(pmap->pScreen->defColormap,
288618
 						   RT_COLORMAP);
288618
 #else
288618
-	    dixLookupResourceByType((pointer *) &curpmap, pmap->pScreen->defColormap,
288618
+	    dixLookupResourceByType((void * *) &curpmap, pmap->pScreen->defColormap,
288618
 				    RT_COLORMAP, serverClient, DixUnknownAccess);
288618
 #endif
288618
 	    (*pmap->pScreen->InstallColormap)(curpmap);
288618
@@ -1597,7 +1597,7 @@ vfbScreenInit(ScreenPtr pScreen, int arg
288618
 } /* end vfbScreenInit */
288618
 
288618
 
288618
-static void vfbClientStateChange(CallbackListPtr*, pointer, pointer) {
288618
+static void vfbClientStateChange(CallbackListPtr*, void *, void *) {
288618
   dispatchException &= ~DE_RESET;
288618
 }
288618
  
288618
@@ -1625,7 +1625,7 @@ InitOutput(ScreenInfo *screenInfo, int a
288618
 #if XORG >= 113
288618
 #ifdef GLXEXT
288618
     if (serverGeneration == 1)
288618
-        LoadExtension(&glxExt, TRUE);
288618
+        LoadExtensionList(&glxExt, 1, TRUE);
288618
 #endif
288618
 #endif
288618