aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 89e8e4452..490462eb1 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -987,9 +987,13 @@ extern uint32_t option_mask32;
987extern uint32_t getopt32(char **argv, const char *applet_opts, ...) FAST_FUNC; 987extern uint32_t getopt32(char **argv, const char *applet_opts, ...) FAST_FUNC;
988 988
989 989
990/* Having next pointer as a first member allows easy creation
991 * of "llist-compatible" structs, and using llist_FOO functions
992 * on them.
993 */
990typedef struct llist_t { 994typedef struct llist_t {
991 char *data;
992 struct llist_t *link; 995 struct llist_t *link;
996 char *data;
993} llist_t; 997} llist_t;
994void llist_add_to(llist_t **old_head, void *data) FAST_FUNC; 998void llist_add_to(llist_t **old_head, void *data) FAST_FUNC;
995void llist_add_to_end(llist_t **list_head, void *data) FAST_FUNC; 999void llist_add_to_end(llist_t **list_head, void *data) FAST_FUNC;