2 * This file is part of the libjaylink project.
4 * Copyright (C) 2015 Marc Schink <jaylink-dev@marcschink.de>
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #include "libjaylink.h"
25 * Package and library version functions.
29 * Get the major version number of the libjaylink package.
31 * @return The major version number of the libjaylink package.
35 JAYLINK_API
int jaylink_version_package_get_major(void)
37 return JAYLINK_VERSION_PACKAGE_MAJOR
;
41 * Get the minor version number of the libjaylink package.
43 * @return The minor version number of the libjaylink package.
47 JAYLINK_API
int jaylink_version_package_get_minor(void)
49 return JAYLINK_VERSION_PACKAGE_MINOR
;
53 * Get the micro version number of the libjaylink package.
55 * @return The micro version number of the libjaylink package.
59 JAYLINK_API
int jaylink_version_package_get_micro(void)
61 return JAYLINK_VERSION_PACKAGE_MICRO
;
65 * Get the version number string of the libjaylink package.
67 * @return A string which contains the version number of the libjaylink
68 * package. The string is null-terminated and must not be free'd by the
73 JAYLINK_API
const char *jaylink_version_package_get_string(void)
75 return JAYLINK_VERSION_PACKAGE_STRING
;
79 * Get the <i>current</i> version number of the libjaylink libtool interface.
81 * @return The <i>current</i> version number of the libjaylink libtool
86 JAYLINK_API
int jaylink_version_library_get_current(void)
88 return JAYLINK_VERSION_LIBRARY_CURRENT
;
92 * Get the <i>revision</i> version number of the libjaylink libtool interface.
94 * @return The <i>revision</i> version number of the libjaylink libtool
99 JAYLINK_API
int jaylink_version_library_get_revision(void)
101 return JAYLINK_VERSION_LIBRARY_REVISION
;
105 * Get the <i>age</i> version number of the libjaylink libtool interface.
107 * @return The <i>age</i> version number of the libjaylink libtool interface.
111 JAYLINK_API
int jaylink_version_library_get_age(void)
113 return JAYLINK_VERSION_LIBRARY_AGE
;
117 * Get the version number string of the libjaylink libtool interface.
119 * @return A string which contains the version number of the libjaylink libtool
120 * interface. The string is null-terminated and must not be free'd by
125 JAYLINK_API
const char *jaylink_version_library_get_string(void)
127 return JAYLINK_VERSION_LIBRARY_STRING
;