From 62d4edf23d7a405a015002a5562de954ef09dd8c 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 4c5d01d3e..a342a398c 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