On Thu, Oct 5, 2017 at 6:54 PM, Vishal Verma <vishal.l.verma(a)intel.com> wrote:
In preparation for the error-inject command, add anew helper to
ccan/list for adding a list element in the middle of a list.
Cc: Dan Williams <dan.j.williams(a)intel.com>
Signed-off-by: Vishal Verma <vishal.l.verma(a)intel.com>
ccan/list/list.h | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Let's not touch the ccan files since these should always match what is
in upstream ccan. Create a local util/list.h to add new routines. It
would also be nice to rename this to list_splice() to bring us closer
in line with kernel list primitives.