inputproto: Allow library users to avoid having the 'Pointer' typedef declared

'Pointer' collides with too many other application names, so stop
using it locally and allow applications to avoid having it in the API.

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Keith Packard 2013-12-16 09:43:41 -08:00
parent 3c1ebd1cfe
commit b418461970

View file

@ -85,12 +85,14 @@ typedef struct _XExtEventInfo
BYTE word;
} XExtEventInfo;
typedef unsigned char *Pointer;
#ifndef _XITYPEDEF_POINTER
typedef void *Pointer;
#endif
struct tmask
{
Mask mask;
Pointer dev;
void *dev;
};
/*********************************************************