xserver/xkb/xkbtext_priv.h
Alan Coopersmith 5268fbd7cf xkbtext_priv.h: fix typo in header guard definition
Found by clang 13.0.1:

../xkb/xkbtext_priv.h:5:9: warning: '_XSERVER_XKB_XKBTEXT_PRIV_H' is used
 as a header guard here, followed by #define of a different macro
 [-Wheader-guard]
#ifndef _XSERVER_XKB_XKBTEXT_PRIV_H
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../xkb/xkbtext_priv.h:6:9: note: '_XSERVER_XKB_XKBTEXt_PRIV_H' is defined
 here; did you mean '_XSERVER_XKB_XKBTEXT_PRIV_H'?
#define _XSERVER_XKB_XKBTEXt_PRIV_H
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
        _XSERVER_XKB_XKBTEXT_PRIV_H

Fixes: 434044cb0 ("xkb: unexport functions from xkbtext.c")
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1740>
2024-11-10 12:51:10 -08:00

37 lines
1.4 KiB
C

/* SPDX-License-Identifier: MIT OR X11
*
* Copyright © 2024 Enrico Weigelt, metux IT consult <info@metux.net>
*/
#ifndef _XSERVER_XKB_XKBTEXT_PRIV_H
#define _XSERVER_XKB_XKBTEXT_PRIV_H
#include <X11/X.h>
#include "xkbstr.h"
#define XkbXKMFile 0
#define XkbCFile 1
#define XkbXKBFile 2
#define XkbMessage 3
char *XkbIndentText(unsigned size);
char *XkbAtomText(Atom atm, unsigned format);
char *XkbKeysymText(KeySym sym, unsigned format);
char *XkbStringText(char *str, unsigned format);
char *XkbKeyNameText(char *name, unsigned format);
char *XkbModIndexText(unsigned ndx, unsigned format);
char *XkbModMaskText(unsigned mask, unsigned format);
char *XkbVModIndexText(XkbDescPtr xkb, unsigned ndx, unsigned format);
char *XkbVModMaskText(XkbDescPtr xkb, unsigned modMask, unsigned mask,
unsigned format);
char *XkbConfigText(unsigned config, unsigned format);
const char *XkbSIMatchText(unsigned type, unsigned format);
char *XkbIMWhichStateMaskText(unsigned use_which, unsigned format);
char *XkbControlsMaskText(unsigned ctrls, unsigned format);
char *XkbGeomFPText(int val, unsigned format);
char *XkbDoodadTypeText(unsigned type, unsigned format);
const char *XkbActionTypeText(unsigned type, unsigned format);
char *XkbActionText(XkbDescPtr xkb, XkbAction *action, unsigned format);
char *XkbBehaviorText(XkbDescPtr xkb, XkbBehavior *behavior, unsigned format);
#endif /* _XSERVER_XKB_XKBTEXT_PRIV_H */