2006-11-26 11:13:41 -07:00
|
|
|
/************************************************************
|
|
|
|
|
2010-07-27 13:02:24 -06:00
|
|
|
Author: Eamon Walsh <ewalsh@tycho.nsa.gov>
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2008-11-02 08:26:08 -07:00
|
|
|
#include "dix.h"
|
2006-11-26 11:13:41 -07:00
|
|
|
#include "resource.h"
|
|
|
|
#include "extnsionst.h"
|
2008-11-02 08:26:08 -07:00
|
|
|
#include "window.h"
|
|
|
|
#include "input.h"
|
|
|
|
#include "property.h"
|
|
|
|
#include "selection.h"
|
2006-11-26 11:13:41 -07:00
|
|
|
#include "xace.h"
|
|
|
|
|
|
|
|
/* XACE_CORE_DISPATCH */
|
|
|
|
typedef struct {
|
|
|
|
ClientPtr client;
|
2008-11-02 08:26:08 -07:00
|
|
|
int status;
|
2006-11-26 11:13:41 -07:00
|
|
|
} XaceCoreDispatchRec;
|
|
|
|
|
|
|
|
/* XACE_RESOURCE_ACCESS */
|
|
|
|
typedef struct {
|
|
|
|
ClientPtr client;
|
|
|
|
XID id;
|
|
|
|
RESTYPE rtype;
|
2014-09-27 11:52:59 -06:00
|
|
|
void *res;
|
2008-11-02 08:26:08 -07:00
|
|
|
RESTYPE ptype;
|
2014-09-27 11:52:59 -06:00
|
|
|
void *parent;
|
2008-11-02 08:26:08 -07:00
|
|
|
Mask access_mode;
|
|
|
|
int status;
|
2006-11-26 11:13:41 -07:00
|
|
|
} XaceResourceAccessRec;
|
|
|
|
|
|
|
|
/* XACE_DEVICE_ACCESS */
|
|
|
|
typedef struct {
|
|
|
|
ClientPtr client;
|
|
|
|
DeviceIntPtr dev;
|
2008-11-02 08:26:08 -07:00
|
|
|
Mask access_mode;
|
|
|
|
int status;
|
2006-11-26 11:13:41 -07:00
|
|
|
} XaceDeviceAccessRec;
|
|
|
|
|
|
|
|
/* XACE_PROPERTY_ACCESS */
|
|
|
|
typedef struct {
|
|
|
|
ClientPtr client;
|
|
|
|
WindowPtr pWin;
|
2008-11-02 08:26:08 -07:00
|
|
|
PropertyPtr *ppProp;
|
2006-11-26 11:13:41 -07:00
|
|
|
Mask access_mode;
|
2008-11-02 08:26:08 -07:00
|
|
|
int status;
|
2006-11-26 11:13:41 -07:00
|
|
|
} XacePropertyAccessRec;
|
|
|
|
|
2008-11-02 08:26:08 -07:00
|
|
|
/* XACE_SEND_ACCESS */
|
2006-11-26 11:13:41 -07:00
|
|
|
typedef struct {
|
|
|
|
ClientPtr client;
|
2008-11-02 08:26:08 -07:00
|
|
|
DeviceIntPtr dev;
|
|
|
|
WindowPtr pWin;
|
|
|
|
xEventPtr events;
|
|
|
|
int count;
|
|
|
|
int status;
|
|
|
|
} XaceSendAccessRec;
|
2006-11-26 11:13:41 -07:00
|
|
|
|
2008-11-02 08:26:08 -07:00
|
|
|
/* XACE_RECEIVE_ACCESS */
|
2006-11-26 11:13:41 -07:00
|
|
|
typedef struct {
|
|
|
|
ClientPtr client;
|
|
|
|
WindowPtr pWin;
|
2008-11-02 08:26:08 -07:00
|
|
|
xEventPtr events;
|
|
|
|
int count;
|
|
|
|
int status;
|
|
|
|
} XaceReceiveAccessRec;
|
|
|
|
|
|
|
|
/* XACE_CLIENT_ACCESS */
|
|
|
|
typedef struct {
|
|
|
|
ClientPtr client;
|
|
|
|
ClientPtr target;
|
|
|
|
Mask access_mode;
|
|
|
|
int status;
|
|
|
|
} XaceClientAccessRec;
|
2006-11-26 11:13:41 -07:00
|
|
|
|
2008-11-02 08:26:08 -07:00
|
|
|
/* XACE_EXT_DISPATCH */
|
2006-11-26 11:13:41 -07:00
|
|
|
/* XACE_EXT_ACCESS */
|
|
|
|
typedef struct {
|
|
|
|
ClientPtr client;
|
|
|
|
ExtensionEntry *ext;
|
2008-11-02 08:26:08 -07:00
|
|
|
Mask access_mode;
|
|
|
|
int status;
|
2006-11-26 11:13:41 -07:00
|
|
|
} XaceExtAccessRec;
|
|
|
|
|
2008-11-02 08:26:08 -07:00
|
|
|
/* XACE_SERVER_ACCESS */
|
2006-11-26 11:13:41 -07:00
|
|
|
typedef struct {
|
|
|
|
ClientPtr client;
|
|
|
|
Mask access_mode;
|
2008-11-02 08:26:08 -07:00
|
|
|
int status;
|
|
|
|
} XaceServerAccessRec;
|
2006-11-26 11:13:41 -07:00
|
|
|
|
2008-11-02 08:26:08 -07:00
|
|
|
/* XACE_SELECTION_ACCESS */
|
2006-11-26 11:13:41 -07:00
|
|
|
typedef struct {
|
2008-11-02 08:26:08 -07:00
|
|
|
ClientPtr client;
|
|
|
|
Selection **ppSel;
|
|
|
|
Mask access_mode;
|
|
|
|
int status;
|
|
|
|
} XaceSelectionAccessRec;
|
2006-11-26 11:13:41 -07:00
|
|
|
|
2008-11-02 08:26:08 -07:00
|
|
|
/* XACE_SCREEN_ACCESS */
|
|
|
|
/* XACE_SCREENSAVER_ACCESS */
|
2006-11-26 11:13:41 -07:00
|
|
|
typedef struct {
|
2008-11-02 08:26:08 -07:00
|
|
|
ClientPtr client;
|
|
|
|
ScreenPtr screen;
|
|
|
|
Mask access_mode;
|
|
|
|
int status;
|
|
|
|
} XaceScreenAccessRec;
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
/* XACE_AUTH_AVAIL */
|
|
|
|
typedef struct {
|
|
|
|
ClientPtr client;
|
|
|
|
XID authId;
|
|
|
|
} XaceAuthAvailRec;
|
|
|
|
|
|
|
|
/* XACE_KEY_AVAIL */
|
|
|
|
typedef struct {
|
|
|
|
xEventPtr event;
|
|
|
|
DeviceIntPtr keybd;
|
|
|
|
int count;
|
|
|
|
} XaceKeyAvailRec;
|
|
|
|
|
|
|
|
/* XACE_AUDIT_BEGIN */
|
|
|
|
/* XACE_AUDIT_END */
|
|
|
|
typedef struct {
|
|
|
|
ClientPtr client;
|
|
|
|
int requestResult;
|
|
|
|
} XaceAuditRec;
|
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
#endif /* _XACESTR_H */
|