From: Serge Hallyn Date: Wed, 18 Nov 2015 05:05:37 +0000 (-0600) Subject: lxc_container struct: add comment about moving member fns X-Git-Tag: lxc-2.0.0.beta1~45^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F702%2Fhead;p=thirdparty%2Flxc.git lxc_container struct: add comment about moving member fns Signed-off-by: Serge Hallyn --- diff --git a/src/lxc/lxccontainer.h b/src/lxc/lxccontainer.h index d8b20ecd7..38e1a8e00 100644 --- a/src/lxc/lxccontainer.h +++ b/src/lxc/lxccontainer.h @@ -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