summaryrefslogtreecommitdiff
path: root/src/libdisfluid/disfluid-version.h
blob: 97a457d29ab9077051afb12e220a5f8e6ddab118 (about) (plain)
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
#ifndef DISFLUID_VERSION_INCLUDED
# define DISFLUID_VERSION_INCLUDED

# include "disfluid-init.h"

static inline const char *version (void);

static inline bool is_nightly (void);

static inline const char *website (void);

static inline const char *whats_new (void);

static inline const char *major_version (void);

static inline const char *
version (void)
{
  static const char *package_version = VERSION;
  return package_version;
}

static inline const char *
website (void)
{
  return "https://labo.planete-kraus.eu/disfluid.git";
}

static inline const char *
whats_new (void)
{
  ensure_init ();
  /* Updated for NEWS hash d41d8cd98f00b204e9800998ecf8427e */
  return _("<p>The Experiences app has been started.</p>");
}

static inline const char *
major_version (void)
{
  ensure_init ();
  static const char *major_version = LATEST_MAJOR_VERSION;
  return major_version;
}

static inline bool
is_nightly (void)
{
  static const char *v = VERSION;
  for (size_t i = 0; i < strlen (v); i++)
    {
      if ((v[i] < '0' || v[i] > '9') && v[i] != '.')
	{
	  return true;
	}
    }
  return false;
}

#endif /* DISFLUID_VERSION_INCLUDED */