Wrap more of the librsync API

This commit is contained in:
Kovid Goyal
2021-09-18 12:49:38 +05:30
parent 901a075a38
commit cf517effb3
2 changed files with 77 additions and 2 deletions

View File

@@ -7,9 +7,25 @@ class JobCapsule:
pass
class SignatureCapsule:
pass
class RsyncError(Exception):
pass
def begin_create_signature(file_size: int = -1, strong_len: int = 0) -> JobCapsule:
pass
def begin_load_signature() -> Tuple[JobCapsule, SignatureCapsule]:
pass
def make_hash_table(sig: SignatureCapsule) -> None:
pass
def iter_job(job_capsule: JobCapsule, input_data: bytes, eof: Optional[bool] = None) -> Tuple[bytes, bool]:
pass