]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Moved ZSTD_defaultCLevel() into stable API 2580/head
authorSen Huang <senhuang96@fb.com>
Fri, 16 Apr 2021 16:58:42 +0000 (09:58 -0700)
committerSen Huang <senhuang96@fb.com>
Fri, 16 Apr 2021 17:15:40 +0000 (10:15 -0700)
doc/zstd_manual.html
lib/zstd.h

index 15857959b7c5ff0db54c377c9d263c2c134ad801..296562e8f0da64214e4264fcacfacad790e15f92 100644 (file)
@@ -143,6 +143,7 @@ unsigned    ZSTD_isError(size_t code);          </b>/*!< tells if a `size_t` fun
 const char* ZSTD_getErrorName(size_t code);     </b>/*!< provides readable string from an error code */<b>
 int         ZSTD_minCLevel(void);               </b>/*!< minimum negative compression level allowed */<b>
 int         ZSTD_maxCLevel(void);               </b>/*!< maximum compression level available */<b>
+int         ZSTD_defaultCLevel(void);           </b>/*!< default compression level, specified by ZSTD_CLEVEL_DEFAULT */<b>
 </pre></b><BR>
 <a name="Chapter4"></a><h2>Explicit context</h2><pre></pre>
 
@@ -1441,11 +1442,6 @@ size_t ZSTD_freeCCtxParams(ZSTD_CCtx_params* params);
   which have troubles handling structures containing memory pointers.
  
 </p></pre><BR>
-  
-<pre><b>int ZSTD_defaultCLevel();
-</b><p> Returns the default compression level, specified by ZSTD_CLEVEL_DEFAULT
-
-</p></pre><BR>
 
 <a name="Chapter18"></a><h2>Advanced decompression functions</h2><pre></pre>
 
index b95959a34f575afd8a1a2a7c906f3e6253c8bbe0..416312e5dd200ceb7503ad557b0af075b30d1323 100644 (file)
@@ -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