os: unexport ReplyCallback

It's only used by record extension, not used by any drivers at all
(neither FOSS nor proprietary), so it shouldn't be in the public SDK.

Since it's never been used by any driver, it's effectively no ABI change,
so we can safely do this within ABI-25.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-09-23 12:15:29 +02:00
committed by Enrico Weigelt
parent ca484055c7
commit 4a75fb14b7
3 changed files with 14 additions and 12 deletions

View File

@@ -194,17 +194,6 @@ PrivsElevated(void);
extern _X_EXPORT int
GetClientFd(ClientPtr);
/* stuff for ReplyCallback */
extern _X_EXPORT CallbackListPtr ReplyCallback;
typedef struct {
ClientPtr client;
const void *replyData;
unsigned long dataLenBytes; /* actual bytes from replyData + pad bytes */
unsigned long bytesRemaining;
Bool startOfReply;
unsigned long padBytes; /* pad bytes from zeroed array */
} ReplyInfoRec;
/* stuff for FlushCallback */
extern _X_EXPORT CallbackListPtr FlushCallback;

View File

@@ -10,6 +10,8 @@
#include <X11/Xdefs.h>
#include <X11/Xfuncproto.h>
#include "include/callback.h"
/* Client IDs. Use GetClientPid, GetClientCmdName and GetClientCmdArgs
* instead of accessing the fields directly. */
struct _ClientId {
@@ -60,4 +62,15 @@ _X_EXPORT void SetCriticalOutputPending(void);
/* exported only for DRI module, but should not be used by external drivers */
_X_EXPORT void ResetCurrentRequest(struct _Client *client);
/* stuff for ReplyCallback */
extern CallbackListPtr ReplyCallback;
typedef struct {
ClientPtr client;
const void *replyData;
unsigned long dataLenBytes; /* actual bytes from replyData + pad bytes */
unsigned long bytesRemaining;
Bool startOfReply;
unsigned long padBytes; /* pad bytes from zeroed array */
} ReplyInfoRec;
#endif /* _XSERVER_DIX_CLIENT_PRIV_H */

View File

@@ -82,7 +82,7 @@ SOFTWARE.
#include "dixstruct.h"
#include "misc.h"
CallbackListPtr ReplyCallback;
CallbackListPtr ReplyCallback = NULL;
CallbackListPtr FlushCallback;
typedef struct _connectionInput {