Skip to content

Commit 1ddb16e

Browse files
committed
Also fix compile time issues on xvnc in tigervnc
1 parent 40cd37a commit 1ddb16e

38 files changed

+141
-88
lines changed

Xext/sync.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ PERFORMANCE OF THIS SOFTWARE.
7676
#include "protocol-versions.h"
7777
#include "inputstr.h"
7878
#include "misync_priv.h"
79+
#include "opaque.h"
7980

8081
/*
8182
* Local Global Variables

dix/dispatch.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,9 @@ Dispatch(void)
594594
}
595595
dispatchException &= ~DE_PRIORITYCHANGE;
596596
}
597+
#if defined(DDXBEFORERESET)
597598
ddxBeforeReset();
599+
#endif
598600
KillAllClients();
599601
dispatchException &= ~DE_RESET;
600602
SmartScheduleLatencyLimited = 0;

dix/dix_priv.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
#define MAX_BIG_REQUEST_SIZE 4194303
4949
extern long maxBigRequestSize;
5050

51-
extern char dispatchExceptionAtReset;
5251
extern int terminateDelay;
5352
extern Bool touchEmulatePointer;
5453

@@ -136,8 +135,6 @@ void EnableLimitedSchedulingLatency(void);
136135

137136
void DisableLimitedSchedulingLatency(void);
138137

139-
int dix_main(int argc, char *argv[], char *envp[]);
140-
141138
void SetMaskForEvent(int deviceid, Mask mask, int event);
142139

143140
void EnqueueEvent(InternalEvent *ev, DeviceIntPtr device);
@@ -281,19 +278,11 @@ extern Bool whiteRoot;
281278

282279
extern volatile char isItTimeToYield;
283280

284-
/* bit values for dispatchException */
285-
#define DE_RESET 1
286-
#define DE_TERMINATE 2
287-
#define DE_PRIORITYCHANGE 4 /* set when a client's priority changes */
288-
289-
extern volatile char dispatchException;
290-
291281
extern int ScreenSaverBlanking;
292282
extern int ScreenSaverAllowExposures;
293283
extern int defaultScreenSaverBlanking;
294284
extern int defaultScreenSaverAllowExposures;
295285
extern int displayfd;
296-
extern Bool explicit_display;
297286

298287
extern Bool disableBackingStore;
299288
extern Bool enableBackingStore;

dix/inpututils_priv.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,6 @@
3232

3333
extern Mask event_filters[MAXDEVICES][MAXEVENTS];
3434

35-
struct _ValuatorMask {
36-
int8_t last_bit; /* highest bit set in mask */
37-
int8_t has_unaccelerated;
38-
uint8_t mask[(MAX_VALUATORS + 7) / 8];
39-
double valuators[MAX_VALUATORS]; /* valuator data */
40-
double unaccelerated[MAX_VALUATORS]; /* valuator data */
41-
};
42-
4335
void verify_internal_event(const InternalEvent *ev);
4436
void init_device_event(DeviceEvent *event, DeviceIntPtr dev, Time ms,
4537
enum DeviceEventSource event_source);

dix/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Equipment Corporation.
119119
#include "extnsionst.h"
120120
#include "privates.h"
121121
#include "exevents.h"
122-
122+
#include "opaque.h"
123123
#ifdef DPMSExtension
124124
#include <X11/extensions/dpmsconst.h>
125125
#include "dpmsproc.h"
@@ -195,7 +195,7 @@ dix_main(int argc, char *argv[], char *envp[])
195195
dixResetRegistry();
196196
InitFonts();
197197
InitCallbackManager();
198-
InitOutput(argc, argv);
198+
InitOutput(NULL, argc, argv);
199199

200200
if (screenInfo.numScreens < 1)
201201
FatalError("no screens found");

dix/screenint_priv.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
#include "include/screenint.h"
1414
#include "include/scrnintstr.h" /* for screenInfo */
1515

16-
typedef Bool (*ScreenInitProcPtr)(ScreenPtr pScreen, int argc, char **argv);
17-
18-
int AddScreen(ScreenInitProcPtr pfnInit, int argc, char **argv);
1916
int AddGPUScreen(ScreenInitProcPtr pfnInit, int argc, char **argv);
2017

2118
void RemoveGPUScreen(ScreenPtr pScreen);
@@ -26,8 +23,6 @@ void DetachUnboundGPU(ScreenPtr unbound);
2623
void AttachOffloadGPU(ScreenPtr pScreen, ScreenPtr newScreen);
2724
void DetachOffloadGPU(ScreenPtr slave);
2825

29-
void InitOutput(int argc, char **argv);
30-
3126
static inline ScreenPtr dixGetMasterScreen(void) {
3227
return screenInfo.screens[0];
3328
}

hw/kdrive/ephyr/ephyrinit.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ InitCard(char *name)
6363
}
6464

6565
void
66-
InitOutput(int argc, char **argv)
66+
InitOutput(ScreenInfo *unused, int argc, char **argv)
6767
{
6868
KdInitOutput(argc, argv);
6969
}
@@ -111,6 +111,13 @@ ddxInputThreadInit(void)
111111
}
112112
#endif
113113

114+
#ifdef DDXBEFORERESET
115+
void
116+
ddxBeforeReset(void)
117+
{
118+
}
119+
#endif
120+
114121
void
115122
ddxUseMsg(void)
116123
{

hw/kdrive/ephyr/meson.build

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ srcs = [
44
'ephyrcursor.c',
55
'ephyr_draw.c',
66
'hostx.c',
7-
'../../stubs/ddxBeforeReset.c',
87
]
98

109
xephyr_dep = [

hw/kdrive/fbdev/fbinit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ ddxInputThreadInit(void)
5454
#endif
5555

5656
void
57-
InitOutput(int argc, char **argv)
57+
InitOutput(ScreenInfo *unused, int argc, char **argv)
5858
{
5959
if (serverGeneration == 1)
6060
ephyrExtensionInit();

hw/kdrive/fbdev/meson.build

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
srcs = [
22
'fbdev.c',
33
'fbinit.c',
4-
'../../stubs/ddxBeforeReset.c',
54
]
65

76
xfbdev_server = executable(

0 commit comments

Comments
 (0)