mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 23:49:24 +00:00
We already have a function for callback list deletion, so use this one instead of doing it manually. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
26 lines
738 B
C
26 lines
738 B
C
/* 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"
|
|
|
|
void InitCallbackManager(void);
|
|
void DeleteCallbackManager(void);
|
|
|
|
/*
|
|
* @brief delete a callback list
|
|
*
|
|
* Calling this is necessary if a CallbackListPtr is used inside a dynamically
|
|
* allocated structure, before it is freed. If it's not done, memory corruption
|
|
* or segfault can happen at a much later point (eg. next server incarnation)
|
|
*
|
|
* @param pcbl pointer to the list head (CallbackListPtr)
|
|
*/
|
|
_X_EXPORT /* only for GLX module */
|
|
void DeleteCallbackList(CallbackListPtr *pcbl);
|
|
|
|
#endif /* _XSERVER_CALLBACK_PRIV_H */
|