diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2016-04-27 11:32:02 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2016-04-28 10:01:20 +1000 |
commit | 4fdaa1b2a96d5d9e7d121fc7082737cc581e8020 (patch) | |
tree | 402ecc26ade8dba5dd39182096775dcaa743348b /src | |
parent | 4552d686f8559cd3f688d0af0bd98eb4e5bc23a8 (diff) |
Make a link to the html docs available as a #define
The "latest" documentation link is the location for the master branch,
released versions have their own directory on the server.
The micro-versions of 90 and above are used for snapshots and release
candidates, so whenever we have a micro version of >= 90 we still want to link
to the "latest" documentation. In all other cases, we link to the current
release.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/libinput-private.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libinput-private.h b/src/libinput-private.h index 539e69a8..b65ae93a 100644 --- a/src/libinput-private.h +++ b/src/libinput-private.h @@ -25,6 +25,8 @@ #ifndef LIBINPUT_PRIVATE_H #define LIBINPUT_PRIVATE_H +#include "config.h" + #include <errno.h> #include <math.h> @@ -33,6 +35,12 @@ #include "libinput.h" #include "libinput-util.h" +#if LIBINPUT_VERSION_MICRO >= 90 +#define HTTP_DOC_LINK "https://wayland.freedesktop.org/libinput/doc/latest/" +#else +#define HTTP_DOC_LINK "https://wayland.freedesktop.org/libinput/doc/" VERSION "/" +#endif + struct libinput_source; /* A coordinate pair in device coordinates */ |