Add jaylink_get_device()
[libjaylink.git] / libjaylink / version.c
blob42f2a8fe35095a93f509ffe73441519ca904677a
1 /*
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"
22 /**
23 * @file
25 * Package and library version functions.
28 /**
29 * Get the major version number of the libjaylink package.
31 * @return The major version number of the libjaylink package.
33 JAYLINK_API int jaylink_version_package_get_major(void)
35 return JAYLINK_VERSION_PACKAGE_MAJOR;
38 /**
39 * Get the minor version number of the libjaylink package.
41 * @return The minor version number of the libjaylink package.
43 JAYLINK_API int jaylink_version_package_get_minor(void)
45 return JAYLINK_VERSION_PACKAGE_MINOR;
48 /**
49 * Get the micro version number of the libjaylink package.
51 * @return The micro version number of the libjaylink package.
53 JAYLINK_API int jaylink_version_package_get_micro(void)
55 return JAYLINK_VERSION_PACKAGE_MICRO;
58 /**
59 * Get the version number string of the libjaylink package.
61 * @return A string which contains the version number of the libjaylink package.
62 * The string is null-terminated and must not be free'd by the caller.
64 JAYLINK_API const char *jaylink_version_package_get_string(void)
66 return JAYLINK_VERSION_PACKAGE_STRING;
69 /**
70 * Get the <i>current</i> version number of the libjaylink libtool interface.
72 * @return The <i>current</i> version number of the libjaylink libtool
73 * interface.
75 JAYLINK_API int jaylink_version_lib_get_current(void)
77 return JAYLINK_VERSION_LIB_CURRENT;
80 /**
81 * Get the <i>revision</i> version number of the libjaylink libtool interface.
83 * @return The <i>revision</i> version number of the libjaylink libtool
84 * interface.
86 JAYLINK_API int jaylink_version_lib_get_revision(void)
88 return JAYLINK_VERSION_LIB_REVISION;
91 /**
92 * Get the <i>age</i> version number of the libjaylink libtool interface.
94 * @return The <i>age</i> version number of the libjaylink libtool interface.
96 JAYLINK_API int jaylink_version_lib_get_age(void)
98 return JAYLINK_VERSION_LIB_AGE;
102 * Get the version number string of the libjaylink libtool interface.
104 * @return A string which contains the version number of the libjaylink libtool
105 * interface. The string is null-terminated and must not be free'd by
106 * the caller.
108 JAYLINK_API const char *jaylink_version_lib_get_string(void)
110 return JAYLINK_VERSION_LIB_STRING;