blob: 810d11e7e20d51ac984d00cd390fe26269a9b5d5 (
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
60
|
/* libsecret - GLib wrapper for Secret Service
*
* Copyright 2019 Sutou Kouhei <kou@clear-code.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation; either version 2.1 of the licence or (at
* your option) any later version.
*
* See the included COPYING file for more information.
*
* Author: Sutou Kouhei <kou@clear-code.com>
*/
#if !defined (__SECRET_INSIDE_HEADER__) && !defined (SECRET_COMPILATION)
#error "Only <libsecret/secret.h> can be included directly."
#endif
#ifndef __SECRET_VERSION_H__
#define __SECRET_VERSION_H__
/**
* SECRET_MAJOR_VERSION:
*
* The major version of libsecret.
*/
#define SECRET_MAJOR_VERSION (@SECRET_MAJOR_VERSION@)
/**
* SECRET_MINOR_VERSION:
*
* The minor version of libsecret.
*/
#define SECRET_MINOR_VERSION (@SECRET_MINOR_VERSION@)
/**
* SECRET_MICRO_VERSION:
*
* The micro version of libsecret.
*/
#define SECRET_MICRO_VERSION (@SECRET_MICRO_VERSION@)
/**
* SECRET_CHECK_VERSION:
* @major: major version to be satisfied
* @minor: minor version to be satisfied
* @micro: micro version to be satisfied
*
* Returns `TRUE` if using libsecret is newer than or equal to the
* given version.
*/
#define SECRET_CHECK_VERSION(major, minor, micro) \
(SECRET_MAJOR_VERSION > (major) || \
(SECRET_MAJOR_VERSION == (major) && \
SECRET_MINOR_VERSION > (minor)) || \
(SECRET_MAJOR_VERSION == (major) && \
SECRET_MINOR_VERSION == (minor) && \
SECRET_MICRO_VERSION >= (micro)))
#endif /* __SECRET_VERSION_H__ */
|