]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Common header file change not applicable to open-vm-tools.
authorOliver Kurth <okurth@vmware.com>
Mon, 15 Apr 2019 18:33:00 +0000 (11:33 -0700)
committerOliver Kurth <okurth@vmware.com>
Mon, 15 Apr 2019 18:33:00 +0000 (11:33 -0700)
open-vm-tools/lib/include/circList.h

index 4cecfe090fc0d2f860195ceda6b9785b2a5fd651..fab2b0c2265b33b31c6c7637dc805321419f5628 100644 (file)
@@ -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;
+}
+
+
 /*
  *----------------------------------------------------------------------
  *