aboutsummaryrefslogtreecommitdiffstats
path: root/libaxl_context_create.3
blob: f764dcaa5ecca8d2fe913c43d42d7996adafcf86 (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
.TH libaxl_context_create 3 libaxl
.SH NAME
libaxl_context_create - Create a context
.SH SYNOPSIS
.nf
#include <libaxl.h>

LIBAXL_CONTEXT *libaxl_context_create(LIBAXL_CONNECTION *\fIconn\fP);
.fi
.SH DESCRIPTION
The
.BR libaxl_context_create ()
function creates a context, for a thread,
to use when accessing the display server
via the connection specified in the
.I conn
parameter.
.SH RETURN VALUE
The
.BR libaxl_context_create ()
function returns the context on success
completion, or
.I NULL
on failure.
.SH ERRORS
The
.BR libaxl_context_create ()
function can only fail if enough memory
cannot be allocates for the process,
which is corresponds to the
.I ENOMEM
error number and the
.I LIBAXL_ERROR_SYSTEM
libaxl error number.
.SH NOTES
None.
.SH SEE ALSO
.BR libaxl_context_free (3),
.BR libaxl_connect (3),
.BR libaxl_create (3)