dix: make LEGAL_NEW_RESOURCE() macro private
Not used by any external driver, so no need to keep it in public header. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
2cc1ae4d20
commit
62b86f2b13
|
@ -43,6 +43,8 @@
|
|||
|
||||
#include <dix-config.h>
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
|
||||
#include "compint.h"
|
||||
#include "xace.h"
|
||||
#include "protocol-versions.h"
|
||||
|
|
|
@ -29,6 +29,14 @@
|
|||
#include "include/resource.h"
|
||||
#include "include/window.h"
|
||||
|
||||
#define LEGAL_NEW_RESOURCE(id,client) \
|
||||
do { \
|
||||
if (!LegalNewID((id), (client))) { \
|
||||
(client)->errorValue = (id); \
|
||||
return BadIDChoice; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
/* server setting: maximum size for big requests */
|
||||
#define MAX_BIG_REQUEST_SIZE 4194303
|
||||
extern long maxBigRequestSize;
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
#include "os/client_priv.h"
|
||||
|
||||
#include "glxserver.h"
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
|
||||
#include <dix-config.h>
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
|
||||
#include <dix.h>
|
||||
#include "vndserver.h"
|
||||
|
||||
|
|
|
@ -92,14 +92,6 @@ SOFTWARE.
|
|||
return(BadLength); \
|
||||
} while (0)
|
||||
|
||||
#define LEGAL_NEW_RESOURCE(id,client) \
|
||||
do { \
|
||||
if (!LegalNewID((id), (client))) { \
|
||||
(client)->errorValue = (id); \
|
||||
return BadIDChoice; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#define WriteReplyToClient(pClient, size, pReply) \
|
||||
do { \
|
||||
if ((pClient)->swapped) \
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
*/
|
||||
#include <dix-config.h>
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
#include "Xext/geext_priv.h"
|
||||
|
||||
#include "present_priv.h"
|
||||
|
|
|
@ -34,6 +34,12 @@ and Jim Haggerty of Metheus.
|
|||
|
||||
#include <dix-config.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
#include <X11/Xmd.h>
|
||||
#include <X11/extensions/recordproto.h>
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
#include "dix/cursor_priv.h"
|
||||
#include "dix/eventconvert.h"
|
||||
#include "dix/input_priv.h"
|
||||
|
@ -43,15 +49,11 @@ and Jim Haggerty of Metheus.
|
|||
#include "dixstruct.h"
|
||||
#include "extnsionst.h"
|
||||
#include "extinit_priv.h"
|
||||
#include <X11/extensions/recordproto.h>
|
||||
#include "set.h"
|
||||
#include "swaprep.h"
|
||||
#include "inputstr.h"
|
||||
#include "scrnintstr.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
|
||||
#ifdef XINERAMA
|
||||
#include "globals.h"
|
||||
#include "panoramiX.h"
|
||||
|
|
Loading…
Reference in New Issue