dix: unexport registry setup/teardown functions

these aren't to be called by 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-02-29 20:24:17 +01:00 committed by Marge Bot
parent c3255fbc1c
commit 36e2cf64c8
4 changed files with 21 additions and 7 deletions

View File

@ -82,6 +82,9 @@ Equipment Corporation.
#include <X11/Xos.h> /* for unistd.h */
#include <X11/Xproto.h>
#include <pixman.h>
#include "dix/registry_priv.h"
#include "scrnintstr.h"
#include "misc.h"
#include "os.h"

View File

@ -25,6 +25,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <string.h>
#include <X11/X.h>
#include <X11/Xproto.h>
#include "dix/registry_priv.h"
#include "resource.h"
#include "registry.h"

15
dix/registry_priv.h Normal file
View File

@ -0,0 +1,15 @@
/* SPDX-License-Identifier: MIT OR X11
*
* Copyright © 2024 Enrico Weigelt, metux IT consult <info@metux.net>
*/
#ifndef _XSERVER_DIX_REGISTRY_H
#define _XSERVER_DIX_REGISTRY_H
/*
* Setup and teardown
*/
void dixResetRegistry(void);
void dixFreeRegistry(void);
void dixCloseRegistry(void);
#endif /* _XSERVER_DIX_REGISTRY_H */

View File

@ -40,11 +40,4 @@ extern _X_EXPORT const char *LookupEventName(int event);
extern _X_EXPORT const char *LookupErrorName(int error);
#endif
/*
* Setup and teardown
*/
extern _X_EXPORT void dixResetRegistry(void);
extern _X_EXPORT void dixFreeRegistry(void);
extern _X_EXPORT void dixCloseRegistry(void);
#endif /* DIX_REGISTRY_H */