summaryrefslogtreecommitdiff
path: root/cpio/cpio.h
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg.sonnenberger@gmail.com>2009-05-26 08:47:02 -0400
committerJoerg Sonnenberger <joerg.sonnenberger@gmail.com>2009-05-26 08:47:02 -0400
commit71d1bfe0f4f12d101def081c2ce170bb337b7841 (patch)
tree9096ab5d8261e5249fa31a2ec1332447d971d00e /cpio/cpio.h
parent83b3130331a1d5145bdd9f726d21876f15f2665d (diff)
downloadlibarchive-71d1bfe0f4f12d101def081c2ce170bb337b7841.tar.gz
Refactor common frontend code into a separate library.
SVN-Revision: 1118
Diffstat (limited to 'cpio/cpio.h')
-rw-r--r--cpio/cpio.h17
1 files changed, 3 insertions, 14 deletions
diff --git a/cpio/cpio.h b/cpio/cpio.h
index 7843c6f0..4b38b5ff 100644
--- a/cpio/cpio.h
+++ b/cpio/cpio.h
@@ -31,6 +31,8 @@
#include "cpio_platform.h"
#include <stdio.h>
+#include "matching.h"
+
/*
* The internal state for the "cpio" program.
*
@@ -83,17 +85,11 @@ struct cpio {
struct name_cache *gname_cache;
/* Work data. */
- struct matching *matching;
+ struct lafe_matching *matching;
char *buff;
size_t buff_size;
};
-/* Name of this program; used in error reporting, initialized in main(). */
-const char *cpio_progname;
-
-void cpio_errc(int _eval, int _code, const char *fmt, ...) __LA_DEAD;
-void cpio_warnc(int _code, const char *fmt, ...);
-
int owner_parse(const char *, int *, int *);
@@ -106,13 +102,6 @@ enum {
OPTION_VERSION
};
-struct line_reader;
-
-struct line_reader *process_lines_init(const char *, char separator);
-const char *process_lines_next(struct line_reader *);
-void process_lines_free(struct line_reader *);
-
int cpio_getopt(struct cpio *cpio);
-int include_from_file(struct cpio *, const char *);
#endif