]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc_container struct: add comment about moving member fns
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 18 Nov 2015 05:05:37 +0000 (23:05 -0600)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 17 Nov 2016 22:19:04 +0000 (17:19 -0500)
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxccontainer.h

index 4c5d01d3e8001c052a08b6ebac2ae51837f57b59..a342a398c477aa9879c1b07bcfdf5e9867ade2d1 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