#include "Input.h"
#include "vncExtInit.h"
+#include "RFBGlue.h"
#include "inputstr.h"
#if XORG >= 110
#include "XorgGlue.h"
-#ifdef RANDR
-extern RRModePtr vncRandRModeGet(int width, int height);
-#endif
-
const char *vncGetDisplay(void)
{
return display;
void vncRandRGetOutputDimensions(int scrIdx, int outputIdx,
int *x, int *y, int *width, int *height);
-// This one hides in xvnc.c or vncModule.c
+// These hide in xvnc.c or vncModule.c
+void vncClientGone(int fd);
+void *vncRandRModeGet(int width, int height);
int vncRandRCreateOutputs(int scrIdx, int extraOutputs);
#ifdef __cplusplus
#include "XorgGlue.h"
#include "Input.h"
-// Hack to catch when inetd has let us go
-extern "C" void vncClientGone(int fd);
-
using namespace rfb;
using namespace network;
#include "vncExtInit.h"
#include "RFBGlue.h"
+#include "XorgGlue.h"
static void vncModuleInit(INITARGS);
vncExtensionInit();
}
+void vncClientGone(int fd)
+{
+}
+
#ifdef RANDR
-RRModePtr vncRandRModeGet(int width, int height)
+void *vncRandRModeGet(int width, int height)
{
return NULL;
}
#include "vncExtInit.h"
#include "RFBGlue.h"
+#include "XorgGlue.h"
#include "xorg-version.h"
#ifdef WIN32
FlushAllOutput ();
}
-RRModePtr vncRandRModeGet(int width, int height);
static Bool vncRandRCrtcSet(ScreenPtr pScreen, RRCrtcPtr crtc, RRModePtr mode,
int x, int y, Rotation rotation, int num_outputs,
RROutputPtr *outputs);
static int vncRandRIndex = 0;
-/* This is a global symbol since XserverDesktop also uses it */
-RRModePtr vncRandRModeGet(int width, int height)
+/* This is a global symbol since findRandRMode() also uses it */
+void *vncRandRModeGet(int width, int height)
{
xRRModeInfo modeInfo;
char name[100];