From: Oliver Kurth Date: Mon, 15 Apr 2019 18:33:00 +0000 (-0700) Subject: Common header file change not applicable to open-vm-tools. X-Git-Tag: stable-11.0.0~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbefe8051a56b3cf834bf71c8f55fdfd88802b9d;p=thirdparty%2Fopen-vm-tools.git Common header file change not applicable to open-vm-tools. --- diff --git a/open-vm-tools/lib/include/circList.h b/open-vm-tools/lib/include/circList.h index 4cecfe090..fab2b0c22 100644 --- a/open-vm-tools/lib/include/circList.h +++ b/open-vm-tools/lib/include/circList.h @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 1998-2017 VMware, Inc. All rights reserved. + * Copyright (C) 1998-2017,2019 VMware, Inc. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published @@ -345,6 +345,34 @@ CircList_Push(ListItem *p, // IN } +/* + *---------------------------------------------------------------------- + * + * CircList_InsertAfter -- + * + * Adds a new member to the list after the provided item. Assumes p + * is not a member of a list already. + * + * Result: + * None. + * + * Side effects: + * None. + * + *---------------------------------------------------------------------- + */ + +static INLINE void +CircList_InsertAfter(ListItem *p, // IN: + ListItem *after) // IN: +{ + p->prev = after; + p->next = after->next; + p->next->prev = p; + after->next = p; +} + + /* *---------------------------------------------------------------------- *