transport: Add initial TCP/IP support
[libjaylink.git] / libjaylink / version.c
blob88bc023eab79f10788b4b3cb04edeffb04cfb07d
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 * @since 0.1.0
35 JAYLINK_API int jaylink_version_package_get_major(void)
37 return JAYLINK_VERSION_PACKAGE_MAJOR;
40 /**
41 * Get the minor version number of the libjaylink package.
43 * @return The minor version number of the libjaylink package.
45 * @since 0.1.0
47 JAYLINK_API int jaylink_version_package_get_minor(void)
49 return JAYLINK_VERSION_PACKAGE_MINOR;
52 /**
53 * Get the micro version number of the libjaylink package.
55 * @return The micro version number of the libjaylink package.
57 * @since 0.1.0
59 JAYLINK_API int jaylink_version_package_get_micro(void)
61 return JAYLINK_VERSION_PACKAGE_MICRO;
64 /**
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
69 * caller.
71 * @since 0.1.0
73 JAYLINK_API const char *jaylink_version_package_get_string(void)
75 return JAYLINK_VERSION_PACKAGE_STRING;
78 /**
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
82 * interface.
84 * @since 0.1.0
86 JAYLINK_API int jaylink_version_library_get_current(void)
88 return JAYLINK_VERSION_LIBRARY_CURRENT;
91 /**
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
95 * interface.
97 * @since 0.1.0
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.
109 * @since 0.1.0
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
121 * the caller.
123 * @since 0.1.0
125 JAYLINK_API const char *jaylink_version_library_get_string(void)
127 return JAYLINK_VERSION_LIBRARY_STRING;