librsync
2.3.4
|
Generic state-machine interface. More...
Go to the source code of this file.
Data Structures | |
struct | rs_job |
The contents of this structure are private. More... | |
Macros | |
#define | RS_JOB_TAG 20010225 |
Magic job tag number for checking jobs have been initialized. More... | |
#define | MAX_DELTA_CMD (1<<16) |
Max length of a singled delta command is including command bytes. More... | |
#define | rs_job_check(job) |
Assert that a job is valid. More... | |
Functions | |
rs_job_t * | rs_job_new (const char *, rs_result(*statefn)(rs_job_t *)) |
Generic state-machine interface.
The point of this is that we need to be able to suspend and resume processing at any point at which the buffers may block.
Definition in file job.h.
#define RS_JOB_TAG 20010225 |
#define MAX_DELTA_CMD (1<<16) |
#define rs_job_check | ( | job | ) |
Assert that a job is valid.
We don't use a static inline function here so that assert failure output points at where rs_job_check() was called from.