6993f8b459
==29423== 16 bytes in 1 blocks are definitely lost in loss record 73 of 328 ==29423== at 0x4A06B6F: calloc (vg_replace_malloc.c:593) ==29423== by 0x5987C0: XIBarrierInit (xibarriers.c:908) ==29423== by 0x58F370: XInputExtensionInit (extinit.c:1300) ==29423== by 0x4F33C3: InitExtensions (miinitext.c:337) ==29423== by 0x4997DB: main (main.c:208) Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Keith Packard <keithp@keithp.com>
49 lines
1.1 KiB
C
49 lines
1.1 KiB
C
|
|
#ifdef HAVE_DIX_CONFIG_H
|
|
#include <dix-config.h>
|
|
#endif
|
|
|
|
#ifndef _XIBARRIERS_H_
|
|
#define _XIBARRIERS_H_
|
|
|
|
#include "resource.h"
|
|
|
|
extern _X_EXPORT RESTYPE PointerBarrierType;
|
|
|
|
struct PointerBarrier {
|
|
INT16 x1, x2, y1, y2;
|
|
CARD32 directions;
|
|
};
|
|
|
|
int
|
|
barrier_get_direction(int, int, int, int);
|
|
BOOL
|
|
barrier_is_blocking(const struct PointerBarrier *, int, int, int, int,
|
|
double *);
|
|
BOOL
|
|
barrier_is_blocking_direction(const struct PointerBarrier *, int);
|
|
void
|
|
barrier_clamp_to_barrier(struct PointerBarrier *barrier, int dir, int *x,
|
|
int *y);
|
|
|
|
#include <xfixesint.h>
|
|
|
|
int
|
|
XICreatePointerBarrier(ClientPtr client,
|
|
xXFixesCreatePointerBarrierReq * stuff);
|
|
|
|
int
|
|
XIDestroyPointerBarrier(ClientPtr client,
|
|
xXFixesDestroyPointerBarrierReq * stuff);
|
|
|
|
Bool XIBarrierInit(void);
|
|
void XIBarrierReset(void);
|
|
|
|
int SProcXIBarrierReleasePointer(ClientPtr client);
|
|
int ProcXIBarrierReleasePointer(ClientPtr client);
|
|
|
|
void XIBarrierNewMasterDevice(ClientPtr client, int deviceid);
|
|
void XIBarrierRemoveMasterDevice(ClientPtr client, int deviceid);
|
|
|
|
#endif /* _XIBARRIERS_H_ */
|