Unverified Commit a22185dd by S.Çağlar Onur Committed by Stéphane Graber

Add LXC version information to version.h

So that applications can get the LXC version number at compile time. This can be used to make applications/bindings that support compiling against multiple versions of LXC. Signed-off-by: 's avatarS.Çağlar Onur <caglar@10ur.org> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 0a3673e8
...@@ -74,6 +74,7 @@ src/lxc/lxc-version ...@@ -74,6 +74,7 @@ src/lxc/lxc-version
src/lxc/lxc-wait src/lxc/lxc-wait
src/lxc/legacy/lxc-ls src/lxc/legacy/lxc-ls
src/lxc/lxc-user-nic src/lxc/lxc-user-nic
src/lxc/version.h
src/python-lxc/build/ src/python-lxc/build/
src/python-lxc/lxc/__pycache__/ src/python-lxc/lxc/__pycache__/
......
...@@ -14,6 +14,11 @@ AC_INIT([lxc], [lxc_version]) ...@@ -14,6 +14,11 @@ AC_INIT([lxc], [lxc_version])
AC_SUBST(LXC_VERSION_BASE, lxc_version_base) AC_SUBST(LXC_VERSION_BASE, lxc_version_base)
AC_SUBST(LXC_VERSION_BETA, lxc_version_beta) AC_SUBST(LXC_VERSION_BETA, lxc_version_beta)
AC_SUBST([LXC_VERSION_MAJOR], [lxc_version_major])
AC_SUBST([LXC_VERSION_MINOR], [lxc_version_minor])
AC_SUBST([LXC_VERSION_MICRO], [lxc_version_micro])
AC_SUBST([LXC_VERSION], [lxc_version])
AC_CONFIG_SRCDIR([configure.ac]) AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_AUX_DIR([config]) AC_CONFIG_AUX_DIR([config])
AC_CONFIG_HEADERS([src/config.h]) AC_CONFIG_HEADERS([src/config.h])
...@@ -554,7 +559,7 @@ AC_CONFIG_FILES([ ...@@ -554,7 +559,7 @@ AC_CONFIG_FILES([
src/lxc/lxc-start-ephemeral src/lxc/lxc-start-ephemeral
src/lxc/legacy/lxc-ls src/lxc/legacy/lxc-ls
src/lxc/lxc.functions src/lxc/lxc.functions
src/lxc/version.h
src/python-lxc/Makefile src/python-lxc/Makefile
src/lua-lxc/Makefile src/lua-lxc/Makefile
......
...@@ -20,8 +20,13 @@ ...@@ -20,8 +20,13 @@
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#ifndef _version_h #ifndef _VERSION_H
#define _version_h #define _VERSION_H
#define LXC_VERSION_MAJOR @LXC_VERSION_MAJOR@
#define LXC_VERSION_MINOR @LXC_VERSION_MINOR@
#define LXC_VERSION_MICRO @LXC_VERSION_MICRO@
#define LXC_VERSION "@LXC_VERSION@"
/* /*
* Returns the version number of the library * Returns the version number of the library
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment