librsync  2.3.2
Data Fields
rs_job Struct Reference

The contents of this structure are private. More...

Data Fields

int dogtag
 
const char * job_name
 Human-readable job operation name. More...
 
rs_buffers_tstream
 
rs_result(* statefn )(rs_job_t *)
 Callback for each processing step. More...
 
rs_result final_result
 Final result of processing job. More...
 
int sig_magic
 
int sig_block_len
 
int sig_strong_len
 
rs_long_t sig_fsize
 The size of the signature file if available. More...
 
rs_signature_tsignature
 Pointer to the signature that's being used by the operation. More...
 
int job_owns_sig
 Flag indicating signature should be destroyed with the job. More...
 
unsigned char op
 Command byte currently being processed, if any. More...
 
rs_weak_sum_t weak_sig
 The weak signature digest used by readsums.c. More...
 
weaksum_t weak_sum
 The rollsum weak signature accumulator used by delta.c. More...
 
rs_long_t param1
 Lengths of expected parameters. More...
 
rs_long_t param2
 
struct rs_prototab_ent const * cmd
 
rs_mdfour_t output_md4
 
rs_stats_t stats
 Encoding statistics. More...
 
rs_byte_t * scoop_buf
 Buffer of data in the scoop. More...
 
rs_byte_t * scoop_next
 
size_t scoop_alloc
 
size_t scoop_avail
 
size_t scoop_pos
 
rs_byte_t write_buf [36]
 If USED is >0, then buf contains that much write data to be sent out. More...
 
size_t write_len
 
size_t copy_len
 If copy_len is >0, then that much data should be copied through from the input. More...
 
rs_long_t basis_pos
 Copy from the basis position. More...
 
rs_long_t basis_len
 
rs_copy_cbcopy_cb
 Callback used to copy data from the basis into the output. More...
 
void * copy_arg
 

Detailed Description

The contents of this structure are private.

Definition at line 26 of file job.h.

Field Documentation

◆ job_name

const char* rs_job::job_name

Human-readable job operation name.

Definition at line 30 of file job.h.

◆ statefn

rs_result(* rs_job::statefn) (rs_job_t *)

Callback for each processing step.

Definition at line 35 of file job.h.

◆ final_result

rs_result rs_job::final_result

Final result of processing job.

Used by rs_job_s_failed().

Definition at line 38 of file job.h.

◆ sig_fsize

rs_long_t rs_job::sig_fsize

The size of the signature file if available.

Used by loadsums.c when initializing the signature to preallocate memory.

Definition at line 48 of file job.h.

◆ signature

rs_signature_t* rs_job::signature

Pointer to the signature that's being used by the operation.

Definition at line 51 of file job.h.

◆ job_owns_sig

int rs_job::job_owns_sig

Flag indicating signature should be destroyed with the job.

Definition at line 54 of file job.h.

◆ op

unsigned char rs_job::op

Command byte currently being processed, if any.

Definition at line 57 of file job.h.

◆ weak_sig

rs_weak_sum_t rs_job::weak_sig

The weak signature digest used by readsums.c.

Definition at line 60 of file job.h.

◆ weak_sum

weaksum_t rs_job::weak_sum

The rollsum weak signature accumulator used by delta.c.

Definition at line 63 of file job.h.

◆ param1

rs_long_t rs_job::param1

Lengths of expected parameters.

Definition at line 66 of file job.h.

◆ stats

rs_stats_t rs_job::stats

Encoding statistics.

Definition at line 72 of file job.h.

◆ scoop_buf

rs_byte_t* rs_job::scoop_buf

Buffer of data in the scoop.

Allocation is scoop_buf[0..scoop_alloc], and scoop_next[0..scoop_avail] contains data yet to be processed. scoop_next[scoop_pos..scoop_avail] is the data yet to be scanned.

Definition at line 77 of file job.h.

◆ write_buf

rs_byte_t rs_job::write_buf[36]

If USED is >0, then buf contains that much write data to be sent out.

Definition at line 84 of file job.h.

◆ copy_len

size_t rs_job::copy_len

If copy_len is >0, then that much data should be copied through from the input.

Definition at line 89 of file job.h.

◆ basis_pos

rs_long_t rs_job::basis_pos

Copy from the basis position.

Definition at line 92 of file job.h.

◆ copy_cb

rs_copy_cb* rs_job::copy_cb

Callback used to copy data from the basis into the output.

Definition at line 95 of file job.h.


The documentation for this struct was generated from the following file: