dix: unexport callback manager init / teardown functions

Those are only needed inside DIX, 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/1346>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-02-29 18:44:33 +01:00 committed by Marge Bot
parent 8f2894c4d0
commit 7f13fc7d2f
4 changed files with 20 additions and 7 deletions

15
dix/callback_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_CALLBACK_PRIV_H
#define _XSERVER_CALLBACK_PRIV_H
#include "callback.h"
typedef struct _CallbackList *CallbackListPtr;
void InitCallbackManager(void);
void DeleteCallbackManager(void);
#endif /* _XSERVER_CALLBACK_PRIV_H */

View File

@ -87,6 +87,7 @@ Author: Adobe Systems Incorporated
#include <X11/X.h>
#include <X11/Xmd.h>
#include "dix/callback_priv.h"
#include "dix/dix_priv.h"
#include "misc.h"
@ -739,6 +740,8 @@ _DeleteCallback(CallbackListPtr *pcbl, CallbackProcPtr callback, void *data)
return FALSE;
}
static void DeleteCallbackList(CallbackListPtr *pcbl);
void
_CallCallbacks(CallbackListPtr *pcbl, void *call_data)
{
@ -871,8 +874,7 @@ DeleteCallback(CallbackListPtr *pcbl, CallbackProcPtr callback, void *data)
return _DeleteCallback(pcbl, callback, data);
}
void
DeleteCallbackList(CallbackListPtr *pcbl)
static void DeleteCallbackList(CallbackListPtr *pcbl)
{
if (!pcbl || !*pcbl)
return;

View File

@ -83,6 +83,7 @@ Equipment Corporation.
#include <X11/Xproto.h>
#include <pixman.h>
#include "dix/callback_priv.h"
#include "dix/dix_priv.h"
#include "dix/registry_priv.h"

View File

@ -83,9 +83,4 @@ CallCallbacks(CallbackListPtr *pcbl, void *call_data)
_CallCallbacks(pcbl, call_data);
}
extern _X_EXPORT void DeleteCallbackList(CallbackListPtr *pcbl);
extern _X_EXPORT void InitCallbackManager(void);
extern _X_EXPORT void DeleteCallbackManager(void);
#endif /* CALLBACK_H */