Xext: shm: move ShmDescRec definition into shm.c

Only used inside shm.c, not anywhere else, so no need to keep it
in a public header file.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-10-20 10:43:36 +02:00 committed by Enrico Weigelt
parent 182385af12
commit 38eedc3de5
2 changed files with 14 additions and 14 deletions

View File

@ -9,6 +9,20 @@
#include "include/resource.h"
#include "Xext/shmint.h"
typedef struct _ShmDesc {
struct _ShmDesc *next;
int shmid;
int refcnt;
char *addr;
Bool writable;
unsigned long size;
#ifdef SHM_FD_PASSING
Bool is_fd;
struct busfault *busfault;
XID resource;
#endif
} ShmDescRec, *ShmDescPtr;
extern RESTYPE ShmSegType;
#endif /* _XSERVER_XEXT_SHM_PRIV_H */

View File

@ -60,20 +60,6 @@ typedef struct _ShmFuncs {
#define SHM_FD_PASSING 1
#endif
typedef struct _ShmDesc {
struct _ShmDesc *next;
int shmid;
int refcnt;
char *addr;
Bool writable;
unsigned long size;
#ifdef SHM_FD_PASSING
Bool is_fd;
struct busfault *busfault;
XID resource;
#endif
} ShmDescRec, *ShmDescPtr;
#ifdef SHM_FD_PASSING
#define SHMDESC_IS_FD(shmdesc) ((shmdesc)->is_fd)
#else