VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/4.3/include/extensions/xtraplibp.h@ 25452

Last change on this file since 25452 was 25452, checked in by vboxsync, 15 years ago

Additions/x11: added include files needed for building vboxmouse with XFree86 4.3 and equivalent X.Org versions

  • Property svn:eol-style set to native
File size: 6.1 KB
Line 
1/* $XFree86: xc/include/extensions/xtraplibp.h,v 1.1 2001/11/02 23:29:26 dawes Exp $ */
2#ifndef __XTRAPLIBP__
3#define __XTRAPLIBP__
4
5
6/*****************************************************************************
7Copyright 1987, 1988, 1989, 1990, 1991, 1994 by Digital Equipment Corp.,
8Maynard, MA
9
10Permission to use, copy, modify, and distribute this software and its
11documentation for any purpose and without fee is hereby granted,
12provided that the above copyright notice appear in all copies and that
13both that copyright notice and this permission notice appear in
14supporting documentation, and that the name of Digital not be
15used in advertising or publicity pertaining to distribution of the
16software without specific, written prior permission.
17
18DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
19ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
20DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
21ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
22WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
23ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
24SOFTWARE.
25
26*****************************************************************************/
27/*
28 *
29 * CONTRIBUTORS:
30 *
31 * Dick Annicchiarico
32 * Robert Chesler
33 * Dan Coutu
34 * Gene Durso
35 * Marc Evans
36 * Alan Jamison
37 * Mark Henry
38 * Ken Miller
39 *
40 * DESCRIPTION:
41 * This header file contains the function prototypes for client/toolkit
42 * routines sorted by module (globally defined routines *only*).
43 */
44
45/* XEConTxt.c */
46XETC *XECreateTC (Display *dpy , CARD32 valuemask , XETCValues *value );
47int XEChangeTC (XETC *tc , CARD32 mask , XETCValues *values );
48void XEFreeTC (XETC *tc );
49int XETrapSetMaxPacket (XETC *tc , Bool set_flag , CARD16 size );
50int XETrapSetCommandKey (XETC *tc , Bool set_flag , KeySym cmd_key ,
51 Bool mod_flag );
52int XETrapSetTimestamps (XETC *tc , Bool set_flag , Bool delta_flag );
53int XETrapSetWinXY (XETC *tc , Bool set_flag );
54int XETrapSetCursor (XETC *tc , Bool set_flag );
55int XETrapSetXInput (XETC *tc , Bool set_flag );
56int XETrapSetColorReplies (XETC *tc , Bool set_flag );
57int XETrapSetGrabServer (XETC *tc , Bool set_flag );
58int XETrapSetStatistics (XETC *tc , Bool set_flag );
59int XETrapSetRequests (XETC *tc , Bool set_flag , ReqFlags requests );
60int XETrapSetEvents (XETC *tc , Bool set_flag , EventFlags events );
61Bool XESetCmdGateState (XETC *tc , CARD8 type, Bool *gate_closed ,
62 CARD8 *next_key , Bool *key_ignore );
63
64/* XERqsts.c */
65int XEFlushConfig (XETC *tc );
66int XEResetRequest (XETC *tc );
67int XEGetVersionRequest (XETC *tc , XETrapGetVersRep *ret );
68int XEGetLastInpTimeRequest (XETC *tc , XETrapGetLastInpTimeRep *ret );
69int XEGetAvailableRequest (XETC *tc , XETrapGetAvailRep *ret );
70int XEStartTrapRequest (XETC *tc );
71int XEStopTrapRequest (XETC *tc );
72int XESimulateXEventRequest (XETC *tc , CARD8 type , CARD8 detail ,
73 CARD16 x , CARD16 y , CARD8 screen );
74int XEGetCurrentRequest (XETC *tc , XETrapGetCurRep *ret );
75int XEGetStatisticsRequest (XETC *tc , XETrapGetStatsRep *ret );
76
77/* XECallBcks.c */
78int XEAddRequestCB (XETC *tc , CARD8 req , void_function func , BYTE *data );
79int XEAddRequestCBs (XETC *tc , ReqFlags req_flags , void_function func ,
80 BYTE *data );
81int XEAddEventCB (XETC *tc , CARD8 evt , void_function func , BYTE *data );
82int XEAddEventCBs (XETC *tc , EventFlags evt_flags , void_function func ,
83 BYTE *data );
84
85/* The following seem to never be used. Perhaps they should be removed */
86void XERemoveRequestCB (XETC *tc, CARD8 req);
87void XERemoveRequestCBs (XETC *tc, ReqFlags req_flags);
88void XERemoveAllRequestCBs (XETC *tc);
89void XERemoveEventCB (XETC *tc, CARD8 evt);
90void XERemoveEventCBs (XETC *tc, EventFlags evt_flags);
91void XERemoveAllEventCBs (XETC *tc);
92
93
94/* XEDsptch.c */
95Boolean XETrapDispatchXLib (XETrapDataEvent *event , XETC *tc);
96
97/* XEWrappers.c */
98Boolean XETrapDispatchEvent (XEvent *pevent , XETC *tc );
99XtInputMask XETrapAppPending (XtAppContext app);
100void XETrapAppMainLoop (XtAppContext app , XETC *tc );
101int XETrapAppWhileLoop (XtAppContext app , XETC *tc , Bool *done );
102int XETrapWaitForSomething (XtAppContext app );
103Boolean (*XETrapSetEventHandler(XETC *tc, CARD32 id, Boolean (*pfunc)(XETrapDataEvent *event, XETC *tc))) (XETrapDataEvent *event, XETC *tc);
104
105/* XEPrInfo.c */
106void XEPrintRelease (FILE *ofp , XETrapGetAvailRep *pavail );
107void XEPrintTkRelease ( FILE *ofp, XETC *tc);
108void XEPrintPlatform (FILE *ofp , XETrapGetAvailRep *pavail );
109void XEPrintAvailFlags (FILE *ofp , XETrapGetAvailRep *pavail );
110void XEPrintAvailPktSz (FILE *ofp , XETrapGetAvailRep *pavail );
111void XEPrintStateFlags (FILE *ofp , XETrapGetCurRep *pcur );
112void XEPrintMajOpcode (FILE *ofp , XETrapGetAvailRep *pavail );
113void XEPrintCurXY (FILE *ofp , XETrapGetAvailRep *pavail );
114void XEPrintTkFlags (FILE *ofp , XETC *tc );
115void XEPrintLastTime (FILE *ofp , XETC *tc );
116void XEPrintCfgFlags (FILE *ofp , XETrapGetCurRep *pcur );
117void XEPrintRequests (FILE *ofp , XETrapGetCurRep *pcur );
118void XEPrintEvents (FILE *ofp , XETrapGetCurRep *pcur );
119void XEPrintCurPktSz (FILE *ofp , XETrapGetCurRep *pcur );
120void XEPrintCmdKey (FILE *ofp , XETrapGetCurRep *pcur );
121void XEPrintEvtStats (FILE *ofp , XETrapGetStatsRep *pstats , XETC *tc);
122void XEPrintReqStats (FILE *ofp , XETrapGetStatsRep *pstats , XETC *tc);
123void XEPrintAvail (FILE *ofp , XETrapGetAvailRep *pavail );
124void XEPrintTkState (FILE *ofp , XETC *tc );
125void XEPrintCurrent (FILE *ofp , XETrapGetCurRep *pcur );
126void XEPrintStatistics (FILE *ofp , XETrapGetStatsRep *pstats, XETC *tc );
127
128/* XEStrMap.c */
129INT16 XEEventStringToID (char *string );
130INT16 XERequestStringToID (char *string );
131CARD32 XEPlatformStringToID (char *string );
132char *XEEventIDToString (CARD8 id , XETC *tc);
133char *XERequestIDToExtString (register CARD8 id , XETC *tc);
134char *XERequestIDToString (CARD8 id , XETC *tc);
135char *XEPlatformIDToString (CARD32 id );
136
137/* XETrapInit.c */
138Bool XETrapQueryExtension (Display *dpy,INT32 *event_base_return,
139 INT32 *error_base_return, INT32 *opcode_return);
140
141
142#endif /* __XTRAPLIBP__ */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette