From: Jonathan Dieter Date: Mon, 30 Jul 2018 22:06:27 +0000 (+0100) Subject: Bump to 0.9.2 X-Git-Tag: archive/raspbian/1.1.9+ds1-1+rpi1~1^2~151 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=03204d42ca389c0d6e9524e73aeabfcc2437c5e9;p=zchunk.git Bump to 0.9.2 Signed-off-by: Jonathan Dieter --- diff --git a/meson.build b/meson.build index 5b1ca94..916569a 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,5 @@ project('zck', 'c', - version : '0.9.1', + version : '0.9.2', meson_version : '>=0.47.0', default_options : ['c_std=gnu99']) diff --git a/test/abi/stable/libzck.so.0.9.1 b/test/abi/stable/libzck.so.0.9.1 deleted file mode 100755 index 3de868f..0000000 Binary files a/test/abi/stable/libzck.so.0.9.1 and /dev/null differ diff --git a/test/abi/stable/libzck.so.0.9.2 b/test/abi/stable/libzck.so.0.9.2 new file mode 100755 index 0000000..d151cb3 Binary files /dev/null and b/test/abi/stable/libzck.so.0.9.2 differ diff --git a/test/abi/stable/zck.h b/test/abi/stable/zck.h index 9384f7a..435ae30 100644 --- a/test/abi/stable/zck.h +++ b/test/abi/stable/zck.h @@ -1,10 +1,7 @@ #ifndef ZCK_H #define ZCK_H -#define ZCK_VERSION "0.9.1" - -#define True 1 -#define False 0 +#define ZCK_VERSION "0.9.2" typedef enum zck_hash { ZCK_HASH_SHA1, @@ -25,8 +22,10 @@ typedef enum zck_ioption { ZCK_HASH_CHUNK_TYPE, /* Set chunk hash type using zck_hash */ ZCK_VAL_HEADER_HASH_TYPE, /* Set what the header hash type *should* be */ ZCK_VAL_HEADER_LENGTH, /* Set what the header length *should* be */ - ZCK_MANUAL_CHUNK, /* Disable auto-chunking */ ZCK_COMP_TYPE = 100, /* Set compression type using zck_comp */ + ZCK_MANUAL_CHUNK, /* Disable auto-chunking */ + ZCK_CHUNK_MIN, /* Minimum chunk size when manual chunking */ + ZCK_CHUNK_MAX, /* Maximum chunk size when manual chunking */ ZCK_ZSTD_COMP_LEVEL = 1000 /* Set zstd compression level */ } zck_ioption; @@ -60,7 +59,7 @@ typedef size_t (*zck_wcb)(void *ptr, size_t l, size_t c, void *dl_v); zckCtx *zck_create() __attribute__ ((warn_unused_result)); /* Initialize zchunk for reading */ -int zck_init_read (zckCtx *zck, int src_fd) +bool zck_init_read (zckCtx *zck, int src_fd) __attribute__ ((warn_unused_result)); /* Decompress dst_size bytes from zchunk file to dst, while verifying hashes */ ssize_t zck_read(zckCtx *zck, char *dst, size_t dst_size) @@ -71,7 +70,7 @@ ssize_t zck_read(zckCtx *zck, char *dst, size_t dst_size) * Writing a zchunk file *******************************************************************/ /* Initialize zchunk for writing */ -int zck_init_write (zckCtx *zck, int dst_fd) +bool zck_init_write (zckCtx *zck, int dst_fd) __attribute__ ((warn_unused_result)); /* Compress data src of size src_size, and write to zchunk file * Due to the nature of zchunk files and how they are built, no data will @@ -88,7 +87,7 @@ ssize_t zck_end_chunk(zckCtx *zck) *******************************************************************/ /* Close a zchunk file so it may no longer be read from or written to. The * context still contains information about the file */ -int zck_close(zckCtx *zck) +bool zck_close(zckCtx *zck) __attribute__ ((warn_unused_result)); /* Free a zchunk context. You must pass the address of the context, and the * context will automatically be set to NULL after it is freed */ @@ -99,11 +98,11 @@ void zck_free(zckCtx **zck); * Options *******************************************************************/ /* Set string option */ -int zck_set_soption(zckCtx *zck, zck_soption option, const char *value, - size_t length) +bool zck_set_soption(zckCtx *zck, zck_soption option, const char *value, + size_t length) __attribute__ ((warn_unused_result)); /* Set integer option */ -int zck_set_ioption(zckCtx *zck, zck_ioption option, ssize_t value) +bool zck_set_ioption(zckCtx *zck, zck_ioption option, ssize_t value) __attribute__ ((warn_unused_result)); @@ -119,11 +118,12 @@ void zck_set_log_fd(int fd); int zck_is_error(zckCtx *zck) __attribute__ ((warn_unused_result)); /* Get error message - * Returns char* containing error message, or NULL if there isn't one */ + * Returns char* containing error message. char* will contain empty string if + * there is no error message */ const char *zck_get_error(zckCtx *zck); /* Clear error message * Returns 1 if message was cleared, 0 if error is fatal and can't be cleared */ -int zck_clear_error(zckCtx *zck); +bool zck_clear_error(zckCtx *zck); /******************************************************************* * Miscellaneous utilities @@ -136,7 +136,8 @@ int zck_validate_checksums(zckCtx *zck) * Returns 0 for error, -1 for invalid checksum and 1 for valid checksum */ int zck_validate_data_checksum(zckCtx *zck) __attribute__ ((warn_unused_result)); -/* Go through file and mark valid chunks as valid */ +/* Go through file and mark valid chunks as valid + * Returns 0 for error, -1 for invalid checksum and 1 for valid checksum */ int zck_find_valid_chunks(zckCtx *zck) __attribute__ ((warn_unused_result)); @@ -153,7 +154,7 @@ char *zck_get_range_char(zckCtx *zck, zckRange *range) int zck_get_fd(zckCtx *zck) __attribute__ ((warn_unused_result)); /* Set file descriptor attached to zchunk context */ -int zck_set_fd(zckCtx *zck, int fd) +bool zck_set_fd(zckCtx *zck, int fd) __attribute__ ((warn_unused_result)); /* Return number of missing chunks (-1 if error) */ @@ -209,16 +210,16 @@ const char *zck_comp_name_from_type(int comp_type) * Advanced zchunk reading functions *******************************************************************/ /* Initialize zchunk for reading using advanced options */ -int zck_init_adv_read (zckCtx *zck, int src_fd) +bool zck_init_adv_read (zckCtx *zck, int src_fd) __attribute__ ((warn_unused_result)); /* Read zchunk lead */ -int zck_read_lead(zckCtx *zck) +bool zck_read_lead(zckCtx *zck) __attribute__ ((warn_unused_result)); /* Read zchunk header */ -int zck_read_header(zckCtx *zck) +bool zck_read_header(zckCtx *zck) __attribute__ ((warn_unused_result)); /* Validate lead */ -int zck_validate_lead(zckCtx *zck) +bool zck_validate_lead(zckCtx *zck) __attribute__ ((warn_unused_result)); /******************************************************************* @@ -249,7 +250,7 @@ int zck_get_chunk_valid(zckChunk *idx) char *zck_get_chunk_digest(zckChunk *item) __attribute__ ((warn_unused_result)); /* Find out if two chunk digests are the same */ -int zck_compare_chunk_digest(zckChunk *a, zckChunk *b) +bool zck_compare_chunk_digest(zckChunk *a, zckChunk *b) __attribute__ ((warn_unused_result)); /******************************************************************* @@ -281,7 +282,7 @@ const char *zck_hash_name_from_type(int hash_type) * Ranges *******************************************************************/ /* Get any matching chunks from src and put them in the right place in tgt */ -int zck_copy_chunks(zckCtx *src, zckCtx *tgt) +bool zck_copy_chunks(zckCtx *src, zckCtx *tgt) __attribute__ ((warn_unused_result)); /* Free zckRange */ void zck_range_free(zckRange **info); @@ -310,12 +311,12 @@ void zck_dl_free(zckDL **dl); zckCtx *zck_dl_get_zck(zckDL *dl) __attribute__ ((warn_unused_result)); /* Set zchunk context in download context */ -int zck_dl_set_zck(zckDL *dl, zckCtx *zck) +bool zck_dl_set_zck(zckDL *dl, zckCtx *zck) __attribute__ ((warn_unused_result)); /* Clear regex used for extracting download ranges from multipart download */ void zck_dl_clear_regex(zckDL *dl); /* Download and process the header from url */ -int zck_dl_get_header(zckCtx *zck, zckDL *dl, char *url) +bool zck_dl_get_header(zckCtx *zck, zckDL *dl, char *url) __attribute__ ((warn_unused_result)); /* Get number of bytes downloaded using download context */ ssize_t zck_dl_get_bytes_downloaded(zckDL *dl) @@ -324,23 +325,23 @@ ssize_t zck_dl_get_bytes_downloaded(zckDL *dl) ssize_t zck_dl_get_bytes_uploaded(zckDL *dl) __attribute__ ((warn_unused_result)); /* Set download ranges for zchunk download context */ -int zck_dl_set_range(zckDL *dl, zckRange *range) +bool zck_dl_set_range(zckDL *dl, zckRange *range) __attribute__ ((warn_unused_result)); /* Get download ranges from zchunk download context */ zckRange *zck_dl_get_range(zckDL *dl) __attribute__ ((warn_unused_result)); /* Set header callback function */ -int zck_dl_set_header_cb(zckDL *dl, zck_wcb func) +bool zck_dl_set_header_cb(zckDL *dl, zck_wcb func) __attribute__ ((warn_unused_result)); /* Set header userdata */ -int zck_dl_set_header_data(zckDL *dl, void *data) +bool zck_dl_set_header_data(zckDL *dl, void *data) __attribute__ ((warn_unused_result)); /* Set write callback function */ -int zck_dl_set_write_cb(zckDL *dl, zck_wcb func) +bool zck_dl_set_write_cb(zckDL *dl, zck_wcb func) __attribute__ ((warn_unused_result)); /* Set write userdata */ -int zck_dl_set_write_data(zckDL *dl, void *data) +bool zck_dl_set_write_data(zckDL *dl, void *data) __attribute__ ((warn_unused_result)); /* Write callback. You *must* pass this and your initialized zchunk download diff --git a/test/compat_reports/zchunk/0.9.1_to_0.9.1/compat_report.html b/test/compat_reports/zchunk/0.9.1_to_0.9.1/compat_report.html deleted file mode 100644 index 256d526..0000000 --- a/test/compat_reports/zchunk/0.9.1_to_0.9.1/compat_report.html +++ /dev/null @@ -1,529 +0,0 @@ - - - - - - - - - -zchunk: 0.9.1 to 0.9.1 compatibility report - - - -

API compatibility report for the libzck.so object between 0.9.1 and 0.9.1 versions on x86_64

- -
-
-

Test Info


- - - - - - - -
Module Namezchunk
Version #10.9.1
Version #20.9.1
Archx86_64
GCC Version8.1.1
SubjectBinary Compatibility
-

Test Results


- - - - - - -
Total Header Files1
Total Objects1
Total Symbols / Types71 / 12
Compatibility99.3%
-

Problem Summary


- - - - - - - - - -
SeverityCount
Added Symbols-0
Removed SymbolsHigh0
Problems with
Data Types
High0
Medium1
Low0
Problems with
Symbols
High0
Medium0
Low0
Problems with
Constants
Low0
- - -

Problems with Data Types, Medium Severity  1 


-zck.h
- -[+] enum zck_ioption  1  -
- - -
-to the top
-

Header Files  1 


-
-zck.h
-
-
to the top
-

Objects  1 


-
-libzck.so.0.9.1
-
-
to the top
-


-

Test Info


- - - - - - -
Module Namezchunk
Version #10.9.1
Version #20.9.1
Archx86_64
SubjectSource Compatibility
-

Test Results


- - - - - - -
Total Header Files1
Total Objects1
Total Symbols / Types71 / 12
Compatibility100%
-

Problem Summary


- - - - - - - - - - -
SeverityCount
Added Symbols-0
Removed SymbolsHigh0
Problems with
Data Types
High0
Medium0
Low0
Problems with
Symbols
High0
Medium0
Low0
Problems with
Constants
Low0
Other Changes
in Data Types
-1
- - -

Other Changes in Data Types  1 


-zck.h
- -[+] enum zck_ioption  1  -
- - -
-to the top
-

Header Files  1 


-
-zck.h
-
-
to the top
-

Objects  1 


-
-libzck.so.0.9.1
-
-
to the top
-



- -
- - diff --git a/test/compat_reports/zchunk/0.9.1_to_0.9.2/compat_report.html b/test/compat_reports/zchunk/0.9.1_to_0.9.2/compat_report.html new file mode 100644 index 0000000..a186582 --- /dev/null +++ b/test/compat_reports/zchunk/0.9.1_to_0.9.2/compat_report.html @@ -0,0 +1,1304 @@ + + + + + + + + + +zchunk: 0.9.1 to 0.9.2 compatibility report + + + +

API compatibility report for the libzck.so object between 0.9.1 and 0.9.2 versions on x86_64

+ +
+
+

Test Info


+ + + + + + + +
Module Namezchunk
Version #10.9.1
Version #20.9.2
Archx86_64
GCC Version8.1.1
SubjectBinary Compatibility
+

Test Results


+ + + + + + +
Total Header Files1
Total Objects1
Total Symbols / Types71 / 12
Compatibility86.6%
+

Problem Summary


+ + + + + + + + + + +
SeverityCount
Added Symbols-0
Removed SymbolsHigh0
Problems with
Data Types
High0
Medium1
Low0
Problems with
Symbols
High0
Medium19
Low0
Problems with
Constants
Low0
Other Changes
in Data Types
-2
+ + +

Problems with Data Types, Medium Severity  1 


+zck.h
+ +[+] enum zck_ioption  1  +
+ + +
+to the top
+ +

Problems with Symbols, Medium Severity  19 


+zck.h, libzck.so.0.9.1
+ +[+] zck_clear_error ( zckCtx* zck )  1  +
+ + +[+] zck_close ( zckCtx* zck )  1  +
+ + +[+] zck_compare_chunk_digest ( zckChunk* a, zckChunk* b )  1  +
+ + +[+] zck_copy_chunks ( zckCtx* src, zckCtx* tgt )  1  +
+ + +[+] zck_dl_set_header_cb ( zckDL* dl, zck_wcb func )  1  +
+ + +[+] zck_dl_set_header_data ( zckDL* dl, void* data )  1  +
+ + +[+] zck_dl_set_range ( zckDL* dl, zckRange* range )  1  +
+ + +[+] zck_dl_set_write_cb ( zckDL* dl, zck_wcb func )  1  +
+ + +[+] zck_dl_set_write_data ( zckDL* dl, void* data )  1  +
+ + +[+] zck_dl_set_zck ( zckDL* dl, zckCtx* zck )  1  +
+ + +[+] zck_init_adv_read ( zckCtx* zck, int src_fd )  1  +
+ + +[+] zck_init_read ( zckCtx* zck, int src_fd )  1  +
+ + +[+] zck_init_write ( zckCtx* zck, int dst_fd )  1  +
+ + +[+] zck_read_header ( zckCtx* zck )  1  +
+ + +[+] zck_read_lead ( zckCtx* zck )  1  +
+ + +[+] zck_set_fd ( zckCtx* zck, int fd )  1  +
+ + +[+] zck_set_ioption ( zckCtx* zck, zck_ioption option, ssize_t value )  1  +
+ + +[+] zck_set_soption ( zckCtx* zck, zck_soption option, char const* value, size_t length )  1  +
+ + +[+] zck_validate_lead ( zckCtx* zck )  1  +
+ +
+to the top
+ +

Other Changes in Data Types  2 


+zck.h
+ +[+] enum zck_ioption  2  +
+ + +
+to the top
+

Header Files  1 


+
+zck.h
+
+
to the top
+

Objects  1 


+
+libzck.so.0.9.1
+
+
to the top
+


+

Test Info


+ + + + + + +
Module Namezchunk
Version #10.9.1
Version #20.9.2
Archx86_64
SubjectSource Compatibility
+

Test Results


+ + + + + + +
Total Header Files1
Total Objects1
Total Symbols / Types71 / 12
Compatibility100%
+

Problem Summary


+ + + + + + + + + + +
SeverityCount
Added Symbols-0
Removed SymbolsHigh0
Problems with
Data Types
High0
Medium0
Low0
Problems with
Symbols
High0
Medium0
Low19
Problems with
Constants
Low0
Other Changes
in Data Types
-3
+ + +

Problems with Symbols, Low Severity  19 


+zck.h
+ +[+] zck_clear_error ( zckCtx* zck )  1  +
+ + +[+] zck_close ( zckCtx* zck )  1  +
+ + +[+] zck_compare_chunk_digest ( zckChunk* a, zckChunk* b )  1  +
+ + +[+] zck_copy_chunks ( zckCtx* src, zckCtx* tgt )  1  +
+ + +[+] zck_dl_set_header_cb ( zckDL* dl, zck_wcb func )  1  +
+ + +[+] zck_dl_set_header_data ( zckDL* dl, void* data )  1  +
+ + +[+] zck_dl_set_range ( zckDL* dl, zckRange* range )  1  +
+ + +[+] zck_dl_set_write_cb ( zckDL* dl, zck_wcb func )  1  +
+ + +[+] zck_dl_set_write_data ( zckDL* dl, void* data )  1  +
+ + +[+] zck_dl_set_zck ( zckDL* dl, zckCtx* zck )  1  +
+ + +[+] zck_init_adv_read ( zckCtx* zck, int src_fd )  1  +
+ + +[+] zck_init_read ( zckCtx* zck, int src_fd )  1  +
+ + +[+] zck_init_write ( zckCtx* zck, int dst_fd )  1  +
+ + +[+] zck_read_header ( zckCtx* zck )  1  +
+ + +[+] zck_read_lead ( zckCtx* zck )  1  +
+ + +[+] zck_set_fd ( zckCtx* zck, int fd )  1  +
+ + +[+] zck_set_ioption ( zckCtx* zck, zck_ioption option, ssize_t value )  1  +
+ + +[+] zck_set_soption ( zckCtx* zck, zck_soption option, char const* value, size_t length )  1  +
+ + +[+] zck_validate_lead ( zckCtx* zck )  1  +
+ +
+to the top
+ +

Other Changes in Data Types  3 


+zck.h
+ +[+] enum zck_ioption  3  +
+ + +
+to the top
+

Header Files  1 


+
+zck.h
+
+
to the top
+

Objects  1 


+
+libzck.so.0.9.1
+
+
to the top
+



+ +
+ +