godot/thirdparty/linuxbsd_headers/X11/extensions/XKBstr.h

/************************************************************
Copyright (c) 1993 by Silicon Graphics Computer Systems, Inc.

Permission to use, copy, modify, and distribute this
software and its documentation for any purpose and without
fee is hereby granted, 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 Silicon Graphics not be
used in advertising or publicity pertaining to distribution
of the software without specific prior written permission.
Silicon Graphics makes no representation about the suitability
of this software for any purpose. It is provided "as is"
without any express or implied warranty.

SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
GRAPHICS 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.

********************************************************/

#ifndef _XKBSTR_H_
#define _XKBSTR_H_

#include <X11/Xfuncproto.h>
#include <X11/extensions/XKB.h>

#define XkbCharToInt(v)
#define XkbIntTo2Chars(i,h,l)
#define Xkb2CharsToInt(h,l)

/*
 * The Xkb structs are full of implicit padding to properly align members.
 * We can't clean that up without breaking ABI, so tell clang not to bother
 * complaining about it.
 */
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wpadded"
#endif

	/*
	 * Common data structures and access macros
	 */

XkbStatePtr;
#define XkbModLocks(s)
#define XkbStateMods(s)
#define XkbGroupLock(s)
#define XkbStateGroup(s)
#define XkbStateFieldFromRec(s)
#define XkbGrabStateFromRec(s)

XkbModsPtr;

XkbKTMapEntryPtr;

XkbKeyTypePtr;

#define XkbNumGroups(g)
#define XkbOutOfRangeGroupInfo(g)
#define XkbOutOfRangeGroupAction(g)
#define XkbOutOfRangeGroupNumber(g)
#define XkbSetGroupInfo(g,w,n)
#define XkbSetNumGroups(g,n)

	/*
	 * Structures and access macros used primarily by the server
	 */

XkbBehavior;

#define XkbAnyActionDataSize
XkbAnyAction;

XkbModAction;
#define XkbModActionVMods(a)
#define XkbSetModActionVMods(a,v)

XkbGroupAction;
#define XkbSAGroup(a)
#define XkbSASetGroup(a,g)

XkbISOAction;

XkbPtrAction;
#define XkbPtrActionX(a)
#define XkbPtrActionY(a)
#define XkbSetPtrActionX(a,x)
#define XkbSetPtrActionY(a,y)

XkbPtrBtnAction;

XkbPtrDfltAction;
#define XkbSAPtrDfltValue(a)
#define XkbSASetPtrDfltValue(a,c)

XkbSwitchScreenAction;
#define XkbSAScreen(a)
#define XkbSASetScreen(a,s)

XkbCtrlsAction;
#define XkbActionSetCtrls(a,c)
#define XkbActionCtrls(a)

XkbMessageAction;

XkbRedirectKeyAction;

#define XkbSARedirectVMods(a)
#define XkbSARedirectSetVMods(a,m)
#define XkbSARedirectVModsMask(a)
#define XkbSARedirectSetVModsMask(a,m)

XkbDeviceBtnAction;

XkbDeviceValuatorAction;

XkbAction;

XkbControlsPtr;

#define XkbAX_AnyFeedback(c)
#define XkbAX_NeedOption(c,w)
#define XkbAX_NeedFeedback(c,w)

XkbServerMapPtr;

#define XkbSMKeyActionsPtr(m,k)

	/*
	 * Structures and access macros used primarily by clients
	 */

XkbSymMapPtr;

XkbClientMapPtr;

#define XkbCMKeyGroupInfo(m,k)
#define XkbCMKeyNumGroups(m,k)
#define XkbCMKeyGroupWidth(m,k,g)
#define XkbCMKeyGroupsWidth(m,k)
#define XkbCMKeyTypeIndex(m,k,g)
#define XkbCMKeyType(m,k,g)
#define XkbCMKeyNumSyms(m,k)
#define XkbCMKeySymsOffset(m,k)
#define XkbCMKeySymsPtr(m,k)

	/*
	 * Compatibility structures and access macros
	 */

XkbSymInterpretPtr;

XkbCompatMapPtr;

XkbIndicatorMapPtr;

#define XkbIM_IsAuto(i)
#define XkbIM_InUse(i)


XkbIndicatorPtr;

XkbKeyNamePtr;

XkbKeyAliasPtr;

	/*
	 * Names for everything
	 */
XkbNamesPtr;

XkbGeometryPtr;
	/*
	 * Tie it all together into one big keyboard description
	 */
XkbDescPtr;
#define XkbKeyKeyTypeIndex(d,k,g)
#define XkbKeyKeyType(d,k,g)
#define XkbKeyGroupWidth(d,k,g)
#define XkbKeyGroupsWidth(d,k)
#define XkbKeyGroupInfo(d,k)
#define XkbKeyNumGroups(d,k)
#define XkbKeyNumSyms(d,k)
#define XkbKeySymsPtr(d,k)
#define XkbKeySym(d,k,n)
#define XkbKeySymEntry(d,k,sl,g)
#define XkbKeyAction(d,k,n)
#define XkbKeyActionEntry(d,k,sl,g)

#define XkbKeyHasActions(d,k)
#define XkbKeyNumActions(d,k)
#define XkbKeyActionsPtr(d,k)
#define XkbKeycodeInRange(d,k)
#define XkbNumKeys(d)


	/*
	 * The following structures can be used to track changes
	 * to a keyboard device
	 */
XkbMapChangesPtr;

XkbControlsChangesPtr;

XkbIndicatorChangesPtr;

XkbNameChangesPtr;

XkbCompatChangesPtr;

XkbChangesPtr;

	/*
	 * These data structures are used to construct a keymap from
	 * a set of components or to list components in the server
	 * database.
	 */
XkbComponentNamesPtr;

XkbComponentNamePtr;

XkbComponentListPtr;

	/*
	 * The following data structures describe and track changes to a
	 * non-keyboard extension device
	 */
XkbDeviceLedInfoPtr;

XkbDeviceInfoPtr;

#define XkbXI_DevHasBtnActs(d)
#define XkbXI_LegalDevBtn(d,b)
#define XkbXI_DevHasLeds(d)

XkbDeviceLedChangesPtr;

XkbDeviceChangesPtr;

#ifdef __clang__
#pragma clang diagnostic pop
#endif

#endif /* _XKBSTR_H_ */