aboutsummaryrefslogtreecommitdiffstats
path: root/libaxl_protocol_version.3
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2020-06-20 12:13:38 +0200
committerMattias Andrée <maandree@kth.se>2020-06-20 12:13:38 +0200
commit79af02f81b282ef8e521cdfd08462a2c91ff7861 (patch)
treedb458c14b330f3c53dd2410e0db07deef780aa10 /libaxl_protocol_version.3
parentUpdate readme (diff)
downloadlibaxl-79af02f81b282ef8e521cdfd08462a2c91ff7861.tar.gz
libaxl-79af02f81b282ef8e521cdfd08462a2c91ff7861.tar.bz2
libaxl-79af02f81b282ef8e521cdfd08462a2c91ff7861.tar.xz
Change libaxl_protocol_version_major, libaxl_protocol_version_minor, and libaxl_protocol_version into variables
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libaxl_protocol_version.3')
-rw-r--r--libaxl_protocol_version.325
1 files changed, 7 insertions, 18 deletions
diff --git a/libaxl_protocol_version.3 b/libaxl_protocol_version.3
index 2064a14..38f5871 100644
--- a/libaxl_protocol_version.3
+++ b/libaxl_protocol_version.3
@@ -5,32 +5,21 @@ libaxl_protocol_version - X protocol version
.nf
#include <libaxl.h>
-int libaxl_protocol_version(void);
+extern const int libaxl_protocol_version;
.fi
.SH DESCRIPTION
The
-.BR libaxl_protocol_version ()
-function returns the number, as the sum of the
+.B libaxl_protocol_version
+variable is set to the number, as the sum of the
major number multiplied by 1000 and the minor
number, of the highest version of the X protocol
that the library, as linked against, supports.
For example if the version number is 11.0, 11000
-is returned, and if it is 11.2, 11002 is returned.
-.SH RETURN VALUE
-The
-.BR libaxl_protocol_version ()
-function returns the number, as a the
-sum described in the
-.B DESCRIPTION
-section of the highest supported version
-of the X protocol.
-.SH ERRORS
-The
-.BR libaxl_protocol_version ()
-function cannot fail.
+is returned, and if it is 11.2, 11002 is assigned
+to the variable.
.SH NOTES
-There is no corresponding function for the lowest
-supported version. The lowest supported
+There is no corresponding variable for the
+lowest supported version. The lowest supported
version is 11.0 (X11); X11 was released in
September 1987 and predates Linux, thus
this is extremely unlikely this will change.