[BusyBox-cvs] busybox/include libbb.h,1.87,1.88 unarchive.h,1.15,1.16

Glenn McGrath bug1 at busybox.net
Sun Dec 8 00:54:37 UTC 2002


Update of /var/cvs/busybox/include
In directory winder:/tmp/cvs-serv20423/include

Modified Files:
	libbb.h unarchive.h 
Log Message:
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).


Index: libbb.h
===================================================================
RCS file: /var/cvs/busybox/include/libbb.h,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -d -r1.87 -r1.88
--- libbb.h	2 Dec 2002 00:01:36 -0000	1.87
+++ libbb.h	8 Dec 2002 00:54:32 -0000	1.88
@@ -357,4 +357,10 @@
 extern procps_status_t * procps_scan(int save_user_arg0);
 extern unsigned short compare_string_array(const char *string_array[], const char *key);
 
+typedef struct llist_s {
+	char *data;
+	struct llist_s *link;
+} llist_t;
+extern llist_t *llist_add_to(llist_t *old_head, char *new_item);
+
 #endif /* __LIBCONFIG_H__ */

Index: unarchive.h
===================================================================
RCS file: /var/cvs/busybox/include/unarchive.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- unarchive.h	19 Nov 2002 21:07:17 -0000	1.15
+++ unarchive.h	8 Dec 2002 00:54:32 -0000	1.16
@@ -7,8 +7,8 @@
 #define ARCHIVE_EXTRACT_QUIET	8
 
 #include <sys/types.h>
-
 #include <stdio.h>
+#include "libbb.h"
 
 typedef struct file_headers_s {
 	char *name;
@@ -21,17 +21,12 @@
 	dev_t device;
 } file_header_t;
 
-typedef struct llist_s {
-	const char *data;
-	const struct llist_s *link;
-} llist_t;
-
 typedef struct archive_handle_s {
 	/* define if the header and data compenent should processed */
 	char (*filter)(struct archive_handle_s *);
-	const llist_t *accept;
-	const llist_t *reject;
-	const llist_t *passed;	/* List of files that have successfully been worked on */
+	llist_t *accept;
+	llist_t *reject;
+	llist_t *passed;	/* List of files that have successfully been worked on */
 
 	/* Contains the processed header entry */
 	file_header_t *file_header;
@@ -103,7 +98,6 @@
 extern ssize_t archive_xread_all_eof(archive_handle_t *archive_handle, unsigned char *buf, size_t count);
 
 extern void data_align(archive_handle_t *archive_handle, const unsigned short boundary);
-extern const llist_t *add_to_list(const llist_t *old_head, const char *new_item);
 extern void archive_copy_file(const archive_handle_t *archive_handle, const int dst_fd);
 extern const llist_t *find_list_entry(const llist_t *list, const char *filename);
 




More information about the busybox-cvs mailing list