| 1 |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */ |
| 2 |
/* |
| 3 |
* This library is free software; you can redistribute it and/or |
| 4 |
* modify it under the terms of the GNU Lesser General Public |
| 5 |
* License as published by the Free Software Foundation; either |
| 6 |
* version 2 of the License, or (at your option) any later version. |
| 7 |
* |
| 8 |
* This library is distributed in the hope that it will be useful, |
| 9 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 11 |
* Lesser General Public License for more details. |
| 12 |
* |
| 13 |
* You should have received a copy of the GNU Lesser General Public |
| 14 |
* License along with this library; if not, write to the |
| 15 |
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 16 |
* Boston, MA 02110-1301 USA. |
| 17 |
* |
| 18 |
* Copyright (C) 2013 Lanedo GmbH |
| 19 |
* Copyright (C) 2013-2017 Aleksander Morgado <[email protected]> |
| 20 |
*/ |
| 21 |
|
| 22 |
#ifndef _QMI_VERSION_H_ |
| 23 |
#define _QMI_VERSION_H_ |
| 24 |
|
| 25 |
/** |
| 26 |
* SECTION:qmi-version |
| 27 |
* @short_description: Version information in the API. |
| 28 |
* |
| 29 |
* This section defines types that are used to identify the libqmi-glib version. |
| 30 |
**/ |
| 31 |
|
| 32 |
/** |
| 33 |
* QMI_MAJOR_VERSION: |
| 34 |
* |
| 35 |
* Evaluates to the major version number of libqmi-glib which this source |
| 36 |
* is compiled against. |
| 37 |
* |
| 38 |
* Since: 1.6 |
| 39 |
*/ |
| 40 |
#define QMI_MAJOR_VERSION (@QMI_MAJOR_VERSION@) |
| 41 |
|
| 42 |
/** |
| 43 |
* QMI_MINOR_VERSION: |
| 44 |
* |
| 45 |
* Evaluates to the minor version number of libqmi-glib which this source |
| 46 |
* is compiled against. |
| 47 |
* |
| 48 |
* Since: 1.6 |
| 49 |
*/ |
| 50 |
#define QMI_MINOR_VERSION (@QMI_MINOR_VERSION@) |
| 51 |
|
| 52 |
/** |
| 53 |
* QMI_MICRO_VERSION: |
| 54 |
* |
| 55 |
* Evaluates to the micro version number of libqmi-glib which this source |
| 56 |
* compiled against. |
| 57 |
* |
| 58 |
* Since: 1.6 |
| 59 |
*/ |
| 60 |
#define QMI_MICRO_VERSION (@QMI_MICRO_VERSION@) |
| 61 |
|
| 62 |
/** |
| 63 |
* QMI_CHECK_VERSION: |
| 64 |
* @major: major version (e.g. 1 for version 1.2.5) |
| 65 |
* @minor: minor version (e.g. 2 for version 1.2.5) |
| 66 |
* @micro: micro version (e.g. 5 for version 1.2.5) |
| 67 |
* |
| 68 |
* Checks the version of the libqmi library that is being compiled against. |
| 69 |
* |
| 70 |
* Returns: %TRUE if the version of the libqmi-glib header files |
| 71 |
* is the same as or newer than the passed-in version. |
| 72 |
* |
| 73 |
* Since: 1.6 |
| 74 |
*/ |
| 75 |
#define QMI_CHECK_VERSION(major,minor,micro) \ |
| 76 |
(QMI_MAJOR_VERSION > (major) || \ |
| 77 |
(QMI_MAJOR_VERSION == (major) && QMI_MINOR_VERSION > (minor)) || \ |
| 78 |
(QMI_MAJOR_VERSION == (major) && QMI_MINOR_VERSION == (minor) && QMI_MICRO_VERSION >= (micro))) |
| 79 |
|
| 80 |
/** |
| 81 |
* QMI_MBIM_QMUX_SUPPORTED: |
| 82 |
* |
| 83 |
* Symbol to expose wether QMI over MBIM is supported. The symbol is always |
| 84 |
* defined and set to either or 1 or 0. |
| 85 |
* |
| 86 |
* E.g.: |
| 87 |
* |[ |
| 88 |
* #if QMI_MBIM_QMUX_SUPPORTED |
| 89 |
* // do something |
| 90 |
* #endif |
| 91 |
* ]| |
| 92 |
* |
| 93 |
* Since: 1.16 |
| 94 |
*/ |
| 95 |
#define QMI_MBIM_QMUX_SUPPORTED @QMI_MBIM_QMUX_SUPPORTED@ |
| 96 |
|
| 97 |
/** |
| 98 |
* QMI_QRTR_SUPPORTED: |
| 99 |
* |
| 100 |
* Symbol to expose wether QMI over QRTR is supported. The symbol is always |
| 101 |
* defined and set to either or 1 or 0. |
| 102 |
* |
| 103 |
* E.g.: |
| 104 |
* |[ |
| 105 |
* #if QMI_QRTR_SUPPORTED |
| 106 |
* // do something |
| 107 |
* #endif |
| 108 |
* ]| |
| 109 |
* |
| 110 |
* Since: 1.26 |
| 111 |
*/ |
| 112 |
#define QMI_QRTR_SUPPORTED @QMI_QRTR_SUPPORTED@ |
| 113 |
|
| 114 |
/** |
| 115 |
* QMI_RMNET_SUPPORTED: |
| 116 |
* |
| 117 |
* Symbol to expose wether RMNET link management operations are supported. The |
| 118 |
* symbol is always defined and set to either or 1 or 0. |
| 119 |
* |
| 120 |
* E.g.: |
| 121 |
* |[ |
| 122 |
* #if QMI_RMNET_SUPPORTED |
| 123 |
* // do something |
| 124 |
* #endif |
| 125 |
* ]| |
| 126 |
* |
| 127 |
* Since: 1.30 |
| 128 |
*/ |
| 129 |
#define QMI_RMNET_SUPPORTED @QMI_RMNET_SUPPORTED@ |
| 130 |
|
| 131 |
#endif /* _QMI_VERSION_H_ */ |