From 3c1a4c2548cbbae96f44469278b53046c8b48868 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Tue, 25 Feb 2020 09:13:39 +0100 Subject: 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 --- include/sqfs/compressor.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/sqfs') 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 @@ -40,6 +40,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. -- cgit v1.2.3