recordstr.h revision a2760a4d593af57a19ec32cdfd1723b68495df8c
/*
#ifndef lint
$Xorg: recordstr.h,v 1.3 2000/08/18 04:05:46 coskrey Exp $
static char sccsid[ ] = "@(#) recordstr.h 1.5 6/5/95 12:37:44";
#endif
*/
/***************************************************************************
* Copyright 1995 Network Computing Devices
*
* Permission to use, copy, modify, distribute, and sell this software and
* its documentation for any purpose is hereby granted without fee, provided
* that the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear in supporting
* documentation, and that the name of Network Computing Devices
* not be used in advertising or publicity pertaining to distribution
* of the software without specific, written prior permission.
*
* NETWORK COMPUTING DEVICES DISCLAIMs ALL WARRANTIES WITH REGARD TO
* THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS, IN NO EVENT SHALL NETWORK COMPUTING DEVICES BE LIABLE
* FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
**************************************************************************/
/* $XFree86$ */
#ifndef _RECORDSTR_H_
#define _RECORDSTR_H_
#define RECORD_NAME "RECORD"
#define RECORD_MAJOR_VERSION 1
#define RECORD_MINOR_VERSION 13
#define RECORD_LOWEST_MAJOR_VERSION 1
#define RECORD_LOWEST_MINOR_VERSION 12
/* only difference between 1.12 and 1.13 is byte order of device events,
which the library doesn't deal with. */
/*********************************************************
*
* Protocol request constants
*
*/
#define X_RecordQueryVersion 0 /* First request from client */
#define RecordNumEvents 0L
#define sz_XRecordRange 32
#define sz_XRecordClientInfo 12
#define sz_XRecordState 16
#define sz_XRecordDatum 32
#define XRecordGlobaldef
#define XRecordGlobalref extern
#define RecordMinDeviceEvent (2L)
#define RecordMaxDeviceEvent (6L)
#define RECORD_XIDBASE CARD32
#define RECORD_CLIENTSPEC CARD32
#define RECORD_ELEMENT_HEADER CARD8
typedef struct
{
typedef struct
{
typedef struct
{
typedef struct
{
} RECORDRANGE;
#define sz_RECORDRANGE 24
/* typedef RECORDRANGE xRecordRange, *xRecordRangePtr;
#define sz_xRecordRange 24 */
/* Cannot have structures within structures going over the wire */
typedef struct
{
} xRecordRange;
#define sz_xRecordRange 24
typedef struct
{
/* LISTofRECORDRANGE */
typedef RECORD_CLIENT_INFO xRecordClientInfo;
/*
* Initialize
*/
typedef struct {
#define sz_xRecordQueryVersionReq 8
typedef struct
{
#define sz_xRecordQueryVersionReply 32
/*
* Create RC
*/
typedef struct
{
/* LISTofRECORD_CLIENTSPEC */
/* LISTofRECORDRANGE */
#define sz_xRecordCreateContextReq 20
/*
* Add to RC
*/
typedef struct
{
/* LISTofRECORD_CLIENTSPEC */
/* LISTofRECORDRANGE */
#define sz_xRecordRegisterClientsReq 20
/*
* Delete from RC
*/
typedef struct
{
/* LISTofRECORD_CLIENTSPEC */
#define sz_xRecordUnregisterClientsReq 12
/*
* Query RC
*/
typedef struct
{
#define sz_xRecordGetContextReq 8
typedef struct
{
/* LISTofCLIENT_INFO */ /* intercepted-clients */
#define sz_xRecordGetContextReply 32
/*
* Enable data interception
*/
typedef struct
{
#define sz_xRecordEnableContextReq 8
typedef struct
{
/* BYTE data; */
#define sz_xRecordEnableContextReply 32
/*
* Disable data interception
*/
typedef struct
{
#define sz_xRecordDisableContextReq 8
/*
* Free RC
*/
typedef struct
{
#define sz_xRecordFreeContextReq 8
#endif