summaryrefslogtreecommitdiff
path: root/lib/sqfs/blk_proc
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-13 16:15:42 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-13 16:15:42 +0200
commit82b943d4d6b5895f7c07be24802c3d7ec9069dae (patch)
treeeecff305b33ac251829041cc7228674d53dc267e /lib/sqfs/blk_proc
parent31ae9e5cc5337558ddb456c379949e23af43fd9f (diff)
Make block process helper function internal
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/blk_proc')
-rw-r--r--lib/sqfs/blk_proc/internal.h16
-rw-r--r--lib/sqfs/blk_proc/process_block.c6
-rw-r--r--lib/sqfs/blk_proc/pthread.c7
-rw-r--r--lib/sqfs/blk_proc/serial.c6
4 files changed, 19 insertions, 16 deletions
diff --git a/lib/sqfs/blk_proc/internal.h b/lib/sqfs/blk_proc/internal.h
new file mode 100644
index 0000000..1c33999
--- /dev/null
+++ b/lib/sqfs/blk_proc/internal.h
@@ -0,0 +1,16 @@
+#ifndef INTERNAL_H
+#define INTERNAL_H
+
+#include "config.h"
+#include "sqfs/predef.h"
+
+#include "sqfs/block_processor.h"
+#include "sqfs/compress.h"
+#include "sqfs/error.h"
+#include "util.h"
+
+SQFS_INTERNAL
+int sqfs_block_process(sqfs_block_t *block, sqfs_compressor_t *cmp,
+ uint8_t *scratch, size_t scratch_size);
+
+#endif /* INTERNAL_H */
diff --git a/lib/sqfs/blk_proc/process_block.c b/lib/sqfs/blk_proc/process_block.c
index 3289767..0eae244 100644
--- a/lib/sqfs/blk_proc/process_block.c
+++ b/lib/sqfs/blk_proc/process_block.c
@@ -5,11 +5,7 @@
* Copyright (C) 2019 David Oberhollenzer <goliath@infraroot.at>
*/
#define SQFS_BUILDING_DLL
-#include "config.h"
-
-#include "sqfs/block_processor.h"
-#include "sqfs/compress.h"
-#include "util.h"
+#include "internal.h"
#include <string.h>
#include <zlib.h>
diff --git a/lib/sqfs/blk_proc/pthread.c b/lib/sqfs/blk_proc/pthread.c
index a00bf12..f56dfe1 100644
--- a/lib/sqfs/blk_proc/pthread.c
+++ b/lib/sqfs/blk_proc/pthread.c
@@ -5,12 +5,7 @@
* Copyright (C) 2019 David Oberhollenzer <goliath@infraroot.at>
*/
#define SQFS_BUILDING_DLL
-#include "config.h"
-
-#include "sqfs/block_processor.h"
-#include "sqfs/compress.h"
-#include "sqfs/error.h"
-#include "util.h"
+#include "internal.h"
#include <pthread.h>
#include <string.h>
diff --git a/lib/sqfs/blk_proc/serial.c b/lib/sqfs/blk_proc/serial.c
index ef71f9e..85f39fe 100644
--- a/lib/sqfs/blk_proc/serial.c
+++ b/lib/sqfs/blk_proc/serial.c
@@ -5,11 +5,7 @@
* Copyright (C) 2019 David Oberhollenzer <goliath@infraroot.at>
*/
#define SQFS_BUILDING_DLL
-#include "config.h"
-
-#include "sqfs/block_processor.h"
-#include "sqfs/error.h"
-#include "util.h"
+#include "internal.h"
#include <string.h>
#include <stdlib.h>