aboutsummaryrefslogtreecommitdiff
path: root/src/xz/list.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2010-01-24 23:50:54 +0200
committerLasse Collin <lasse.collin@tukaani.org>2010-01-24 23:50:54 +0200
commit0bc9eab243dee3be764b3530433a7fcdc3f7c6a1 (patch)
tree694fda24e060ad34250224ab6088abc0c1e3bc95 /src/xz/list.h
parentAdd io_pread(). (diff)
downloadxz-0bc9eab243dee3be764b3530433a7fcdc3f7c6a1.tar.xz
Add initial version of xz --list.
This is a bit rough but should be useful for basic things. Ideas (with detailed examples) about the output format are welcome. The output of --robot --list is not necessarily stable yet, although I don't currently have any plans about changing it. The man page hasn't been updated yet.
Diffstat (limited to 'src/xz/list.h')
-rw-r--r--src/xz/list.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/xz/list.h b/src/xz/list.h
new file mode 100644
index 00000000..a4c6ec7d
--- /dev/null
+++ b/src/xz/list.h
@@ -0,0 +1,18 @@
+///////////////////////////////////////////////////////////////////////////////
+//
+/// \file list.h
+/// \brief List information about .xz files
+//
+// Author: Lasse Collin
+//
+// This file has been put into the public domain.
+// You can do whatever you want with this file.
+//
+///////////////////////////////////////////////////////////////////////////////
+
+/// \brief List information about the given .xz file
+extern void list_file(const char *filename);
+
+
+/// \brief Show the totals after all files have been listed
+extern void list_totals(void);