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:
parent
8f2894c4d0
commit
7f13fc7d2f
|
@ -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 */
|
|
@ -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;
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue