Move get_ar_headers to libbb, make dpkg_deb.c independent of ar.c
diff --git a/libbb/libbb.h b/libbb/libbb.h
index 6133b19..649fe11 100644
--- a/libbb/libbb.h
+++ b/libbb/libbb.h
@@ -215,4 +215,16 @@
char *xgetcwd(char *cwd);
char *concat_path_file(const char *path, const char *filename);
+typedef struct ar_headers_s {
+ char *name;
+ off_t size;
+ uid_t uid;
+ gid_t gid;
+ mode_t mode;
+ time_t mtime;
+ off_t offset;
+ struct ar_headers_s *next;
+} ar_headers_t;
+extern ar_headers_t get_ar_headers(int srcFd);
+
#endif /* __LIBBB_H__ */