xkb: unexport XkbRF_GetComponents()

Only used inside xkb/* - not used by any modules, so no need
to keep maintaining it in public headers.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1840>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-02-26 10:14:58 +01:00 committed by Marge Bot
parent b535fd7a4c
commit d3b328ba4a
4 changed files with 22 additions and 8 deletions

View File

@ -80,14 +80,6 @@ typedef struct _XkbRF_Rules {
_XFUNCPROTOBEGIN
/* Seems preferable to dragging xkbstr.h in. */
struct _XkbComponentNames;
extern _X_EXPORT Bool XkbRF_GetComponents(XkbRF_RulesPtr /* rules */ ,
XkbRF_VarDefsPtr /* var_defs */ ,
struct _XkbComponentNames * /* names */
);
extern _X_EXPORT Bool XkbRF_LoadRules(FILE * /* file */ ,
XkbRF_RulesPtr /* rules */
);

View File

@ -42,6 +42,7 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "os/osdep.h"
#include "xkb/xkbfile_priv.h"
#include "xkb/xkbfmisc_priv.h"
#include "xkb/xkbrules_priv.h"
#include "inputstr.h"
#include "scrnintstr.h"

View File

@ -40,6 +40,9 @@
#include <X11/Xfuncs.h>
#include <X11/Xatom.h>
#include <X11/keysym.h>
#include "xkb/xkbrules_priv.h"
#include "misc.h"
#include "inputstr.h"
#include "dix.h"

18
xkb/xkbrules_priv.h Normal file
View File

@ -0,0 +1,18 @@
/* SPDX-License-Identifier: MIT OR X11
*
* Copyright © 2024 Enrico Weigelt, metux IT consult <info@metux.net>
*/
#ifndef _XSERVER_XKB_XKBRULES_PRIV_H
#define _XSERVER_XKB_XKBRULES_PRIV_H
#include <X11/Xdefs.h>
#include "include/xkbrules.h"
struct _XkbComponentNames;
Bool XkbRF_GetComponents(XkbRF_RulesPtr rules,
XkbRF_VarDefsPtr var_defs,
struct _XkbComponentNames *names);
#endif /* _XSERVER_XKB_XKBRULES_PRIV_H */