Rizin
unix-like reverse engineering framework and cli tools
zip_source_begin_write_cloning.c File Reference
#include "zipint.h"

Go to the source code of this file.

Functions

ZIP_EXTERN int zip_source_begin_write_cloning (zip_source_t *src, zip_uint64_t offset)
 

Function Documentation

◆ zip_source_begin_write_cloning()

ZIP_EXTERN int zip_source_begin_write_cloning ( zip_source_t src,
zip_uint64_t  offset 
)

Definition at line 39 of file zip_source_begin_write_cloning.c.

39  {
41  zip_error_set(&src->error, ZIP_ER_INVAL, 0);
42  return -1;
43  }
44 
46  return -1;
47  }
48 
49  src->write_state = ZIP_SOURCE_WRITE_OPEN;
50 
51  return 0;
52 }
lzma_index * src
Definition: index.h:567
#define NULL
Definition: cris-opc.c:27
voidpf uLong offset
Definition: ioapi.h:144
ZIP_EXTERN void zip_error_set(zip_error_t *_Nullable, int, int)
Definition: zip_error.c:126
@ ZIP_SOURCE_BEGIN_WRITE_CLONING
Definition: zip.h:237
#define ZIP_ER_INVAL
Definition: zip.h:123
zip_int64_t _zip_source_call(zip_source_t *src, void *data, zip_uint64_t length, zip_source_cmd_t command)
@ ZIP_SOURCE_WRITE_OPEN
Definition: zipint.h:377
#define ZIP_SOURCE_IS_OPEN_WRITING(src)
Definition: zipint.h:403

References _zip_source_call(), NULL, src, ZIP_ER_INVAL, zip_error_set(), ZIP_SOURCE_BEGIN_WRITE_CLONING, ZIP_SOURCE_IS_OPEN_WRITING, and ZIP_SOURCE_WRITE_OPEN.

Referenced by zip_close().