#include <apr.h>
#include <apr_pools.h>
#include "svn_types.h"
#include "svn_string.h"
#include "svn_error.h"
#include "svn_io.h"
#include "svn_version.h"
Go to the source code of this file.
Data Structures | |
struct | svn_txdelta_op_t |
A single text delta instruction. More... | |
struct | svn_txdelta_window_t |
An svn_txdelta_window_t object describes how to reconstruct a contiguous section of the target string (the "target view") using a specified contiguous region of the source string (the "source view"). More... | |
struct | svn_delta_editor_t |
A structure full of callback functions the delta source will invoke as it produces the delta. More... | |
Typedefs | |
typedef svn_txdelta_op_t | svn_txdelta_op_t |
A single text delta instruction. | |
typedef svn_txdelta_window_t | svn_txdelta_window_t |
An svn_txdelta_window_t object describes how to reconstruct a contiguous section of the target string (the "target view") using a specified contiguous region of the source string (the "source view"). | |
typedef svn_error_t *(* | svn_txdelta_window_handler_t )(svn_txdelta_window_t *window, void *baton) |
A typedef for functions that consume a series of delta windows, for use in caller-pushes interfaces. | |
typedef svn_txdelta_stream_t | svn_txdelta_stream_t |
A delta stream --- this is the hat from which we pull a series of svn_txdelta_window_t objects, which, taken in order, describe the entire target string. | |
typedef svn_delta_editor_t | svn_delta_editor_t |
A structure full of callback functions the delta source will invoke as it produces the delta. | |
typedef svn_error_t *(* | svn_delta_path_driver_cb_func_t )(void **dir_baton, void *parent_baton, void *callback_baton, const char *path, apr_pool_t *pool) |
Callback function type for svn_delta_path_driver(). | |
Enumerations | |
enum | svn_delta_action { svn_txdelta_source, svn_txdelta_target, svn_txdelta_new } |
Functions | |
const svn_version_t * | svn_delta_version (void) |
| |
svn_error_t * | svn_txdelta_next_window (svn_txdelta_window_t **window, svn_txdelta_stream_t *stream, apr_pool_t *pool) |
Set *window to a pointer to the next window from the delta stream stream. | |
const unsigned char * | svn_txdelta_md5_digest (svn_txdelta_stream_t *stream) |
Return the md5 digest for the complete fulltext deltified by stream, or NULL if stream has not yet returned its final NULL window. | |
void | svn_txdelta (svn_txdelta_stream_t **stream, svn_stream_t *source, svn_stream_t *target, apr_pool_t *pool) |
Set *stream to a pointer to a delta stream that will turn the byte string from source into the byte stream from target. | |
svn_stream_t * | svn_txdelta_target_push (svn_txdelta_window_handler_t handler, void *handler_baton, svn_stream_t *source, apr_pool_t *pool) |
| |
svn_error_t * | svn_txdelta_send_string (const svn_string_t *string, svn_txdelta_window_handler_t handler, void *handler_baton, apr_pool_t *pool) |
Send the contents of string to window-handler handler/baton. | |
svn_error_t * | svn_txdelta_send_stream (svn_stream_t *stream, svn_txdelta_window_handler_t handler, void *handler_baton, unsigned char *digest, apr_pool_t *pool) |
Send the contents of stream to window-handler handler/baton. | |
svn_error_t * | svn_txdelta_send_txstream (svn_txdelta_stream_t *txstream, svn_txdelta_window_handler_t handler, void *handler_baton, apr_pool_t *pool) |
Send the contents of txstream to window-handler handler/baton. | |
void | svn_txdelta_apply (svn_stream_t *source, svn_stream_t *target, unsigned char *result_digest, const char *error_info, apr_pool_t *pool, svn_txdelta_window_handler_t *handler, void **handler_baton) |
Prepare to apply a text delta. | |
void | svn_txdelta_to_svndiff (svn_stream_t *output, apr_pool_t *pool, svn_txdelta_window_handler_t *handler, void **handler_baton) |
Prepare to produce an svndiff-format diff from text delta windows. | |
svn_stream_t * | svn_txdelta_parse_svndiff (svn_txdelta_window_handler_t handler, void *handler_baton, svn_boolean_t error_on_early_close, apr_pool_t *pool) |
Return a writable generic stream which will parse svndiff-format data into a text delta, invoking handler with handler_baton whenever a new window is ready. | |
svn_error_t * | svn_txdelta_read_svndiff_window (svn_txdelta_window_t **window, svn_stream_t *stream, int svndiff_version, apr_pool_t *pool) |
| |
svn_error_t * | svn_txdelta_skip_svndiff_window (apr_file_t *file, int svndiff_version, apr_pool_t *pool) |
| |
svn_delta_editor_t * | svn_delta_default_editor (apr_pool_t *pool) |
Return a default delta editor template, allocated in pool. | |
svn_error_t * | svn_delta_noop_window_handler (svn_txdelta_window_t *window, void *baton) |
A text-delta window handler which does nothing. | |
svn_error_t * | svn_delta_get_cancellation_editor (svn_cancel_func_t cancel_func, void *cancel_baton, const svn_delta_editor_t *wrapped_editor, void *wrapped_baton, const svn_delta_editor_t **editor, void **edit_baton, apr_pool_t *pool) |
Return a cancellation editor that wraps wrapped_editor. | |
svn_error_t * | svn_delta_path_driver (const svn_delta_editor_t *editor, void *edit_baton, svn_revnum_t revision, apr_array_header_t *paths, svn_delta_path_driver_cb_func_t callback_func, void *callback_baton, apr_pool_t *pool) |
Drive editor (with its edit_baton) in such a way that each path in paths is traversed in a depth-first fashion. |
Definition in file svn_delta.h.
|
Get libsvn_delta version information. |