mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-22 20:35:43 +00:00
General DIX static and dead code cleanup.
This commit is contained in:
parent
04b87d6dfa
commit
4b5802ddbd
18 changed files with 166 additions and 438 deletions
|
|
@ -220,8 +220,6 @@ extern int dixDestroyPixmap(
|
|||
pointer /*value*/,
|
||||
XID /*pid*/);
|
||||
|
||||
extern void CloseDownRetainedResources(void);
|
||||
|
||||
extern void InitClient(
|
||||
ClientPtr /*client*/,
|
||||
int /*i*/,
|
||||
|
|
@ -243,25 +241,10 @@ extern void DeleteWindowFromAnySelections(
|
|||
extern void MarkClientException(
|
||||
ClientPtr /*client*/);
|
||||
|
||||
extern int GetGeometry(
|
||||
ClientPtr /*client*/,
|
||||
xGetGeometryReply* /* wa */);
|
||||
|
||||
extern int SendConnSetup(
|
||||
ClientPtr /*client*/,
|
||||
char* /*reason*/);
|
||||
|
||||
extern int DoGetImage(
|
||||
ClientPtr /*client*/,
|
||||
int /*format*/,
|
||||
Drawable /*drawable*/,
|
||||
int /*x*/,
|
||||
int /*y*/,
|
||||
int /*width*/,
|
||||
int /*height*/,
|
||||
Mask /*planemask*/,
|
||||
xGetImageReply ** /*im_return*/);
|
||||
|
||||
#if defined(DDXBEFORERESET)
|
||||
extern void ddxBeforeReset (void);
|
||||
#endif
|
||||
|
|
@ -632,10 +615,6 @@ typedef struct _CallbackProcs {
|
|||
DeleteCallbackListProcPtr DeleteCallbackList;
|
||||
} CallbackFuncsRec, *CallbackFuncsPtr;
|
||||
|
||||
extern Bool CreateCallbackList(
|
||||
CallbackListPtr * /*pcbl*/,
|
||||
CallbackFuncsPtr /*cbfuncs*/);
|
||||
|
||||
extern Bool AddCallback(
|
||||
CallbackListPtr * /*pcbl*/,
|
||||
CallbackProcPtr /*callback*/,
|
||||
|
|
|
|||
|
|
@ -85,32 +85,11 @@ extern void NotImplemented ( /* FIXME: this may move to another file... */
|
|||
xEvent *,
|
||||
xEvent *);
|
||||
|
||||
typedef void (* ExtensionLookupProc)(
|
||||
#ifdef EXTENSION_PROC_ARGS
|
||||
EXTENSION_PROC_ARGS
|
||||
#else
|
||||
/* args no longer indeterminate */
|
||||
char *name,
|
||||
GCPtr pGC
|
||||
#endif
|
||||
);
|
||||
|
||||
typedef struct _ProcEntry {
|
||||
char *name;
|
||||
ExtensionLookupProc proc;
|
||||
} ProcEntryRec, *ProcEntryPtr;
|
||||
|
||||
typedef struct _ScreenProcEntry {
|
||||
int num;
|
||||
ProcEntryPtr procList;
|
||||
} ScreenProcEntry;
|
||||
|
||||
#define SetGCVector(pGC, VectorElement, NewRoutineAddress, Atom) \
|
||||
pGC->VectorElement = NewRoutineAddress;
|
||||
|
||||
#define GetGCValue(pGC, GCElement) (pGC->GCElement)
|
||||
|
||||
|
||||
extern ExtensionEntry *AddExtension(
|
||||
char* /*name*/,
|
||||
int /*NumEvents*/,
|
||||
|
|
@ -128,20 +107,6 @@ extern Bool AddExtensionAlias(
|
|||
extern ExtensionEntry *CheckExtension(const char *extname);
|
||||
extern ExtensionEntry *GetExtensionEntry(int major);
|
||||
|
||||
extern ExtensionLookupProc LookupProc(
|
||||
char* /*name*/,
|
||||
GCPtr /*pGC*/);
|
||||
|
||||
extern Bool RegisterProc(
|
||||
char* /*name*/,
|
||||
GCPtr /*pGC*/,
|
||||
ExtensionLookupProc /*proc*/);
|
||||
|
||||
extern Bool RegisterScreenProc(
|
||||
char* /*name*/,
|
||||
ScreenPtr /*pScreen*/,
|
||||
ExtensionLookupProc /*proc*/);
|
||||
|
||||
extern void DeclareExtensionSecurity(
|
||||
char * /*extname*/,
|
||||
Bool /*secure*/);
|
||||
|
|
|
|||
|
|
@ -126,11 +126,6 @@ extern int FreeGC(
|
|||
pointer /*pGC*/,
|
||||
XID /*gid*/);
|
||||
|
||||
extern void SetGCMask(
|
||||
GCPtr /*pGC*/,
|
||||
Mask /*selectMask*/,
|
||||
Mask /*newDataMask*/);
|
||||
|
||||
extern GCPtr CreateScratchGC(
|
||||
ScreenPtr /*pScreen*/,
|
||||
unsigned /*depth*/);
|
||||
|
|
|
|||
14
include/os.h
14
include/os.h
|
|
@ -348,12 +348,6 @@ extern void InitAuthorization(char * /*filename*/);
|
|||
|
||||
extern void RegisterAuthorizations(void);
|
||||
|
||||
extern XID AuthorizationToID (
|
||||
unsigned short name_length,
|
||||
char *name,
|
||||
unsigned short data_length,
|
||||
char *data);
|
||||
|
||||
extern int AuthorizationFromID (
|
||||
XID id,
|
||||
unsigned short *name_lenp,
|
||||
|
|
@ -402,14 +396,6 @@ extern int ddxProcessArgument(int /*argc*/, char * /*argv*/ [], int /*i*/);
|
|||
|
||||
extern void ddxUseMsg(void);
|
||||
|
||||
/*
|
||||
* idiom processing stuff
|
||||
*/
|
||||
|
||||
extern xReqPtr PeekNextRequest(xReqPtr req, ClientPtr client, Bool readmore);
|
||||
|
||||
extern void SkipRequests(xReqPtr req, ClientPtr client, int numskipped);
|
||||
|
||||
/* int ReqLen(xReq *req, ClientPtr client)
|
||||
* Given a pointer to a *complete* request, return its length in bytes.
|
||||
* Note that if the request is a big request (as defined in the Big
|
||||
|
|
|
|||
|
|
@ -91,9 +91,6 @@ extern void SQueryPointerReply(
|
|||
int /* size */,
|
||||
xQueryPointerReply * /* pRep */);
|
||||
|
||||
extern void SwapTimecoord(
|
||||
xTimecoord * /* pCoord */);
|
||||
|
||||
extern void SwapTimeCoordWrite(
|
||||
ClientPtr /* pClient */,
|
||||
int /* size */,
|
||||
|
|
@ -174,9 +171,6 @@ extern void SAllocColorPlanesReply(
|
|||
int /* size */,
|
||||
xAllocColorPlanesReply * /* pRep */);
|
||||
|
||||
extern void SwapRGB(
|
||||
xrgb * /* prgb */);
|
||||
|
||||
extern void SQColorsExtend(
|
||||
ClientPtr /* pClient */,
|
||||
int /* size */,
|
||||
|
|
@ -255,18 +249,6 @@ extern void WriteSConnectionInfo(
|
|||
unsigned long /* size */,
|
||||
char * /* pInfo */);
|
||||
|
||||
extern void SwapConnSetup(
|
||||
xConnSetup * /* pConnSetup */,
|
||||
xConnSetup * /* pConnSetupT */);
|
||||
|
||||
extern void SwapWinRoot(
|
||||
xWindowRoot * /* pRoot */,
|
||||
xWindowRoot * /* pRootT */);
|
||||
|
||||
extern void SwapVisual(
|
||||
xVisualType * /* pVis */,
|
||||
xVisualType * /* pVisT */);
|
||||
|
||||
extern void SwapConnSetupPrefix(
|
||||
xConnSetupPrefix * /* pcspFrom */,
|
||||
xConnSetupPrefix * /* pcspTo */);
|
||||
|
|
|
|||
|
|
@ -93,14 +93,6 @@ extern Bool CreateRootWindow(
|
|||
extern void InitRootWindow(
|
||||
WindowPtr /*pWin*/);
|
||||
|
||||
extern void ClippedRegionFromBox(
|
||||
WindowPtr /*pWin*/,
|
||||
RegionPtr /*Rgn*/,
|
||||
int /*x*/,
|
||||
int /*y*/,
|
||||
int /*w*/,
|
||||
int /*h*/);
|
||||
|
||||
typedef WindowPtr (* RealChildHeadProc) (WindowPtr pWin);
|
||||
|
||||
void RegisterRealChildHeadProc (RealChildHeadProc proc);
|
||||
|
|
@ -205,12 +197,6 @@ extern void UnmapSubwindows(
|
|||
extern void HandleSaveSet(
|
||||
ClientPtr /*client*/);
|
||||
|
||||
extern Bool VisibleBoundingBoxFromPoint(
|
||||
WindowPtr /*pWin*/,
|
||||
int /*x*/,
|
||||
int /*y*/,
|
||||
BoxPtr /*box*/);
|
||||
|
||||
extern Bool PointInWindowIsVisible(
|
||||
WindowPtr /*pWin*/,
|
||||
int /*x*/,
|
||||
|
|
@ -235,9 +221,6 @@ extern void CheckWindowOptionalNeed(
|
|||
extern Bool MakeWindowOptional(
|
||||
WindowPtr /*pWin*/);
|
||||
|
||||
extern void DisposeWindowOptional(
|
||||
WindowPtr /*pWin*/);
|
||||
|
||||
extern WindowPtr MoveWindowInStack(
|
||||
WindowPtr /*pWin*/,
|
||||
WindowPtr /*pNextSib*/);
|
||||
|
|
@ -271,7 +254,5 @@ extern void DisableMapUnmapEvents(
|
|||
WindowPtr /* pWin */ );
|
||||
extern void EnableMapUnmapEvents(
|
||||
WindowPtr /* pWin */ );
|
||||
extern Bool MapUnmapEventsEnabled(
|
||||
WindowPtr /* pWin */ );
|
||||
|
||||
#endif /* WINDOW_H */
|
||||
|
|
|
|||
Loading…
Reference in a new issue