1 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- |
2 | * |
3 | * Copyright (C) 2010 Red Hat, Inc. |
4 | * |
5 | * This library is free software; you can redistribute it and/or |
6 | * modify it under the terms of the GNU Lesser General Public |
7 | * License as published by the Free Software Foundation; either |
8 | * version 2.1 of the License, or (at your option) any later version. |
9 | * |
10 | * This library is distributed in the hope that it will be useful, |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | * Lesser General Public License for more details. |
14 | * |
15 | * You should have received a copy of the GNU Lesser General Public |
16 | * License along with this library; if not, write to the |
17 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 | * Boston, MA 02111-1307, USA. |
19 | */ |
20 | |
21 | #ifndef __NOTIFY_VERSION_H__ |
22 | #define __NOTIFY_VERSION_H__ |
23 | |
24 | /* compile time version |
25 | */ |
26 | |
27 | /** |
28 | * NOTIFY_VERSION_MAJOR: |
29 | * |
30 | * Adwaita major version component (e.g. 1 if the version is 1.2.3). |
31 | */ |
32 | #define NOTIFY_VERSION_MAJOR (0) |
33 | /** |
34 | * NOTIFY_VERSION_MINOR: |
35 | * |
36 | * Adwaita minor version component (e.g. 2 if the version is 1.2.3). |
37 | */ |
38 | #define NOTIFY_VERSION_MINOR (8) |
39 | /** |
40 | * NOTIFY_VERSION_MICRO: |
41 | * |
42 | * Adwaita micro version component (e.g. 3 if the version is 1.2.3). |
43 | */ |
44 | #define NOTIFY_VERSION_MICRO (3) |
45 | |
46 | /** |
47 | * NOTIFY_CHECK_VERSION: |
48 | * @major: required major version |
49 | * @minor: required minor version |
50 | * @micro: required micro version |
51 | * |
52 | * check whether a version equal to or greater than |
53 | * `major.minor.micro` is present. |
54 | */ |
55 | #define NOTIFY_CHECK_VERSION(major,minor,micro) \ |
56 | (NOTIFY_VERSION_MAJOR > (major) || \ |
57 | (NOTIFY_VERSION_MAJOR == (major) && NOTIFY_VERSION_MINOR > (minor)) || \ |
58 | (NOTIFY_VERSION_MAJOR == (major) && NOTIFY_VERSION_MINOR == (minor) && \ |
59 | NOTIFY_VERSION_MICRO >= (micro))) |
60 | |
61 | |
62 | #endif /* __NOTIFY_VERSION_H__ */ |
63 | |
64 | |