From: Alan T. DeKok Date: Mon, 4 Apr 2022 19:00:33 +0000 (-0400) Subject: add dlist_head function X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5537a5e9a87bf205dbcf0514e9ef8dd8d9ee5b6;p=thirdparty%2Ffreeradius-server.git add dlist_head function --- diff --git a/src/lib/util/tlist.h b/src/lib/util/tlist.h index 36f00169cd..10db34e43a 100644 --- a/src/lib/util/tlist.h +++ b/src/lib/util/tlist.h @@ -937,6 +937,9 @@ DIAG_OFF(unused-function) \ _Static_assert(IS_FIELD_COMPATIBLE(_element_type, _element_entry, FR_TLIST_ENTRY(_name)) == 1, "Bad tlist entry field type");\ static inline fr_tlist_head_t *_name ## _list_head(FR_TLIST_HEAD(_name) const *list) \ { return UNCONST(fr_tlist_head_t *, &list->head); } \ +\ + static inline fr_dlist_head_t *_name ## _dlist_head(FR_TLIST_HEAD(_name) const *list) \ + { return UNCONST(fr_dlist_head_t *, &list->head.dlist_head); } \ \ static inline void _name ## _entry_init(_element_type *entry) \ { \