From: Sen Huang Date: Fri, 16 Apr 2021 16:58:42 +0000 (-0700) Subject: Moved ZSTD_defaultCLevel() into stable API X-Git-Tag: v1.5.0^2~51^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5869677d930cb93ca85c93161cf4f1fa871e457;p=thirdparty%2Fzstd.git Moved ZSTD_defaultCLevel() into stable API --- diff --git a/doc/zstd_manual.html b/doc/zstd_manual.html index 15857959b..296562e8f 100644 --- a/doc/zstd_manual.html +++ b/doc/zstd_manual.html @@ -143,6 +143,7 @@ unsigned ZSTD_isError(size_t code); /*!< tells if a `size_t` fun const char* ZSTD_getErrorName(size_t code); /*!< provides readable string from an error code */ int ZSTD_minCLevel(void); /*!< minimum negative compression level allowed */ int ZSTD_maxCLevel(void); /*!< maximum compression level available */ +int ZSTD_defaultCLevel(void); /*!< default compression level, specified by ZSTD_CLEVEL_DEFAULT */

Explicit context


 
@@ -1441,11 +1442,6 @@ size_t ZSTD_freeCCtxParams(ZSTD_CCtx_params* params);
   which have troubles handling structures containing memory pointers.
  
 


- -
int ZSTD_defaultCLevel();
-

Returns the default compression level, specified by ZSTD_CLEVEL_DEFAULT - -


Advanced decompression functions


 
diff --git a/lib/zstd.h b/lib/zstd.h
index b95959a34..416312e5d 100644
--- a/lib/zstd.h
+++ b/lib/zstd.h
@@ -182,6 +182,7 @@ ZSTDLIB_API unsigned    ZSTD_isError(size_t code);          /*!< tells if a `siz
 ZSTDLIB_API const char* ZSTD_getErrorName(size_t code);     /*!< provides readable string from an error code */
 ZSTDLIB_API int         ZSTD_minCLevel(void);               /*!< minimum negative compression level allowed */
 ZSTDLIB_API int         ZSTD_maxCLevel(void);               /*!< maximum compression level available */
+ZSTDLIB_API int         ZSTD_defaultCLevel(void);           /*!< default compression level, specified by ZSTD_CLEVEL_DEFAULT */
 
 
 /***************************************
@@ -1947,10 +1948,6 @@ ZSTDLIB_API size_t ZSTD_compressStream2_simpleArgs (
                       const void* src, size_t srcSize, size_t* srcPos,
                             ZSTD_EndDirective endOp);
 
-/*! ZSTD_defaultCLevel() :
- * Returns the default compression level, specified by ZSTD_CLEVEL_DEFAULT
- */
-ZSTDLIB_API int ZSTD_defaultCLevel(void);
 
 /***************************************
 *  Advanced decompression functions