From: Jonathan Dieter Date: Wed, 25 Jul 2018 15:40:24 +0000 (+0100) Subject: Bump to 0.9.0 X-Git-Tag: archive/raspbian/1.1.9+ds1-1+rpi1~1^2~173 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b26beebb280f88ab6b92957f8ef55ec0ce72272f;p=zchunk.git Bump to 0.9.0 Signed-off-by: Jonathan Dieter --- diff --git a/meson.build b/meson.build index b563084..d4f41d3 100644 --- a/meson.build +++ b/meson.build @@ -1,4 +1,4 @@ -project('zck', 'c', version: '0.7.6') +project('zck', 'c', version: '0.9.0') so_version = '1' diff --git a/test/abi/stable/libzck.so.0.7.6 b/test/abi/stable/libzck.so.0.7.6 deleted file mode 100755 index 2fc2506..0000000 Binary files a/test/abi/stable/libzck.so.0.7.6 and /dev/null differ diff --git a/test/abi/stable/libzck.so.0.9.0 b/test/abi/stable/libzck.so.0.9.0 new file mode 100755 index 0000000..29cff33 Binary files /dev/null and b/test/abi/stable/libzck.so.0.9.0 differ diff --git a/test/abi/stable/zck.h b/test/abi/stable/zck.h index 0b24f16..41fe2d8 100644 --- a/test/abi/stable/zck.h +++ b/test/abi/stable/zck.h @@ -1,7 +1,7 @@ #ifndef ZCK_H #define ZCK_H -#define ZCK_VERSION "0.7.6" +#define ZCK_VERSION "0.9.0" #define True 1 #define False 0 @@ -56,8 +56,11 @@ typedef size_t (*zck_wcb)(void *ptr, size_t l, size_t c, void *dl_v); /******************************************************************* * Reading a zchunk file *******************************************************************/ +/* Initialize zchunk context */ +zckCtx *zck_create() + __attribute__ ((warn_unused_result)); /* Initialize zchunk for reading */ -zckCtx *zck_init_read (int src_fd) +int 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) @@ -68,7 +71,7 @@ ssize_t zck_read(zckCtx *zck, char *dst, size_t dst_size) * Writing a zchunk file *******************************************************************/ /* Initialize zchunk for writing */ -zckCtx *zck_init_write (int dst_fd) +int 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 @@ -105,15 +108,32 @@ int zck_set_ioption(zckCtx *zck, zck_ioption option, ssize_t value) /******************************************************************* - * Miscellaneous utilities + * Error handling *******************************************************************/ /* Set logging level */ void zck_set_log_level(zck_log_type ll); +/* Set logging fd */ +void zck_set_log_fd(int fd); +/* Check whether zck is in error state + * Returns 0 if not, 1 if recoverable error, 2 if fatal error */ +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 */ +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); + +/******************************************************************* + * Miscellaneous utilities + *******************************************************************/ /* Validate the chunk and data checksums for the current file. - * Returns -1 for error, 0 for invalid checksum and 1 for valid checksum */ + * Returns 0 for error, -1 for invalid checksum and 1 for valid checksum */ int zck_validate_checksums(zckCtx *zck) __attribute__ ((warn_unused_result)); -/* Validate just the data checksum for the current file */ +/* Validate just the data checksum for the current file + * 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 */ @@ -127,13 +147,14 @@ int zck_find_valid_chunks(zckCtx *zck) zckRange *zck_get_missing_range(zckCtx *zck, int max_ranges) __attribute__ ((warn_unused_result)); /* Get a string representation of a zckRange */ -char *zck_get_range_char(zckRange *range) +char *zck_get_range_char(zckCtx *zck, zckRange *range) __attribute__ ((warn_unused_result)); /* Get file descriptor attached to zchunk context */ int zck_get_fd(zckCtx *zck) __attribute__ ((warn_unused_result)); /* Set file descriptor attached to zchunk context */ -void zck_set_fd(zckCtx *zck, int fd); +int zck_set_fd(zckCtx *zck, int fd) + __attribute__ ((warn_unused_result)); /* Return number of missing chunks (-1 if error) */ int zck_missing_chunks(zckCtx *zck) @@ -154,9 +175,6 @@ void zck_reset_failed_chunks(zckCtx *zck); /******************************************************************* * Advanced miscellaneous zchunk functions *******************************************************************/ -/* Initialize zchunk context */ -zckCtx *zck_create() - __attribute__ ((warn_unused_result)); /* Get lead length */ ssize_t zck_get_lead_length(zckCtx *zck) __attribute__ ((warn_unused_result)); @@ -191,7 +209,7 @@ const char *zck_comp_name_from_type(int comp_type) * Advanced zchunk reading functions *******************************************************************/ /* Initialize zchunk for reading using advanced options */ -zckCtx *zck_init_adv_read (int src_fd) +int zck_init_adv_read (zckCtx *zck, int src_fd) __attribute__ ((warn_unused_result)); /* Read zchunk lead */ int zck_read_lead(zckCtx *zck) @@ -199,7 +217,7 @@ int zck_read_lead(zckCtx *zck) /* Read zchunk header */ int zck_read_header(zckCtx *zck) __attribute__ ((warn_unused_result)); - +/* Validate lead */ int zck_validate_lead(zckCtx *zck) __attribute__ ((warn_unused_result)); @@ -300,10 +318,10 @@ void zck_dl_clear_regex(zckDL *dl); int zck_dl_get_header(zckCtx *zck, zckDL *dl, char *url) __attribute__ ((warn_unused_result)); /* Get number of bytes downloaded using download context */ -size_t zck_dl_get_bytes_downloaded(zckDL *dl) +ssize_t zck_dl_get_bytes_downloaded(zckDL *dl) __attribute__ ((warn_unused_result)); /* Get number of bytes uploaded using download context */ -size_t zck_dl_get_bytes_uploaded(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) diff --git a/test/compat_reports/zchunk/0.7.5_to_0.7.6/compat_report.html b/test/compat_reports/zchunk/0.7.5_to_0.7.6/compat_report.html deleted file mode 100644 index c895f8c..0000000 --- a/test/compat_reports/zchunk/0.7.5_to_0.7.6/compat_report.html +++ /dev/null @@ -1,530 +0,0 @@ - - - - - - - - - -zchunk: 0.7.5 to 0.7.6 compatibility report - - - -

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

- -
-
-

Test Info


- - - - - - - -
Module Namezchunk
Version #10.7.5
Version #20.7.6
Archx86_64
GCC Version8.1.1
SubjectBinary Compatibility
-

Test Results


- - - - - - -
Total Header Files1
Total Objects1
Total Symbols / Types67 / 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.7.5
-
-
to the top
-


-

Test Info


- - - - - - -
Module Namezchunk
Version #10.7.5
Version #20.7.6
Archx86_64
SubjectSource Compatibility
-

Test Results


- - - - - - -
Total Header Files1
Total Objects1
Total Symbols / Types67 / 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.7.5
-
-
to the top
-



- -
- - diff --git a/test/compat_reports/zchunk/0.7.6_to_0.9.0/compat_report.html b/test/compat_reports/zchunk/0.7.6_to_0.9.0/compat_report.html new file mode 100644 index 0000000..1358e7b --- /dev/null +++ b/test/compat_reports/zchunk/0.7.6_to_0.9.0/compat_report.html @@ -0,0 +1,1010 @@ + + + + + + + + + +zchunk: 0.7.6 to 0.9.0 compatibility report + + + +

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

+ +
+
+

Test Info


+ + + + + + + +
Module Namezchunk
Version #10.7.6
Version #20.9.0
Archx86_64
GCC Version8.1.1
SubjectBinary Compatibility
+

Test Results


+ + + + + + +
Total Header Files1
Total Objects1
Total Symbols / Types67 / 12
Compatibility96.3%
+

Problem Summary


+ + + + + + + + + +
SeverityCount
Added Symbols-4
Removed SymbolsHigh0
Problems with
Data Types
High0
Medium0
Low0
Problems with
Symbols
High4
Medium6
Low3
Problems with
Constants
Low0
+ +

Added Symbols  4 


+zck.h, libzck.so.0.9.0
+zck_clear_error ( zckCtx* zck )
+zck_get_error ( zckCtx* zck )
+zck_is_error ( zckCtx* zck )
+zck_set_log_fd ( int fd )
+
+to the top
+ +

Problems with Symbols, High Severity  4 


+zck.h, libzck.so.0.7.6
+ +[+] zck_get_range_char ( zckRange* range )  1  +
+ + +[+] zck_init_adv_read ( int src_fd )  1  +
+ + +[+] zck_init_read ( int src_fd )  1  +
+ + +[+] zck_init_write ( int dst_fd )  1  +
+ +
+to the top
+ +

Problems with Symbols, Medium Severity  6 


+zck.h, libzck.so.0.7.6
+ +[+] zck_init_adv_read ( int src_fd )  2  +
+ + +[+] zck_init_read ( int src_fd )  2  +
+ + +[+] zck_init_write ( int dst_fd )  2  +
+ +
+to the top
+ +

Problems with Symbols, Low Severity  3 


+zck.h, libzck.so.0.7.6
+ +[+] zck_dl_get_bytes_downloaded ( zckDL* dl )  1  +
+ + +[+] zck_dl_get_bytes_uploaded ( zckDL* dl )  1  +
+ + +[+] zck_set_fd ( zckCtx* zck, int fd )  1  +
+ +
+to the top
+

Header Files  1 


+
+zck.h
+
+
to the top
+

Objects  1 


+
+libzck.so.0.7.6
+
+
to the top
+


+

Test Info


+ + + + + + +
Module Namezchunk
Version #10.7.6
Version #20.9.0
Archx86_64
SubjectSource Compatibility
+

Test Results


+ + + + + + +
Total Header Files1
Total Objects1
Total Symbols / Types67 / 12
Compatibility96.3%
+

Problem Summary


+ + + + + + + + + + +
SeverityCount
Added Symbols-4
Removed SymbolsHigh0
Problems with
Data Types
High0
Medium0
Low0
Problems with
Symbols
High4
Medium3
Low5
Problems with
Constants
Low0
Other Changes
in Symbols
-1
+ +

Added Symbols  4 


+zck.h
+zck_clear_error ( zckCtx* zck )
+zck_get_error ( zckCtx* zck )
+zck_is_error ( zckCtx* zck )
+zck_set_log_fd ( int fd )
+
+to the top
+ +

Problems with Symbols, High Severity  4 


+zck.h
+ +[+] zck_get_range_char ( zckRange* range )  1  +
+ + +[+] zck_init_adv_read ( int src_fd )  1  +
+ + +[+] zck_init_read ( int src_fd )  1  +
+ + +[+] zck_init_write ( int dst_fd )  1  +
+ +
+to the top
+ +

Problems with Symbols, Medium Severity  3 


+zck.h
+ +[+] zck_init_adv_read ( int src_fd )  1  +
+ + +[+] zck_init_read ( int src_fd )  1  +
+ + +[+] zck_init_write ( int dst_fd )  1  +
+ +
+to the top
+ +

Problems with Symbols, Low Severity  5 


+zck.h
+ +[+] zck_dl_get_bytes_downloaded ( zckDL* dl )  1  +
+ + +[+] zck_dl_get_bytes_uploaded ( zckDL* dl )  1  +
+ + +[+] zck_init_adv_read ( int src_fd )  1  +
+ + +[+] zck_init_read ( int src_fd )  1  +
+ + +[+] zck_init_write ( int dst_fd )  1  +
+ +
+to the top
+ +

Other Changes in Symbols  1 


+zck.h
+ +[+] zck_set_fd ( zckCtx* zck, int fd )  1  +
+ +
+to the top
+

Header Files  1 


+
+zck.h
+
+
to the top
+

Objects  1 


+
+libzck.so.0.7.6
+
+
to the top
+



+ +
+ +