From 04518e8940014d4528fbdc5474705cfcf98b44f2 Mon Sep 17 00:00:00 2001
From: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Date: Thu, 19 Sep 2019 16:02:33 +0200
Subject: Add data reader function to dump contents by inode

Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
---
 include/data_reader.h | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'include')

diff --git a/include/data_reader.h b/include/data_reader.h
index 846ffd1..63bd539 100644
--- a/include/data_reader.h
+++ b/include/data_reader.h
@@ -28,6 +28,9 @@ data_reader_t *data_reader_create(sqfs_file_t *file, sqfs_super_t *super,
 
 void data_reader_destroy(data_reader_t *data);
 
+int data_reader_dump(data_reader_t *data, const sqfs_inode_generic_t *inode,
+		     int outfd, bool allow_sparse);
+
 /*
   Use a file_info_t to locate and extract all blocks of the coresponding
   file and its fragment, if it has one. The entire data is dumped to the
-- 
cgit v1.2.3