mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
Replace complicated xace hook by simple and cheap callback. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
82 lines
2.0 KiB
C
82 lines
2.0 KiB
C
/************************************************************
|
|
|
|
Author: Eamon Walsh <ewalsh@tycho.nsa.gov>
|
|
|
|
Permission to use, copy, modify, distribute, and sell this software and its
|
|
documentation for any purpose is hereby granted without fee, provided that
|
|
this permission notice appear in supporting documentation. This permission
|
|
notice shall be included in all copies or substantial portions of the
|
|
Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
|
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
********************************************************/
|
|
|
|
#ifndef _XACESTR_H
|
|
#define _XACESTR_H
|
|
|
|
#include "dix/selection_priv.h"
|
|
|
|
#include "dix.h"
|
|
#include "resource.h"
|
|
#include "extnsionst.h"
|
|
#include "window.h"
|
|
#include "input.h"
|
|
#include "property.h"
|
|
#include "xace.h"
|
|
|
|
/* XACE_RESOURCE_ACCESS */
|
|
typedef struct {
|
|
ClientPtr client;
|
|
XID id;
|
|
RESTYPE rtype;
|
|
void *res;
|
|
RESTYPE ptype;
|
|
void *parent;
|
|
Mask access_mode;
|
|
int status;
|
|
} XaceResourceAccessRec;
|
|
|
|
/* XACE_PROPERTY_ACCESS */
|
|
typedef struct {
|
|
ClientPtr client;
|
|
WindowPtr pWin;
|
|
PropertyPtr *ppProp;
|
|
Mask access_mode;
|
|
int status;
|
|
} XacePropertyAccessRec;
|
|
|
|
/* XACE_SEND_ACCESS */
|
|
typedef struct {
|
|
ClientPtr client;
|
|
DeviceIntPtr dev;
|
|
WindowPtr pWin;
|
|
xEventPtr events;
|
|
int count;
|
|
int status;
|
|
} XaceSendAccessRec;
|
|
|
|
/* XACE_RECEIVE_ACCESS */
|
|
typedef struct {
|
|
ClientPtr client;
|
|
WindowPtr pWin;
|
|
xEventPtr events;
|
|
int count;
|
|
int status;
|
|
} XaceReceiveAccessRec;
|
|
|
|
/* XACE_SELECTION_ACCESS */
|
|
typedef struct {
|
|
ClientPtr client;
|
|
Selection **ppSel;
|
|
Mask access_mode;
|
|
int status;
|
|
} XaceSelectionAccessRec;
|
|
|
|
#endif /* _XACESTR_H */
|