summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-02-25 09:13:39 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-02-27 01:05:42 +0100
commit3c1a4c2548cbbae96f44469278b53046c8b48868 (patch)
treecf528c5338f850012744e3376eae502767bfdc21 /include
parentc9429aeece3b8642de637f7a21e68046bd690658 (diff)
Add a function to the compressor interface to get the configuration
This allows getting the compressor configuration back after creating it, for various purposes. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r--include/sqfs/compressor.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/sqfs/compressor.h b/include/sqfs/compressor.h
index c0fafda..4292712 100644
--- a/include/sqfs/compressor.h
+++ b/include/sqfs/compressor.h
@@ -41,6 +41,15 @@ struct sqfs_compressor_t {
sqfs_object_t base;
/**
+ * @brief Get the current compressor configuration.
+ *
+ * @param cmp A pointer to the compressor object.
+ * @param cfg A pointer to the object to write the configuration to.
+ */
+ void (*get_configuration)(const sqfs_compressor_t *cmp,
+ sqfs_compressor_config_t *cfg);
+
+ /**
* @brief Write compressor options to disk if non-default settings
* have been used.
*