From e2ae7f6d8ccc3d7936f922b22a3436f944c69f68 Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Tue, 17 Nov 2015 23:05:37 -0600 Subject: [PATCH] lxc_container struct: add comment about moving member fns Signed-off-by: Serge Hallyn --- src/lxc/lxccontainer.h | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.47.2