[lxc-devel] [lxc/master] lxccontainer: preserve ABI compatibility

brauner on Github lxc-bot at linuxcontainers.org
Thu Oct 12 15:13:22 UTC 2017


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 364 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20171012/b70a164f/attachment.bin>
-------------- next part --------------
From dcf33b9471c180f485a1a9f114141508fd7ac5df Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Thu, 12 Oct 2017 17:12:38 +0200
Subject: [PATCH] lxccontainer: preserve ABI compatibility

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
 src/lxc/lxccontainer.h | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/lxc/lxccontainer.h b/src/lxc/lxccontainer.h
index 85139115d..84bdab81c 100644
--- a/src/lxc/lxccontainer.h
+++ b/src/lxc/lxccontainer.h
@@ -280,17 +280,6 @@ struct lxc_container {
 	bool (*set_config_item)(struct lxc_container *c, const char *key, const char *value);
 
 	/*!
-	 * \brief Set a key/value configuration option on a running container.
-	 *
-	 * \param c Container.
-	 * \param key Name of option to set.
-	 * \param value Value of \p name to set.
-	 *
-	 * \return \c true on success, else \c false.
-	 */
-	bool (*set_running_config_item)(struct lxc_container *c, const char *key, const char *value);
-
-	/*!
 	 * \brief Delete the container.
 	 *
 	 * \param c Container.
@@ -834,6 +823,17 @@ struct lxc_container {
 	 * \return \c 0 on success, nonzero on failure.
 	 */
 	int (*migrate)(struct lxc_container *c, unsigned int cmd, struct migrate_opts *opts, unsigned int size);
+
+	/*!
+	 * \brief Set a key/value configuration option on a running container.
+	 *
+	 * \param c Container.
+	 * \param key Name of option to set.
+	 * \param value Value of \p name to set.
+	 *
+	 * \return \c true on success, else \c false.
+	 */
+	bool (*set_running_config_item)(struct lxc_container *c, const char *key, const char *value);
 };
 
 /*!


More information about the lxc-devel mailing list