io: unexport ReadFdFromClient()

Not used by any drivers (and really shouldn't be used by them),
so no need to keep it exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-02-11 11:59:07 +01:00
parent 0d899a6ba7
commit 902320eeac
5 changed files with 20 additions and 2 deletions

View File

@ -46,6 +46,7 @@ in this Software without prior written authorization from The Open Group.
#include "miext/extinit_priv.h" #include "miext/extinit_priv.h"
#include "os/auth.h" #include "os/auth.h"
#include "os/busfault.h" #include "os/busfault.h"
#include "os/io_priv.h"
#include "os/log_priv.h" #include "os/log_priv.h"
#include "os/osdep.h" #include "os/osdep.h"

View File

@ -24,6 +24,7 @@
#include <unistd.h> #include <unistd.h>
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "os/io_priv.h"
#include "dri3_priv.h" #include "dri3_priv.h"
#include <syncsrv.h> #include <syncsrv.h>

View File

@ -86,8 +86,6 @@ typedef struct _NewClientRec *NewClientPtr;
extern _X_EXPORT int ReadRequestFromClient(ClientPtr /*client */ ); extern _X_EXPORT int ReadRequestFromClient(ClientPtr /*client */ );
extern _X_EXPORT int ReadFdFromClient(ClientPtr client);
extern _X_EXPORT int WriteFdToClient(ClientPtr client, int fd, Bool do_close); extern _X_EXPORT int WriteFdToClient(ClientPtr client, int fd, Bool do_close);
extern _X_EXPORT Bool InsertFakeRequest(ClientPtr /*client */ , extern _X_EXPORT Bool InsertFakeRequest(ClientPtr /*client */ ,

View File

@ -74,6 +74,7 @@ SOFTWARE.
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "os/io_priv.h"
#include "os.h" #include "os.h"
#include "osdep.h" #include "osdep.h"

17
os/io_priv.h Normal file
View File

@ -0,0 +1,17 @@
/* SPDX-License-Identifier: MIT OR X11
*
* Copyright © 2024 Enrico Weigelt, metux IT consult <info@metux.net>
*/
#ifndef __XORG_OS_IO_H
#define __XORG_OS_IO_H
#include "include/os.h"
/**
* Read an file descriptor that client should have sent (along with request).
*
* Caller must have set the number of expected FDs via SetReqFds() before.
*/
int ReadFdFromClient(ClientPtr client);
#endif /* __XORG_OS_IO_H */