diff options
| author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-11-28 16:11:22 +0100 | 
|---|---|---|
| committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-11-28 16:11:22 +0100 | 
| commit | 7f53d2785816e5b65dfdb0daa4039249569e58f9 (patch) | |
| tree | b8d44ef940d87ccc110501cbe66c5a5a3cbedbfb /include | |
| parent | 9e91c1558c40eaabd38f8f422555d6d8831e527f (diff) | |
Cleanup: Return combined return value from compressor id by name
Instead of returning the ID through a pointer and an error code as
return status, return a single int that could be a compressor ID
(positive values) or an error code (negative values).
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sqfs/compressor.h | 8 | 
1 files changed, 3 insertions, 5 deletions
| diff --git a/include/sqfs/compressor.h b/include/sqfs/compressor.h index 4f22b0d..5e0be5d 100644 --- a/include/sqfs/compressor.h +++ b/include/sqfs/compressor.h @@ -384,13 +384,11 @@ SQFS_API const char *sqfs_compressor_name_from_id(E_SQFS_COMPRESSOR id);   * available.   *   * @param name The name of the compressor backend. - * @param out Returns the coresponding @ref E_SQFS_COMPRESSOR identifier.   * - * @return Zero on success, @ref SQFS_ERROR_UNSUPPORTED if the backend - *         is unknown. + * @return A positive, @ref E_SQFS_COMPRESSOR identifier on success + *         or @ref SQFS_ERROR_UNSUPPORTED if the backend is unknown.   */ -SQFS_API -int sqfs_compressor_id_from_name(const char *name, E_SQFS_COMPRESSOR *out); +SQFS_API int sqfs_compressor_id_from_name(const char *name);  #ifdef __cplusplus  } | 
