Debian Codegraph @

src/libmbim-glib/mbim-version.h.in

raw
1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* SPDX-License-Identifier: LGPL-2.1-or-later */
3 /*
4 * Copyright (C) 2013 Lanedo GmbH
5 * Copyright (C) 2013 - 2014 Aleksander Morgado <[email protected]>
6 */
7
8 #ifndef _MBIM_VERSION_H_
9 #define _MBIM_VERSION_H_
10
11 /**
12 * SECTION:mbim-version
13 * @short_description: Version information in the API.
14 *
15 * This section defines types that are used to identify the libmbim-glib version.
16 **/
17
18 /**
19 * MBIM_MAJOR_VERSION:
20 *
21 * Evaluates to the major version number of libmbim-glib which this source
22 * is compiled against.
23 *
24 * Since: 1.2
25 */
26 #define MBIM_MAJOR_VERSION (@MBIM_MAJOR_VERSION@)
27
28 /**
29 * MBIM_MINOR_VERSION:
30 *
31 * Evaluates to the minor version number of libmbim-glib which this source
32 * is compiled against.
33 *
34 * Since: 1.2
35 */
36 #define MBIM_MINOR_VERSION (@MBIM_MINOR_VERSION@)
37
38 /**
39 * MBIM_MICRO_VERSION:
40 *
41 * Evaluates to the micro version number of libmbim-glib which this source
42 * compiled against.
43 *
44 * Since: 1.2
45 */
46 #define MBIM_MICRO_VERSION (@MBIM_MICRO_VERSION@)
47
48 /**
49 * MBIM_CHECK_VERSION:
50 * @major: major version (e.g. 1 for version 1.2.5)
51 * @minor: minor version (e.g. 2 for version 1.2.5)
52 * @micro: micro version (e.g. 5 for version 1.2.5)
53 *
54 * Checks the version of the library that is being compiled against.
55 *
56 * Returns: %TRUE if the version of the libmbim-glib header files
57 * is the same as or newer than the passed-in version.
58 *
59 * Since: 1.2
60 */
61 #define MBIM_CHECK_VERSION(major,minor,micro) \
62 (MBIM_MAJOR_VERSION > (major) || \
63 (MBIM_MAJOR_VERSION == (major) && MBIM_MINOR_VERSION > (minor)) || \
64 (MBIM_MAJOR_VERSION == (major) && MBIM_MINOR_VERSION == (minor) && MBIM_MICRO_VERSION >= (micro)))
65
66 #endif /* _MBIM_VERSION_H_ */