From 4fdaa1b2a96d5d9e7d121fc7082737cc581e8020 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 27 Apr 2016 11:32:02 +1000 Subject: 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 Reviewed-by: Benjamin Tissoires Reviewed-by: Hans de Goede --- src/libinput-private.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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 #include @@ -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 */ -- cgit v1.2.3