summaryrefslogtreecommitdiff
path: root/lib/linklist.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2024-07-10 09:08:21 +0200
committerGitHub <noreply@github.com>2024-07-10 09:08:21 +0200
commitebf05b4ee18a94086a15207f14b00b05df5a5dde (patch)
treead228433978fdb66b834c0d9ea245181340ddf63 /lib/linklist.h
parent52376aa4b6244f39e6edf82b3d3827e33d965cf9 (diff)
parent69b36cdf071a83f57a10206fd69db6cc7da5d10f (diff)
Merge pull request #16140 from donaldsharp/linklist_discouragement
Diffstat (limited to 'lib/linklist.h')
-rw-r--r--lib/linklist.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/linklist.h b/lib/linklist.h
index fd953d0769..f922891df9 100644
--- a/lib/linklist.h
+++ b/lib/linklist.h
@@ -10,6 +10,18 @@
extern "C" {
#endif
+/*
+ * NOTICE:
+ *
+ * If you are reading this file in an effort to add a new list structure
+ * this is the wrong place to be using it. Please see the typesafe
+ * data structures, or ask one of the other developers.
+ *
+ * If you are reading this file as a way to update an existing usage
+ * of this data structure, please consider just converting the data
+ * structure to one of the typesafe data structures instead.
+ */
+
/* listnodes must always contain data to be valid. Adding an empty node
* to a list is invalid
*/