Commit 4fbe67be authored by Daniel Stone's avatar Daniel Stone Committed by Peter Hutterer
Browse files

Resources: Move rClient to resource.h



The definition of rClient was duplicated across three source files, so
move it to resource.h.
Signed-off-by: Daniel Stone's avatarDaniel Stone <daniel@fooishbar.org>
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 871c1e17
......@@ -33,8 +33,6 @@
#include "geext.h"
#include "protocol-versions.h"
#define rClient(obj) (clients[CLIENT_ID((obj)->resource)])
DevPrivateKeyRec GEClientPrivateKeyRec;
int RT_GECLIENT = 0;
......
......@@ -154,8 +154,6 @@ SecurityLookupRequestName(ClientPtr client)
}
#define rClient(obj) (clients[CLIENT_ID((obj)->resource)])
/* SecurityDeleteAuthorization
*
* Arguments:
......
......@@ -195,8 +195,6 @@ typedef const char *string;
#define XE_KBPTR (xE->u.keyButtonPointer)
#define rClient(obj) (clients[CLIENT_ID((obj)->resource)])
CallbackListPtr EventCallback;
CallbackListPtr DeviceEventCallback;
......
......@@ -121,6 +121,8 @@ typedef unsigned long RESTYPE;
#define BAD_RESOURCE 0xe0000000
#define rClient(obj) (clients[CLIENT_ID((obj)->resource)])
/* Resource state callback */
extern _X_EXPORT CallbackListPtr ResourceStateCallback;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment