diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2002-12-08 00:54:33 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2002-12-08 00:54:33 +0000 |
commit | 66125c806518f74a54232206d02e30a39b621232 (patch) | |
tree | f7e34d157460ad689c350071a25d19cdd51e1ebb /include/libbb.h | |
parent | 346cdb1ddea7d825b29e9dcd73d6f7af8db8598f (diff) | |
download | busybox-w32-66125c806518f74a54232206d02e30a39b621232.tar.gz busybox-w32-66125c806518f74a54232206d02e30a39b621232.tar.bz2 busybox-w32-66125c806518f74a54232206d02e30a39b621232.zip |
Move add_to_list from libunarchive to libbb so it can be of more general use (eg ifupdown). Changed the name to llist_add_to as i plan on adding more llist_ functions as needed (e.g. llist_free).
Diffstat (limited to 'include/libbb.h')
-rw-r--r-- | include/libbb.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index dec6df116..1e95a903e 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -357,4 +357,10 @@ typedef struct { | |||
357 | extern procps_status_t * procps_scan(int save_user_arg0); | 357 | extern procps_status_t * procps_scan(int save_user_arg0); |
358 | extern unsigned short compare_string_array(const char *string_array[], const char *key); | 358 | extern unsigned short compare_string_array(const char *string_array[], const char *key); |
359 | 359 | ||
360 | typedef struct llist_s { | ||
361 | char *data; | ||
362 | struct llist_s *link; | ||
363 | } llist_t; | ||
364 | extern llist_t *llist_add_to(llist_t *old_head, char *new_item); | ||
365 | |||
360 | #endif /* __LIBCONFIG_H__ */ | 366 | #endif /* __LIBCONFIG_H__ */ |