summaryrefslogtreecommitdiff
path: root/xdelta3/xdelta3.h
diff options
context:
space:
mode:
authorjosh.macdonald <jmacd@users.noreply.github.com>2007-02-08 02:14:23 +0000
committerjosh.macdonald <jmacd@users.noreply.github.com>2007-02-08 02:14:23 +0000
commitaf5c96da10b2ce86c975769a3554ad9557bef431 (patch)
tree45b90b6b491cdb544fbb2cfe4230b19fc1a077b2 /xdelta3/xdelta3.h
parent750fb98f99a96c390a86185383ce1739eadeae0a (diff)
Python swig module working with xd3_encode_memory(), xd3_decode_memory(),
and xd3_main_cmdline(). module added to xdelta3-regtest.py run-length experiments. XD3_INVALID_INPUT code added to distinguish decoder errors from invalid stream-states. xdelta3-test.py unittest added for python module. xd3_encode_memory() now limits config.winsize to <= 1MB: xd3_process_memory() now properly splits the input buffer into windows.
Diffstat (limited to 'xdelta3/xdelta3.h')
-rwxr-xr-xxdelta3/xdelta3.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/xdelta3/xdelta3.h b/xdelta3/xdelta3.h
index ca8d7c9..e6c9e20 100755
--- a/xdelta3/xdelta3.h
+++ b/xdelta3/xdelta3.h
@@ -171,6 +171,10 @@ typedef uint32_t xoff_t;
171#define PYTHON_MODULE 0 171#define PYTHON_MODULE 0
172#endif 172#endif
173 173
174#ifndef SWIG_MODULE
175#define SWIG_MODULE 0
176#endif
177
174/* There are three string matching functions supplied: one fast, one slow (default), and 178/* There are three string matching functions supplied: one fast, one slow (default), and
175 * one soft-configurable. To disable any of these, use the following definitions. */ 179 * one soft-configurable. To disable any of these, use the following definitions. */
176#ifndef XD3_BUILD_SLOW 180#ifndef XD3_BUILD_SLOW
@@ -303,6 +307,7 @@ typedef enum {
303 XD3_TOOFARBACK = -17709, /* (encoder only) may be returned by getblk() if the block is too old */ 307 XD3_TOOFARBACK = -17709, /* (encoder only) may be returned by getblk() if the block is too old */
304 XD3_INTERNAL = -17710, /* internal error */ 308 XD3_INTERNAL = -17710, /* internal error */
305 XD3_INVALID = -17711, /* invalid config */ 309 XD3_INVALID = -17711, /* invalid config */
310 XD3_INVALID_INPUT = -17712, /* invalid input/decoder error */
306 311
307} xd3_rvalues; 312} xd3_rvalues;
308 313