summaryrefslogtreecommitdiff
path: root/xdelta3/xdelta3.h
diff options
context:
space:
mode:
authorjosh.macdonald <jmacd@users.noreply.github.com>2007-01-29 04:56:38 +0000
committerjosh.macdonald <jmacd@users.noreply.github.com>2007-01-29 04:56:38 +0000
commitae118dad4f77c07dc2673e6877d5fdb4098ba727 (patch)
tree8b380a4243d77b28c23fe47548772a130301ea5c /xdelta3/xdelta3.h
parent19ab311b65d55c748672a5d1d914f2af83c27956 (diff)
Change _completely() to _completely_stream(), to introduce a new,
simpler in-memory API.
Diffstat (limited to 'xdelta3/xdelta3.h')
-rwxr-xr-xxdelta3/xdelta3.h31
1 files changed, 16 insertions, 15 deletions
diff --git a/xdelta3/xdelta3.h b/xdelta3/xdelta3.h
index c2fe0a6..86a2662 100755
--- a/xdelta3/xdelta3.h
+++ b/xdelta3/xdelta3.h
@@ -841,9 +841,10 @@ struct _xd3_stream
841 * XD3_GETSRCBLK: If the xd3_getblk() callback is NULL, this value is returned to 841 * XD3_GETSRCBLK: If the xd3_getblk() callback is NULL, this value is returned to
842 * initiate a non-blocking source read. 842 * initiate a non-blocking source read.
843 * 843 *
844 * For simple usage, see the xd3_process_completely() function, which underlies 844 * For simple usage, see the xd3_process_completely_stream() function, which underlies
845 * xd3_encode_completely() and xd3_decode_completely() [xdelta3.c]. For real application 845 * xd3_encode_completely_stream() and xd3_decode_completely_stream() [xdelta3.c]. For
846 * usage, including the application header, the see command-line utility [xdelta3-main.h]. 846 * real application usage, including the application header, the see command-line utility
847 * [xdelta3-main.h].
847 * 848 *
848 * main_input() implements the command-line encode and decode as well as the optional 849 * main_input() implements the command-line encode and decode as well as the optional
849 * VCDIFF_TOOLS printhdr, printhdrs, and printdelta with a single loop [xdelta3-main.h]. 850 * VCDIFF_TOOLS printhdr, printhdrs, and printdelta with a single loop [xdelta3-main.h].
@@ -881,21 +882,21 @@ int xd3_set_source (xd3_stream *stream,
881 882
882/* This function invokes xd3_encode_input using whole-file, in-memory inputs. The output 883/* This function invokes xd3_encode_input using whole-file, in-memory inputs. The output
883 * array must be large enough to hold the output or else ENOSPC is returned. */ 884 * array must be large enough to hold the output or else ENOSPC is returned. */
884int xd3_encode_completely (xd3_stream *stream, 885int xd3_encode_completely_stream (xd3_stream *stream,
885 const uint8_t *input, 886 const uint8_t *input,
886 usize_t input_size, 887 usize_t input_size,
887 uint8_t *output, 888 uint8_t *output,
888 usize_t *output_size, 889 usize_t *output_size,
889 usize_t avail_output); 890 usize_t avail_output);
890 891
891/* This function invokes xd3_decode_input using whole-file, in-memory inputs. The output 892/* This function invokes xd3_decode_input using whole-file, in-memory inputs. The output
892 * array must be large enough to hold the output or else ENOSPC is returned. */ 893 * array must be large enough to hold the output or else ENOSPC is returned. */
893int xd3_decode_completely (xd3_stream *stream, 894int xd3_decode_completely_stream (xd3_stream *stream,
894 const uint8_t *input, 895 const uint8_t *input,
895 usize_t input_size, 896 usize_t input_size,
896 uint8_t *output, 897 uint8_t *output,
897 usize_t *output_size, 898 usize_t *output_size,
898 usize_t avail_size); 899 usize_t avail_size);
899 900
900/* This should be called before the first call to xd3_encode_input() to include 901/* This should be called before the first call to xd3_encode_input() to include
901 * application-specific data in the VCDIFF header. */ 902 * application-specific data in the VCDIFF header. */