diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-05-26 13:54:07 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-05-26 13:54:07 +0000 |
commit | 8379053b11aa616f47003c33afa44353f4a74f8f (patch) | |
tree | 49ca075f6c5b75bbeeae6c9dae354380542ef73a | |
parent | 76b82cfd6f06bcc65850eb045f05a2c9af861d83 (diff) | |
download | busybox-w32-8379053b11aa616f47003c33afa44353f4a74f8f.tar.gz busybox-w32-8379053b11aa616f47003c33afa44353f4a74f8f.tar.bz2 busybox-w32-8379053b11aa616f47003c33afa44353f4a74f8f.zip |
- move llist to top of file so we can potentially use it in all prototypes easily
-rw-r--r-- | include/libbb.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/include/libbb.h b/include/libbb.h index 928e25d30..82d215bfe 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -79,6 +79,16 @@ | |||
79 | #endif | 79 | #endif |
80 | 80 | ||
81 | 81 | ||
82 | typedef struct llist_s { | ||
83 | char *data; | ||
84 | struct llist_s *link; | ||
85 | } llist_t; | ||
86 | extern llist_t *llist_add_to(llist_t *old_head, char *new_item); | ||
87 | extern llist_t *llist_add_to_end(llist_t *list_head, char *data); | ||
88 | extern void *llist_pop(llist_t **elm); | ||
89 | extern void llist_free(llist_t *elm, void (*freeit)(void *data)); | ||
90 | |||
91 | |||
82 | extern void bb_show_usage(void) ATTRIBUTE_NORETURN ATTRIBUTE_EXTERNALLY_VISIBLE; | 92 | extern void bb_show_usage(void) ATTRIBUTE_NORETURN ATTRIBUTE_EXTERNALLY_VISIBLE; |
83 | extern void bb_error_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))); | 93 | extern void bb_error_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))); |
84 | extern void bb_error_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))); | 94 | extern void bb_error_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))); |
@@ -474,15 +484,6 @@ extern int compare_string_array(const char * const string_array[], const char *k | |||
474 | 484 | ||
475 | extern int my_query_module(const char *name, int which, void **buf, size_t *bufsize, size_t *ret); | 485 | extern int my_query_module(const char *name, int which, void **buf, size_t *bufsize, size_t *ret); |
476 | 486 | ||
477 | typedef struct llist_s { | ||
478 | char *data; | ||
479 | struct llist_s *link; | ||
480 | } llist_t; | ||
481 | extern llist_t *llist_add_to(llist_t *old_head, char *new_item); | ||
482 | extern llist_t *llist_add_to_end(llist_t *list_head, char *data); | ||
483 | extern void *llist_pop(llist_t **elm); | ||
484 | extern void llist_free(llist_t *elm, void (*freeit)(void *data)); | ||
485 | |||
486 | extern void print_login_issue(const char *issue_file, const char *tty); | 487 | extern void print_login_issue(const char *issue_file, const char *tty); |
487 | extern void print_login_prompt(void); | 488 | extern void print_login_prompt(void); |
488 | 489 | ||