librsync
2.3.4
|
Apply a delta to an old file to generate a new file. More...
Go to the source code of this file.
Functions | |
static rs_result | rs_patch_s_cmdbyte (rs_job_t *job) |
State of trying to read the first byte of a command. More... | |
static rs_result | rs_patch_s_params (rs_job_t *job) |
Called after reading a command byte to pull in its parameters and then setup to execute the command. More... | |
static rs_result | rs_patch_s_run (rs_job_t *job) |
Called when we've read in the whole command and we need to execute it. More... | |
static rs_result | rs_patch_s_literal (rs_job_t *job) |
Called when trying to copy through literal data. More... | |
static rs_result | rs_patch_s_copy (rs_job_t *) |
static rs_result | rs_patch_s_copying (rs_job_t *job) |
Called when we're executing a COPY command and waiting for all the data to be retrieved from the callback. More... | |
static rs_result | rs_patch_s_header (rs_job_t *job) |
Called while we're trying to read the header of the patch. More... | |
rs_job_t * | rs_patch_begin (rs_copy_cb *copy_cb, void *copy_arg) |
Apply a delta to a basis file to recreate the new file. More... | |
Apply a delta to an old file to generate a new file.
Definition in file patch.c.
rs_job_t * rs_patch_begin | ( | rs_copy_cb * | copy_cb, |
void * | copy_arg | ||
) |
Apply a delta to a basis file to recreate the new file.
This gives you back a rs_job_t object, which can be cranked by calling rs_job_iter() and updating the stream pointers. When finished, call rs_job_free() to dispose of it.
copy_cb | Callback used to retrieve content from the basis file. |
copy_arg | Opaque environment pointer passed through to the callback. |