]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc_container struct: add comment about moving member fns 702/head
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 18 Nov 2015 05:05:37 +0000 (23:05 -0600)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 18 Nov 2015 05:05:37 +0000 (23:05 -0600)
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxccontainer.h

index d8b20ecd7914616a1088dcdd3b00ac44ed466b8b..38e1a8e00aeceeb7b2eb8e15b66a6eab1e19d2bc 100644 (file)
@@ -51,6 +51,10 @@ struct lxc_lock;
 
 /*!
  * An LXC container.
+ *
+ * Note that changing the order of struct members is an API change, as callers
+ * will end up having the wrong offset when calling a function.  So when making
+ * changes, whenever possible stick to simply appending new members.
  */
 struct lxc_container {
        // private fields