| 1 | /* dex-version.c |
| 2 | * |
| 3 | * Copyright 2025 Christian Hergert <[email protected]> |
| 4 | * |
| 5 | * This library is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU Lesser General Public License as |
| 7 | * published by the Free Software Foundation; either version 2.1 of the |
| 8 | * License, or (at your option) any later version. |
| 9 | * |
| 10 | * This library is distributed in the hope that it will be useful, but |
| 11 | * 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 General Public License along |
| 16 | * with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | * |
| 18 | * SPDX-License-Identifier: LGPL-2.1-or-later |
| 19 | */ |
| 20 | |
| 21 | #include "config.h" |
| 22 | |
| 23 | #include "dex-version-macros.h" |
| 24 | |
| 25 | /** |
| 26 | * dex_get_major_version: |
| 27 | * |
| 28 | * Gets the major version number equivalent to `DEX_MAJOR_VERSION` |
| 29 | * at compile time of libdex. |
| 30 | * |
| 31 | * Since: 1.1 |
| 32 | */ |
| 33 | int |
| 34 | dex_get_major_version (void) |
| 35 | { |
| 36 | return DEX_MAJOR_VERSION; |
| 37 | } |
| 38 | |
| 39 | /** |
| 40 | * dex_get_minor_version: |
| 41 | * |
| 42 | * Gets the minor version number equivalent to `DEX_MINOR_VERSION` |
| 43 | * at compile time of libdex. |
| 44 | * |
| 45 | * Since: 1.1 |
| 46 | */ |
| 47 | int |
| 48 | dex_get_minor_version (void) |
| 49 | { |
| 50 | return DEX_MINOR_VERSION; |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * dex_get_micro_version: |
| 55 | * |
| 56 | * Gets the micro version number equivalent to `DEX_MICRO_VERSION` |
| 57 | * at compile time of libdex. |
| 58 | * |
| 59 | * Since: 1.1 |
| 60 | */ |
| 61 | int |
| 62 | dex_get_micro_version (void) |
| 63 | { |
| 64 | return DEX_MICRO_VERSION; |
| 65 | } |