librsync  2.3.4
Data Fields
rs_job Struct Reference

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

#include <job.h>

Collaboration diagram for rs_job:
[legend]

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
 The next data pointer. More...
 
size_t scoop_alloc
 The buffer allocation size. More...
 
size_t scoop_avail
 The amount of data available. More...
 
rs_byte_t * scan_buf
 The delta scan buffer, where scan_buf[scan_pos..scan_len] is the data yet to be scanned. More...
 
size_t scan_len
 The delta scan buffer length. More...
 
size_t scan_pos
 The delta scan position. More...
 
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 47 of file job.h.

Field Documentation

◆ dogtag

int rs_job::dogtag

Definition at line 48 of file job.h.

◆ job_name

const char* rs_job::job_name

Human-readable job operation name.

Definition at line 51 of file job.h.

◆ stream

rs_buffers_t* rs_job::stream

Definition at line 53 of file job.h.

◆ statefn

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

Callback for each processing step.

Definition at line 56 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 59 of file job.h.

◆ sig_magic

int rs_job::sig_magic

Definition at line 63 of file job.h.

◆ sig_block_len

int rs_job::sig_block_len

Definition at line 64 of file job.h.

◆ sig_strong_len

int rs_job::sig_strong_len

Definition at line 65 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 69 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 72 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 75 of file job.h.

◆ op

unsigned char rs_job::op

Command byte currently being processed, if any.

Definition at line 78 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 81 of file job.h.

◆ weak_sum

weaksum_t rs_job::weak_sum

The rollsum weak signature accumulator used by delta.c.

Definition at line 84 of file job.h.

◆ param1

rs_long_t rs_job::param1

Lengths of expected parameters.

Definition at line 87 of file job.h.

◆ param2

rs_long_t rs_job::param2

Definition at line 87 of file job.h.

◆ cmd

struct rs_prototab_ent const* rs_job::cmd

Definition at line 89 of file job.h.

◆ output_md4

rs_mdfour_t rs_job::output_md4

Definition at line 90 of file job.h.

◆ stats

rs_stats_t rs_job::stats

Encoding statistics.

Definition at line 93 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. The buffer allocation pointer.

Definition at line 97 of file job.h.

◆ scoop_next

rs_byte_t* rs_job::scoop_next

The next data pointer.

Definition at line 98 of file job.h.

◆ scoop_alloc

size_t rs_job::scoop_alloc

The buffer allocation size.

Definition at line 99 of file job.h.

◆ scoop_avail

size_t rs_job::scoop_avail

The amount of data available.

Definition at line 100 of file job.h.

◆ scan_buf

rs_byte_t* rs_job::scan_buf

The delta scan buffer, where scan_buf[scan_pos..scan_len] is the data yet to be scanned.

The delta scan buffer pointer.

Definition at line 104 of file job.h.

◆ scan_len

size_t rs_job::scan_len

The delta scan buffer length.

Definition at line 105 of file job.h.

◆ scan_pos

size_t rs_job::scan_pos

The delta scan position.

Definition at line 106 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 109 of file job.h.

◆ write_len

size_t rs_job::write_len

Definition at line 110 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 114 of file job.h.

◆ basis_pos

rs_long_t rs_job::basis_pos

Copy from the basis position.

Definition at line 117 of file job.h.

◆ basis_len

rs_long_t rs_job::basis_len

Definition at line 117 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 120 of file job.h.

◆ copy_arg

void* rs_job::copy_arg

Definition at line 121 of file job.h.


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