summaryrefslogtreecommitdiff
path: root/include/sqfs/block.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-26 17:21:44 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-26 17:22:53 +0200
commitff4a9235feb4237854ff102c4dc7cf4645d6a116 (patch)
tree18017f7f1b6776ef76360fef0ff127d42f3007cd /include/sqfs/block.h
parent248765bd9f6ead4fbe4e5822bcaf46b85fe1687f (diff)
Add file API stub to sqfs data writer
Basically move the state tracking from the old data writer over to the new one. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/sqfs/block.h')
-rw-r--r--include/sqfs/block.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/include/sqfs/block.h b/include/sqfs/block.h
index 5216fd7..0dee934 100644
--- a/include/sqfs/block.h
+++ b/include/sqfs/block.h
@@ -41,16 +41,6 @@ typedef enum {
SQFS_BLK_DONT_COMPRESS = 0x0001,
/**
- * @brief Indicates that an equeued block is the first block of a file.
- */
- SQFS_BLK_FIRST_BLOCK = 0x0002,
-
- /**
- * @brief Indicates that an equeued block is the last block of a file.
- */
- SQFS_BLK_LAST_BLOCK = 0x0004,
-
- /**
* @brief Allign the block on disk to device block size.
*
* If set in combination with @ref SQFS_BLK_FIRST_BLOCK, the output
@@ -60,13 +50,23 @@ typedef enum {
* If used with @ref SQFS_BLK_LAST_BLOCK, the output file is padded
* after writing the block.
*/
- SQFS_BLK_ALLIGN = 0x0008,
+ SQFS_BLK_ALLIGN = 0x0002,
+
+ /**
+ * @brief Indicates that an equeued block is the first block of a file.
+ */
+ SQFS_BLK_FIRST_BLOCK = 0x0800,
+
+ /**
+ * @brief Indicates that an equeued block is the last block of a file.
+ */
+ SQFS_BLK_LAST_BLOCK = 0x1000,
/**
* @brief Indicates that a block is a tail end of a file and the block
* processor should take care of fragment packing and accounting.
*/
- SQFS_BLK_IS_FRAGMENT = 0x0010,
+ SQFS_BLK_IS_FRAGMENT = 0x2000,
/**
* @brief Set by the block processor on fragment blocks that
@@ -82,7 +82,7 @@ typedef enum {
/**
* @brief The combination of all flags that are user settable.
*/
- SQFS_BLK_USER_SETTABLE_FLAGS = 0x001F,
+ SQFS_BLK_USER_SETTABLE_FLAGS = 0x0003,
} E_SQFS_BLK_FLAGS;
/**