summaryrefslogtreecommitdiff
path: root/xdelta3/xdelta3.h
diff options
context:
space:
mode:
Diffstat (limited to 'xdelta3/xdelta3.h')
-rw-r--r--xdelta3/xdelta3.h24
1 files changed, 17 insertions, 7 deletions
diff --git a/xdelta3/xdelta3.h b/xdelta3/xdelta3.h
index 8c11000..cee63cf 100644
--- a/xdelta3/xdelta3.h
+++ b/xdelta3/xdelta3.h
@@ -333,17 +333,27 @@ typedef enum
333 * only search the source, not the target. */ 333 * only search the source, not the target. */
334 XD3_BEGREEDY = (1 << 14), /* disable the "1.5-pass algorithm", instead use 334 XD3_BEGREEDY = (1 << 14), /* disable the "1.5-pass algorithm", instead use
335 * greedy matching. Greedy is off by default. */ 335 * greedy matching. Greedy is off by default. */
336
337 /* 4 bits to set the compression level the same as the command-line
338 * setting -1 through -9 (-0 corresponds to the XD3_NOCOMPRESS flag,
339 * and is independent of compression level). This is for
340 * convenience, especially with xd3_encode_memory(). */
341
342 XD3_COMPLEVEL_SHIFT = 20, /* 20 - 24 */
343 XD3_COMPLEVEL_MASK = (0xF << XD3_COMPLEVEL_SHIFT),
344 XD3_COMPLEVEL_1 = (1 << XD3_COMPLEVEL_SHIFT),
345 XD3_COMPLEVEL_3 = (3 << XD3_COMPLEVEL_SHIFT),
346 XD3_COMPLEVEL_6 = (6 << XD3_COMPLEVEL_SHIFT),
347 XD3_COMPLEVEL_9 = (9 << XD3_COMPLEVEL_SHIFT),
348
336} xd3_flags; 349} xd3_flags;
337 350
338/* The values of this enumeration are set in xd3_config using the smatch_cfg variable. It 351/* The values of this enumeration are set in xd3_config using the
339 * can be set to slow, fast, soft, or default. The fast and slow setting uses preset, 352 * smatch_cfg variable. It can be set to default, slow, fast, etc.,
340 * hardcoded parameters and the soft setting is accompanied by user-supplied parameters. 353 * and soft. */
341 * If the user supplies 'default' the code selects one of the available string matchers.
342 * Due to compile-time settings (see XD3_SLOW_SMATCHER, XD3_FAST_SMATCHER,
343 * XD3_SOFT_SMATCHER variables), not all options may be available. */
344typedef enum 354typedef enum
345{ 355{
346 XD3_SMATCH_DEFAULT = 0, 356 XD3_SMATCH_DEFAULT = 0, /* Flags may contain XD3_COMPLEVEL bits, else default. */
347 XD3_SMATCH_SLOW = 1, 357 XD3_SMATCH_SLOW = 1,
348 XD3_SMATCH_FAST = 2, 358 XD3_SMATCH_FAST = 2,
349 XD3_SMATCH_FASTEST = 3, 359 XD3_SMATCH_FASTEST = 3,