dix: unexport extension registry functions

These aren't used by (known) external modules, thus no need to export them.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1348>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-03-01 10:33:53 +01:00 committed by Marge Bot
parent 1f5ab6ec28
commit 4ebb02cdda
5 changed files with 18 additions and 12 deletions

View File

@ -28,6 +28,8 @@ in this Software without prior written authorization from The Open Group.
#include <dix-config.h>
#endif
#include "dix/registry_priv.h"
#include "scrnintstr.h"
#include "inputstr.h"
#include "windowstr.h"

View File

@ -101,6 +101,8 @@ Equipment Corporation.
#include <version-config.h>
#endif
#include "dix/registry_priv.h"
#include "windowstr.h"
#include <X11/fonts/fontstruct.h>
#include <X11/fonts/libxfont2.h>

View File

@ -50,6 +50,9 @@ SOFTWARE.
#include <X11/X.h>
#include <X11/Xproto.h>
#include "dix/registry_priv.h"
#include "misc.h"
#include "dixstruct.h"
#include "extnsionst.h"

View File

@ -5,6 +5,7 @@
#ifndef _XSERVER_DIX_REGISTRY_H
#define _XSERVER_DIX_REGISTRY_H
#include "include/extnsionst.h"
#include "include/resource.h"
/*
@ -18,4 +19,14 @@ void dixCloseRegistry(void);
void RegisterResourceName(RESTYPE type, const char *name);
const char *LookupResourceName(RESTYPE rtype);
void RegisterExtensionNames(ExtensionEntry * ext);
/*
* Lookup functions. The returned string must not be modified or freed.
*/
const char *LookupMajorName(int major);
const char *LookupRequestName(int major, int minor);
const char *LookupEventName(int event);
const char *LookupErrorName(int error);
#endif /* _XSERVER_DIX_REGISTRY_H */

View File

@ -20,16 +20,4 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "resource.h"
#include "extnsionst.h"
#ifdef X_REGISTRY_REQUEST
extern _X_EXPORT void RegisterExtensionNames(ExtensionEntry * ext);
/*
* Lookup functions. The returned string must not be modified or freed.
*/
extern _X_EXPORT const char *LookupMajorName(int major);
extern _X_EXPORT const char *LookupRequestName(int major, int minor);
extern _X_EXPORT const char *LookupEventName(int event);
extern _X_EXPORT const char *LookupErrorName(int error);
#endif
#endif /* DIX_REGISTRY_H */