diff options
author | Mattias Andrée <maandree@kth.se> | 2020-04-20 18:58:00 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2020-04-20 18:58:00 +0200 |
commit | da8b1c1d1baafb9cf4a0cc9a88362f161f8d1319 (patch) | |
tree | 0fb0676b127996064ccb75b695e9aaf9657ce9f1 /LIBAXL_REQUEST_GET_ATOM_NAME.3 | |
download | libaxl-da8b1c1d1baafb9cf4a0cc9a88362f161f8d1319.tar.gz libaxl-da8b1c1d1baafb9cf4a0cc9a88362f161f8d1319.tar.bz2 libaxl-da8b1c1d1baafb9cf4a0cc9a88362f161f8d1319.tar.xz |
First commit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'LIBAXL_REQUEST_GET_ATOM_NAME.3')
-rw-r--r-- | LIBAXL_REQUEST_GET_ATOM_NAME.3 | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/LIBAXL_REQUEST_GET_ATOM_NAME.3 b/LIBAXL_REQUEST_GET_ATOM_NAME.3 new file mode 100644 index 0000000..5981a24 --- /dev/null +++ b/LIBAXL_REQUEST_GET_ATOM_NAME.3 @@ -0,0 +1,60 @@ +.TH LIBAXL_REQUEST_GET_ATOM_NAME 3 libaxl +.SH NAME +LIBAXL_REQUEST_GET_ATOM_NAME - Get the name of an atom +.SH SYNOPSIS +.nf +#include <libaxl.h> + +#define LIBAXL_REQUEST_GET_ATOM_NAME 17 +struct libaxl_request_get_atom_name { + uint8_t \fIopcode\fP; + uint8_t \fI__pad\fP; + uint16_t \fI_request_length\fP; + libaxl_atom_t \fIatom\fP; +}; +.fi +.SH DESCRIPTION +The display server shall return the name +of the atom whose ID is specified in the +.I atom +field. +.PP +The value of the +.I opcode +field shall be +.I LIBAXL_REQUEST_GET_ATOM_NAME +to signify that the request is of the +request described in this document. +.PP +Other fields are filled in automatically by the +.BR libaxl_send_request (3) +function. +.SH ERRORS +.TP +.BR LIBAXL_ERROR_ATOM (3) +The specified atom ID does not exist. +.SH REPLIES +.nf +struct libaxl_reply_get_atom_name { + uint8_t \fI__one\fP; + uint8_t \fI__pad\fP; + uint16_t \fIsequence_number\fP; + uint32_t \fI_reply_length\fP; + uint16_t \fIlength_of_name\fP; + uint8_t \fI__unused\fP[22]; + char *\fIname\fP; +}; +.fi +.PP +The display server shall, unless it returns an +error, return one +.B "struct libaxl_reply_get_atom_name" +with the +.I name +field set to the name of the atom and the +.I length_of_name +field set to the length of the name. +.SH SEE ALSO +.BR libaxl_send_request (3), +.BR libaxl_receive (3), +.BR LIBAXL_REQUEST_INTERN_ATOM (3) |