aboutsummaryrefslogtreecommitdiffstats
path: root/man3/LIBAXL_REQUEST_GET_SCREEN_SAVER.3
blob: 03fff921d21fb1c6a8ced21f530eb6d15db4a355 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
.TH LIBAXL_REQUEST_GET_SCREEN_SAVER 3 libaxl
.SH NAME
LIBAXL_REQUEST_GET_SCREEN_SAVER - Get screen-saver configurations
.SH SYNOPSIS
.nf
#include <libaxl.h>

#define LIBAXL_REQUEST_GET_GCREEN_SAVER 108
struct libaxl_request_get_screen_saver {
        uint8_t  \fIopcode\fP;
        uint8_t  \fI__pad1\fP;
        uint16_t \fI_request_length\fP;
};
.fi
.SH DESCRIPTION
Requests the current screen-saver configurations
from the display server.
.PP
The value of the
.I opcode
field shall be
.I LIBAXL_REQUEST_GET_SCREEN_SAVER
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
None.
.SH REPLIES
.nf
struct libaxl_reply_get_screen_saver {
        uint8_t  \fI__one\fP;
        uint8_t  \fI__pad\fP;
        uint16_t \fIsequence_number\fP;
        uint32_t \fI_reply_length\fP;
        uint16_t \fItimeout\fP;
        uint16_t \fIinterval\fP;
        uint8_t  \fIprefer_blanking\fP;
        uint8_t  \fIallow_exposures\fP;
        uint8_t  \fI__unused\fP[18];
};
.fi
.PP
The display server shall, unless it returns an
error, return one
.B "struct libaxl_reply_get_screen_saver"
with the
.I timeout
field set to the screen-saver timeout, in seconds, or
.I LIBAXL_DISABLED
if disabled, the
.I interval
field set to the screen-saver's periodic-change
interval, in seconds, or
.I LIBAXL_DISABLED
if disabled, the
.I prefer_blanking
and
.I allow_exposures
fields set to either
.I LIBAXL_YES
or
.IR LIBAXL_NO ,
depending on whether monitor blanking is preferred
an whether exposure events are allowed, respectively.
For more information refer to
.BR LIBAXL_REQUEST_SET_SCREEN_SAVER (3).
.SH SEE ALSO
.BR libaxl_send_request (3),
.BR libaxl_receive (3),
.BR LIBAXL_REQUEST_SET_SCREEN_SAVER (3),
.BR LIBAXL_REQUEST_FORCE_SCREEN_SAVER (3)