diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2020-02-16 00:01:38 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-05-07 14:57:22 +0200 |
commit | 13f97cbc84c5fcc92cc7a82e79ddcb84d85c61ff (patch) | |
tree | 7fb3eaeb6f426ff699be3b843005ee37f20a3a9f /nx-X11/programs/Xserver/hw/nxagent/Client.h | |
parent | 8e1d97732bc889659209406e99360972e2efb73d (diff) | |
download | nx-libs-13f97cbc84c5fcc92cc7a82e79ddcb84d85c61ff.tar.gz nx-libs-13f97cbc84c5fcc92cc7a82e79ddcb84d85c61ff.tar.bz2 nx-libs-13f97cbc84c5fcc92cc7a82e79ddcb84d85c61ff.zip |
Client.c: add clientInfoString to client privates
This is a string that contains the address, the index, the PID and the
process name of the client. The string can be used in debugging
messages to identify the client.
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Client.h')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Client.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Client.h b/nx-X11/programs/Xserver/hw/nxagent/Client.h index 38a02aed1..a3e6e3cf3 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Client.h +++ b/nx-X11/programs/Xserver/hw/nxagent/Client.h @@ -49,7 +49,7 @@ typedef struct _PrivClientRec int clientState; long clientBytes; enum ClientHint clientHint; - + char *clientInfoString; } PrivClientRec; extern int nxagentClientPrivateIndex; @@ -75,6 +75,9 @@ extern void nxagentClientStateCallback(CallbackListPtr *callbacks, void *data, v #define nxagentClientIsDialog(pClient) \ (nxagentClientHint(pClient) == NXCLIENT_DIALOG) +#define nxagentClientInfoString(pClient) \ + (nxagentClientPriv(pClient) -> clientInfoString) + /* * The actual reason why the client is sleeping. */ |