#ifndef ZCK_H
#define ZCK_H
-#define ZCK_VERSION "1.1.16"
+#define ZCK_VERSION "1.2.0"
#include <stdlib.h>
#include <stdbool.h>
+#include <stdarg.h>
#include <sys/types.h>
typedef enum zck_hash {
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_UNCOMP_HEADER, /* Header should contain uncompressed size, too */
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 */
typedef size_t (*zck_wcb)(void *ptr, size_t l, size_t c, void *dl_v);
+#ifdef _WIN32
+ #define ZCK_WARN_UNUSED
+ typedef ptrdiff_t ssize_t;
+ #ifdef ZCHUNK_STATIC_LIB
+ #define ZCK_PUBLIC_API
+ #else
+ #ifdef ZCHUNK_EXPORTS
+ #define ZCK_PUBLIC_API __declspec(dllexport)
+ #else
+ #define ZCK_PUBLIC_API __declspec(dllimport)
+ #endif
+ #endif
+#else
+ #define ZCK_WARN_UNUSED __attribute__ ((warn_unused_result))
+ #define ZCK_PUBLIC_API __attribute__((visibility("default")))
+#endif
+
/*******************************************************************
* Reading a zchunk file
*******************************************************************/
/* Initialize zchunk context */
-zckCtx *zck_create()
- __attribute__ ((warn_unused_result));
+zckCtx ZCK_PUBLIC_API *zck_create(void)
+ ZCK_WARN_UNUSED;
/* Initialize zchunk for reading */
-bool zck_init_read (zckCtx *zck, int src_fd)
- __attribute__ ((warn_unused_result));
+bool ZCK_PUBLIC_API zck_init_read (zckCtx *zck, int src_fd)
+ ZCK_WARN_UNUSED;
/* Decompress dst_size bytes from zchunk file to dst, while verifying hashes */
-ssize_t zck_read(zckCtx *zck, char *dst, size_t dst_size)
- __attribute__ ((warn_unused_result));
+ssize_t ZCK_PUBLIC_API zck_read(zckCtx *zck, char *dst, size_t dst_size)
+ ZCK_WARN_UNUSED;
+/* Get zchunk flags */
+ssize_t ZCK_PUBLIC_API zck_get_flags (zckCtx *zck)
+ ZCK_WARN_UNUSED;
/*******************************************************************
* Writing a zchunk file
*******************************************************************/
/* Initialize zchunk for writing */
-bool zck_init_write (zckCtx *zck, int dst_fd)
- __attribute__ ((warn_unused_result));
+bool ZCK_PUBLIC_API zck_init_write (zckCtx *zck, int dst_fd)
+ ZCK_WARN_UNUSED;
/* 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
* actually appear in the zchunk file until zck_close() is called */
-ssize_t zck_write(zckCtx *zck, const char *src, const size_t src_size)
- __attribute__ ((warn_unused_result));
+ssize_t ZCK_PUBLIC_API zck_write(zckCtx *zck, const char *src, const size_t src_size)
+ ZCK_WARN_UNUSED;
/* Create a chunk boundary */
-ssize_t zck_end_chunk(zckCtx *zck)
- __attribute__ ((warn_unused_result));
-
+ssize_t ZCK_PUBLIC_API zck_end_chunk(zckCtx *zck)
+ ZCK_WARN_UNUSED;
+/* Create the database for uthash if not present (done automatically by read */
+bool ZCK_PUBLIC_API zck_generate_hashdb(zckCtx *zck);
/*******************************************************************
* Common functions for finishing a zchunk file
*******************************************************************/
/* Close a zchunk file so it may no longer be read from or written to. The
* context still contains information about the file */
-bool zck_close(zckCtx *zck)
- __attribute__ ((warn_unused_result));
+bool ZCK_PUBLIC_API zck_close(zckCtx *zck)
+ ZCK_WARN_UNUSED;
/* 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 */
-void zck_free(zckCtx **zck);
+void ZCK_PUBLIC_API zck_free(zckCtx **zck);
/*******************************************************************
* Options
*******************************************************************/
/* Set string option */
-bool zck_set_soption(zckCtx *zck, zck_soption option, const char *value,
+bool ZCK_PUBLIC_API zck_set_soption(zckCtx *zck, zck_soption option, const char *value,
size_t length)
- __attribute__ ((warn_unused_result));
+ ZCK_WARN_UNUSED;
/* Set integer option */
-bool zck_set_ioption(zckCtx *zck, zck_ioption option, ssize_t value)
- __attribute__ ((warn_unused_result));
+bool ZCK_PUBLIC_API zck_set_ioption(zckCtx *zck, zck_ioption option, ssize_t value)
+ ZCK_WARN_UNUSED;
/*******************************************************************
* Error handling
*******************************************************************/
/* Set logging level */
-void zck_set_log_level(zck_log_type ll);
+void ZCK_PUBLIC_API zck_set_log_level(zck_log_type ll);
/* Set logging fd */
-void zck_set_log_fd(int fd);
+void ZCK_PUBLIC_API 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));
+int ZCK_PUBLIC_API zck_is_error(zckCtx *zck)
+ ZCK_WARN_UNUSED;
/* Get error message
* Returns char* containing error message. char* will contain empty string if
* there is no error message */
-const char *zck_get_error(zckCtx *zck);
+const ZCK_PUBLIC_API 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 */
-bool zck_clear_error(zckCtx *zck);
+bool ZCK_PUBLIC_API zck_clear_error(zckCtx *zck);
+/* Set a callback for logs instead to write into a fd */
+typedef void (*logcallback)(const char *function, zck_log_type lt, const char *format, va_list args);
+void ZCK_PUBLIC_API zck_set_log_callback(logcallback function);
/*******************************************************************
* Miscellaneous utilities
*******************************************************************/
/* Validate the chunk and data checksums for the current file.
* Returns 0 for error, -1 for invalid checksum and 1 for valid checksum */
-int zck_validate_checksums(zckCtx *zck)
- __attribute__ ((warn_unused_result));
+int ZCK_PUBLIC_API zck_validate_checksums(zckCtx *zck)
+ ZCK_WARN_UNUSED;
/* 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));
+int ZCK_PUBLIC_API zck_validate_data_checksum(zckCtx *zck)
+ ZCK_WARN_UNUSED;
/* 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));
+int ZCK_PUBLIC_API zck_find_valid_chunks(zckCtx *zck)
+ ZCK_WARN_UNUSED;
/* Get a zckRange of ranges that need to still be downloaded.
* max_ranges is the maximum number of ranges supported in a single request
* by the server. If the server supports unlimited ranges, set this to -1
* Returns NULL if there's an error */
-zckRange *zck_get_missing_range(zckCtx *zck, int max_ranges)
- __attribute__ ((warn_unused_result));
+zckRange ZCK_PUBLIC_API *zck_get_missing_range(zckCtx *zck, int max_ranges)
+ ZCK_WARN_UNUSED;
/* Get a string representation of a zckRange */
-char *zck_get_range_char(zckCtx *zck, zckRange *range)
- __attribute__ ((warn_unused_result));
+char ZCK_PUBLIC_API *zck_get_range_char(zckCtx *zck, zckRange *range)
+ ZCK_WARN_UNUSED;
/* Get file descriptor attached to zchunk context */
-int zck_get_fd(zckCtx *zck)
- __attribute__ ((warn_unused_result));
+int ZCK_PUBLIC_API zck_get_fd(zckCtx *zck)
+ ZCK_WARN_UNUSED;
/* Set file descriptor attached to zchunk context */
-bool zck_set_fd(zckCtx *zck, int fd)
- __attribute__ ((warn_unused_result));
+bool ZCK_PUBLIC_API zck_set_fd(zckCtx *zck, int fd)
+ ZCK_WARN_UNUSED;
/* Return number of missing chunks (-1 if error) */
-int zck_missing_chunks(zckCtx *zck)
- __attribute__ ((warn_unused_result));
+int ZCK_PUBLIC_API zck_missing_chunks(zckCtx *zck)
+ ZCK_WARN_UNUSED;
/* Return number of failed chunks (-1 if error) */
-int zck_failed_chunks(zckCtx *zck)
- __attribute__ ((warn_unused_result));
+int ZCK_PUBLIC_API zck_failed_chunks(zckCtx *zck)
+ ZCK_WARN_UNUSED;
/* Reset failed chunks to become missing */
-void zck_reset_failed_chunks(zckCtx *zck);
-
+void ZCK_PUBLIC_API zck_reset_failed_chunks(zckCtx *zck);
+/* Find chunks from a source */
+bool ZCK_PUBLIC_API zck_find_matching_chunks(zckCtx *src, zckCtx *tgt);
/*******************************************************************
* The functions should be all you need to read and write a zchunk
* Advanced miscellaneous zchunk functions
*******************************************************************/
/* Get lead length */
-ssize_t zck_get_lead_length(zckCtx *zck)
- __attribute__ ((warn_unused_result));
+ssize_t ZCK_PUBLIC_API zck_get_lead_length(zckCtx *zck)
+ ZCK_WARN_UNUSED;
/* Get header length (lead + preface + index + sigs) */
-ssize_t zck_get_header_length(zckCtx *zck)
- __attribute__ ((warn_unused_result));
+ssize_t ZCK_PUBLIC_API zck_get_header_length(zckCtx *zck)
+ ZCK_WARN_UNUSED;
/* Get data length */
-ssize_t zck_get_data_length(zckCtx *zck)
- __attribute__ ((warn_unused_result));
+ssize_t ZCK_PUBLIC_API zck_get_data_length(zckCtx *zck)
+ ZCK_WARN_UNUSED;
/* Get file length */
-ssize_t zck_get_length(zckCtx *zck)
- __attribute__ ((warn_unused_result));
+ssize_t ZCK_PUBLIC_API zck_get_length(zckCtx *zck)
+ ZCK_WARN_UNUSED;
/* Get index digest */
-char *zck_get_header_digest(zckCtx *zck)
- __attribute__ ((warn_unused_result));
+char ZCK_PUBLIC_API *zck_get_header_digest(zckCtx *zck)
+ ZCK_WARN_UNUSED;
/* Get data digest */
-char *zck_get_data_digest(zckCtx *zck)
- __attribute__ ((warn_unused_result));
+char ZCK_PUBLIC_API *zck_get_data_digest(zckCtx *zck)
+ ZCK_WARN_UNUSED;
+/* Get whether this context is pointing to a detached header */
+bool ZCK_PUBLIC_API zck_is_detached_header(zckCtx *zck)
+ ZCK_WARN_UNUSED;
/*******************************************************************
* Advanced compression functions
*******************************************************************/
/* Get name of compression type */
-const char *zck_comp_name_from_type(int comp_type)
- __attribute__ ((warn_unused_result));
+const ZCK_PUBLIC_API char *zck_comp_name_from_type(int comp_type)
+ ZCK_WARN_UNUSED;
/* Initialize compression. Compression type and parameters *must* be done
* before this is called */
* Advanced zchunk reading functions
*******************************************************************/
/* Initialize zchunk for reading using advanced options */
-bool zck_init_adv_read (zckCtx *zck, int src_fd)
- __attribute__ ((warn_unused_result));
+bool ZCK_PUBLIC_API zck_init_adv_read (zckCtx *zck, int src_fd)
+ ZCK_WARN_UNUSED;
/* Read zchunk lead */
-bool zck_read_lead(zckCtx *zck)
- __attribute__ ((warn_unused_result));
+bool ZCK_PUBLIC_API zck_read_lead(zckCtx *zck)
+ ZCK_WARN_UNUSED;
/* Read zchunk header */
-bool zck_read_header(zckCtx *zck)
- __attribute__ ((warn_unused_result));
+bool ZCK_PUBLIC_API zck_read_header(zckCtx *zck)
+ ZCK_WARN_UNUSED;
/* Validate lead */
-bool zck_validate_lead(zckCtx *zck)
- __attribute__ ((warn_unused_result));
+bool ZCK_PUBLIC_API zck_validate_lead(zckCtx *zck)
+ ZCK_WARN_UNUSED;
/*******************************************************************
* Indexes
*******************************************************************/
/* Get chunk count */
-ssize_t zck_get_chunk_count(zckCtx *zck)
- __attribute__ ((warn_unused_result));
+ssize_t ZCK_PUBLIC_API zck_get_chunk_count(zckCtx *zck)
+ ZCK_WARN_UNUSED;
/* Get chunk by number */
-zckChunk *zck_get_chunk(zckCtx *zck, size_t number)
- __attribute__ ((warn_unused_result));
+zckChunk ZCK_PUBLIC_API *zck_get_chunk(zckCtx *zck, size_t number)
+ ZCK_WARN_UNUSED;
/* Get first chunk */
-zckChunk *zck_get_first_chunk(zckCtx *zck)
- __attribute__ ((warn_unused_result));
+zckChunk ZCK_PUBLIC_API *zck_get_first_chunk(zckCtx *zck)
+ ZCK_WARN_UNUSED;
/* Get next chunk */
-zckChunk *zck_get_next_chunk(zckChunk *idx)
- __attribute__ ((warn_unused_result));
+zckChunk ZCK_PUBLIC_API *zck_get_next_chunk(zckChunk *idx)
+ ZCK_WARN_UNUSED;
/* Get chunk starting location */
-ssize_t zck_get_chunk_start(zckChunk *idx)
- __attribute__ ((warn_unused_result));
+ssize_t ZCK_PUBLIC_API zck_get_chunk_start(zckChunk *idx)
+ ZCK_WARN_UNUSED;
/* Get uncompressed chunk size */
-ssize_t zck_get_chunk_size(zckChunk *idx)
- __attribute__ ((warn_unused_result));
+ssize_t ZCK_PUBLIC_API zck_get_chunk_size(zckChunk *idx)
+ ZCK_WARN_UNUSED;
/* Get compressed chunk size */
-ssize_t zck_get_chunk_comp_size(zckChunk *idx)
- __attribute__ ((warn_unused_result));
+ssize_t ZCK_PUBLIC_API zck_get_chunk_comp_size(zckChunk *idx)
+ ZCK_WARN_UNUSED;
/* Get chunk number */
-ssize_t zck_get_chunk_number(zckChunk *idx)
- __attribute__ ((warn_unused_result));
+ssize_t ZCK_PUBLIC_API zck_get_chunk_number(zckChunk *idx)
+ ZCK_WARN_UNUSED;
/* Get validity of current chunk - 1 = valid, 0 = missing, -1 = invalid */
-int zck_get_chunk_valid(zckChunk *idx)
- __attribute__ ((warn_unused_result));
+int ZCK_PUBLIC_API zck_get_chunk_valid(zckChunk *idx)
+ ZCK_WARN_UNUSED;
/* Get chunk digest */
-char *zck_get_chunk_digest(zckChunk *item)
- __attribute__ ((warn_unused_result));
+char ZCK_PUBLIC_API *zck_get_chunk_digest(zckChunk *item)
+ ZCK_WARN_UNUSED;
/* Get digest size of chunk hash type */
-ssize_t zck_get_chunk_digest_size(zckCtx *zck)
- __attribute__ ((warn_unused_result));
+ssize_t ZCK_PUBLIC_API zck_get_chunk_digest_size(zckCtx *zck)
+ ZCK_WARN_UNUSED;
+/* Get uncompressed chunk digest */
+char ZCK_PUBLIC_API *zck_get_chunk_digest_uncompressed(zckChunk *item)
+ ZCK_WARN_UNUSED;
/* Get chunk data */
-ssize_t zck_get_chunk_data(zckChunk *idx, char *dst, size_t dst_size)
- __attribute__ ((warn_unused_result));
+ssize_t ZCK_PUBLIC_API zck_get_chunk_data(zckChunk *idx, char *dst, size_t dst_size)
+ ZCK_WARN_UNUSED;
/* Get compressed chunk data */
-ssize_t zck_get_chunk_comp_data(zckChunk *idx, char *dst, size_t dst_size)
- __attribute__ ((warn_unused_result));
+ssize_t ZCK_PUBLIC_API zck_get_chunk_comp_data(zckChunk *idx, char *dst, size_t dst_size)
+ ZCK_WARN_UNUSED;
/* Find out if two chunk digests are the same */
-bool zck_compare_chunk_digest(zckChunk *a, zckChunk *b)
- __attribute__ ((warn_unused_result));
-
+bool ZCK_PUBLIC_API zck_compare_chunk_digest(zckChunk *a, zckChunk *b)
+ ZCK_WARN_UNUSED;
+/* Get associate src chunk if any */
+zckChunk ZCK_PUBLIC_API *zck_get_src_chunk(zckChunk *idx)
+ ZCK_WARN_UNUSED;
/*******************************************************************
* Advanced hash functions
*******************************************************************/
/* Get overall hash type */
-int zck_get_full_hash_type(zckCtx *zck)
- __attribute__ ((warn_unused_result));
+int ZCK_PUBLIC_API zck_get_full_hash_type(zckCtx *zck)
+ ZCK_WARN_UNUSED;
/* Get digest size of overall hash type */
-ssize_t zck_get_full_digest_size(zckCtx *zck)
- __attribute__ ((warn_unused_result));
+ssize_t ZCK_PUBLIC_API zck_get_full_digest_size(zckCtx *zck)
+ ZCK_WARN_UNUSED;
/* Get chunk hash type */
-int zck_get_chunk_hash_type(zckCtx *zck)
- __attribute__ ((warn_unused_result));
+int ZCK_PUBLIC_API zck_get_chunk_hash_type(zckCtx *zck)
+ ZCK_WARN_UNUSED;
/* Get name of hash type */
-const char *zck_hash_name_from_type(int hash_type)
- __attribute__ ((warn_unused_result));
+const ZCK_PUBLIC_API char *zck_hash_name_from_type(int hash_type)
+ ZCK_WARN_UNUSED;
* Ranges
*******************************************************************/
/* Get any matching chunks from src and put them in the right place in tgt */
-bool zck_copy_chunks(zckCtx *src, zckCtx *tgt)
- __attribute__ ((warn_unused_result));
+bool ZCK_PUBLIC_API zck_copy_chunks(zckCtx *src, zckCtx *tgt)
+ ZCK_WARN_UNUSED;
/* Free zckRange */
-void zck_range_free(zckRange **info);
+void ZCK_PUBLIC_API zck_range_free(zckRange **info);
/* Get range string from start and end location */
-char *zck_get_range(size_t start, size_t end)
- __attribute__ ((warn_unused_result));
+char ZCK_PUBLIC_API *zck_get_range(size_t start, size_t end)
+ ZCK_WARN_UNUSED;
/* Get the minimum size needed to download in order to know how large the header
* is */
-int zck_get_min_download_size()
- __attribute__ ((warn_unused_result));
+int ZCK_PUBLIC_API zck_get_min_download_size(void)
+ ZCK_WARN_UNUSED;
/* Get the number of separate range items in the range */
-int zck_get_range_count(zckRange *range)
- __attribute__ ((warn_unused_result));
+int ZCK_PUBLIC_API zck_get_range_count(zckRange *range)
+ ZCK_WARN_UNUSED;
/*******************************************************************
* Downloading
*******************************************************************/
/* Initialize zchunk download context */
-zckDL *zck_dl_init(zckCtx *zck)
- __attribute__ ((warn_unused_result));
+zckDL ZCK_PUBLIC_API *zck_dl_init(zckCtx *zck)
+ ZCK_WARN_UNUSED;
/* Reset zchunk download context for reuse */
-void zck_dl_reset(zckDL *dl);
+void ZCK_PUBLIC_API zck_dl_reset(zckDL *dl);
/* Free zchunk download context */
-void zck_dl_free(zckDL **dl);
+void ZCK_PUBLIC_API zck_dl_free(zckDL **dl);
/* Get zchunk context from download context */
-zckCtx *zck_dl_get_zck(zckDL *dl)
- __attribute__ ((warn_unused_result));
+zckCtx ZCK_PUBLIC_API *zck_dl_get_zck(zckDL *dl)
+ ZCK_WARN_UNUSED;
/* Set zchunk context in download context */
-bool zck_dl_set_zck(zckDL *dl, zckCtx *zck)
- __attribute__ ((warn_unused_result));
+bool ZCK_PUBLIC_API zck_dl_set_zck(zckDL *dl, zckCtx *zck)
+ ZCK_WARN_UNUSED;
/* Clear regex used for extracting download ranges from multipart download */
-void zck_dl_clear_regex(zckDL *dl);
+void ZCK_PUBLIC_API zck_dl_clear_regex(zckDL *dl);
/* Download and process the header from url */
-bool zck_dl_get_header(zckCtx *zck, zckDL *dl, char *url)
- __attribute__ ((warn_unused_result));
+bool ZCK_PUBLIC_API zck_dl_get_header(zckCtx *zck, zckDL *dl, char *url)
+ ZCK_WARN_UNUSED;
/* Get number of bytes downloaded using download context */
-ssize_t zck_dl_get_bytes_downloaded(zckDL *dl)
- __attribute__ ((warn_unused_result));
+ssize_t ZCK_PUBLIC_API zck_dl_get_bytes_downloaded(zckDL *dl)
+ ZCK_WARN_UNUSED;
/* Get number of bytes uploaded using download context */
-ssize_t zck_dl_get_bytes_uploaded(zckDL *dl)
- __attribute__ ((warn_unused_result));
+ssize_t ZCK_PUBLIC_API zck_dl_get_bytes_uploaded(zckDL *dl)
+ ZCK_WARN_UNUSED;
/* Set download ranges for zchunk download context */
-bool zck_dl_set_range(zckDL *dl, zckRange *range)
- __attribute__ ((warn_unused_result));
+bool ZCK_PUBLIC_API zck_dl_set_range(zckDL *dl, zckRange *range)
+ ZCK_WARN_UNUSED;
/* Get download ranges from zchunk download context */
-zckRange *zck_dl_get_range(zckDL *dl)
- __attribute__ ((warn_unused_result));
+zckRange ZCK_PUBLIC_API *zck_dl_get_range(zckDL *dl)
+ ZCK_WARN_UNUSED;
/* Set header callback function */
-bool zck_dl_set_header_cb(zckDL *dl, zck_wcb func)
- __attribute__ ((warn_unused_result));
+bool ZCK_PUBLIC_API zck_dl_set_header_cb(zckDL *dl, zck_wcb func)
+ ZCK_WARN_UNUSED;
/* Set header userdata */
-bool zck_dl_set_header_data(zckDL *dl, void *data)
- __attribute__ ((warn_unused_result));
+bool ZCK_PUBLIC_API zck_dl_set_header_data(zckDL *dl, void *data)
+ ZCK_WARN_UNUSED;
/* Set write callback function */
-bool zck_dl_set_write_cb(zckDL *dl, zck_wcb func)
- __attribute__ ((warn_unused_result));
+bool ZCK_PUBLIC_API zck_dl_set_write_cb(zckDL *dl, zck_wcb func)
+ ZCK_WARN_UNUSED;
/* Set write userdata */
-bool zck_dl_set_write_data(zckDL *dl, void *data)
- __attribute__ ((warn_unused_result));
+bool ZCK_PUBLIC_API zck_dl_set_write_data(zckDL *dl, void *data)
+ ZCK_WARN_UNUSED;
/* Write callback. You *must* pass this and your initialized zchunk download
* context to the downloader when downloading a zchunk file. If you have your
* own callback, set dl->write_cb to your callback and dl->wdata to your
* callback data. */
-size_t zck_write_chunk_cb(void *ptr, size_t l, size_t c, void *dl_v);
-size_t zck_write_zck_header_cb(void *ptr, size_t l, size_t c, void *dl_v);
-size_t zck_header_cb(char *b, size_t l, size_t c, void *dl_v);
+size_t ZCK_PUBLIC_API zck_write_chunk_cb(void *ptr, size_t l, size_t c, void *dl_v);
+size_t ZCK_PUBLIC_API zck_write_zck_header_cb(void *ptr, size_t l, size_t c, void *dl_v);
+size_t ZCK_PUBLIC_API zck_header_cb(char *b, size_t l, size_t c, void *dl_v);
#endif
+++ /dev/null
-<!-- kind:binary;verdict:compatible;affected:0;added:0;removed:0;type_problems_high:0;type_problems_medium:0;type_problems_low:0;interface_problems_high:0;interface_problems_medium:0;interface_problems_low:0;changed_constants:0;tool_version:2.3 -->
-<!-- kind:source;verdict:compatible;affected:0;added:0;removed:0;type_problems_high:0;type_problems_medium:0;type_problems_low:0;interface_problems_high:0;interface_problems_medium:0;interface_problems_low:0;changed_constants:0;tool_version:2.3 -->
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="viewport" content="width=device-width,initial-scale=1" />
-<meta name="keywords" content="zchunk, compatibility, API, ABI, report" />
-<meta name="description" content="API/ABI compatibility report for the zchunk object between 1.1.15 and 1.1.16 versions" />
-<meta name="robots" content="noindex" />
-<title>zchunk: 1.1.15 to 1.1.16 compatibility report</title>
-<style type="text/css">
-body {
- font-family:Arial, sans-serif;
- background-color:White;
- color:Black;
-}
-hr {
- color:Black;
- background-color:Black;
- height:1px;
- border:0;
-}
-h1 {
- margin-bottom:0px;
- padding-bottom:0px;
- font-size:1.625em;
-}
-h2 {
- margin-bottom:0px;
- padding-bottom:0px;
- font-size:1.25em;
- white-space:nowrap;
-}
-span.section {
- font-weight:bold;
- cursor:pointer;
- color:#003E69;
- white-space:nowrap;
- margin-left:0.3125em;
-}
-span.new_sign {
- font-weight:bold;
- margin-left:1.65em;
- color:#003E69;
-}
-span.new_sign_lbl {
- margin-left:3em;
- font-size:1em;
- color:Black;
-}
-span:hover.section {
- color:#336699;
-}
-span.sect_aff {
- cursor:pointer;
- padding-left:1.55em;
- font-size:0.875em;
- color:#cc3300;
-}
-span.sect_info {
- cursor:pointer;
- padding-left:1.55em;
- font-size:0.875em;
- color:Black;
-}
-span.ext {
- font-weight:normal;
-}
-span.h_name {
- color:#cc3300;
- font-size:0.875em;
- font-weight:bold;
-}
-div.h_list, div.lib_list {
- font-size:0.94em;
- padding-left:0.4em;
-}
-span.ns {
- color:#408080;
- font-size:0.94em;
-}
-span.lib_name {
- color:Green;
- font-size:0.875em;
- font-weight:bold;
-}
-span.iname {
- font-weight:bold;
- color:#003E69;
- margin-left:0.3125em;
-}
-span.iname_b {
- font-weight:bold;
-}
-span.iname_a {
- color:#333333;
- font-weight:bold;
- font-size:0.94em;
-}
-span.sym_p {
- font-weight:normal;
- white-space:normal;
-}
-span.sym_pd {
- white-space:normal;
-}
-span.sym_p span, span.sym_pd span {
- white-space:nowrap;
-}
-div.affect {
- padding-left:1em;
- padding-bottom:10px;
- font-size:0.87em;
- font-style:italic;
- line-height:0.9em;
-}
-div.affected {
- padding-left:1.9em;
- padding-top:10px;
-}
-table.ptable {
- border-collapse:collapse;
- border:1px outset black;
- margin-left:0.95em;
- margin-top:3px;
- margin-bottom:3px;
- width:56.25em;
-}
-table.ptable td {
- border:1px solid gray;
- padding:3px;
- font-size:0.875em;
- text-align:left;
- vertical-align:top;
- max-width:28em;
- word-wrap:break-word;
-}
-table.ptable th.pn {
- width:2%;
-}
-table.ptable th.chg {
- width:47%;
-}
-table.vtable {
- border-collapse:collapse;
- border:1px outset black;
- margin-left:1.9em;
- margin-top:0.7em;
-}
-table.vtable td {
- border:1px solid gray;
- padding:3px;
- font-size:0.875em;
- vertical-align:top;
- max-width:450px;
- word-wrap:break-word;
-}
-table.ptable th, table.vtable th {
- background-color:#eeeeee;
- font-weight:bold;
- color:#333333;
- font-family:Verdana, Arial;
- font-size:0.875em;
- border:1px solid gray;
- text-align:center;
- vertical-align:top;
- white-space:nowrap;
- padding:3px;
-}
-table.summary {
- border-collapse:collapse;
- border:1px outset black;
-}
-table.summary th {
- background-color:#eeeeee;
- font-weight:normal;
- text-align:left;
- font-size:0.94em;
- white-space:nowrap;
- border:1px inset gray;
- padding:3px;
-}
-table.summary td {
- text-align:right;
- white-space:nowrap;
- border:1px inset gray;
- padding:3px 5px 3px 10px;
-}
-span.mngl {
- padding-left:1em;
- font-size:0.875em;
- cursor:text;
- color:#444444;
- font-weight:bold;
-}
-span.pleft {
- padding-left:2.5em;
-}
-span.sym_ver {
- color:#333333;
- white-space:nowrap;
- font-family:"DejaVu Sans Mono", Monospace;
-}
-span.attr {
- color:#333333;
- font-weight:normal;
-}
-span.color_p {
- font-style:italic;
- color:Brown;
-}
-span.p {
- font-style:italic;
-}
-span.fp {
- font-style:italic;
- background-color:#DCDCDC;
-}
-span.ttype {
- font-weight:normal;
-}
-span.nowrap {
- white-space:nowrap;
-}
-span.value {
- font-weight:bold;
-}
-.passed {
- background-color:#CCFFCC;
- font-weight:normal;
-}
-.warning {
- background-color:#F4F4AF;
- font-weight:normal;
-}
-.failed {
- background-color:#FFCCCC;
- font-weight:normal;
-}
-.new {
- background-color:#C6DEFF;
- font-weight:normal;
-}
-.compatible {
- background-color:#CCFFCC;
- font-weight:normal;
-}
-.almost_compatible {
- background-color:#FFDAA3;
- font-weight:normal;
-}
-.incompatible {
- background-color:#FFCCCC;
- font-weight:normal;
-}
-.gray {
- background-color:#DCDCDC;
- font-weight:normal;
-}
-.top_ref {
- font-size:0.69em;
-}
-.footer {
- font-size:0.75em;
-}
-
-.tabset {
- float:left;
-}
-a.tab {
- border:1px solid Black;
- float:left;
- margin:0px 5px -1px 0px;
- padding:3px 5px 3px 5px;
- position:relative;
- font-size:0.875em;
- background-color:#DDD;
- text-decoration:none;
- color:Black;
-}
-a.disabled:hover
-{
- color:Black;
- background:#EEE;
-}
-a.active:hover
-{
- color:Black;
- background:White;
-}
-a.active {
- border-bottom-color:White;
- background-color:White;
-}
-div.tab {
- border-top:1px solid Black;
- padding:0px;
- width:100%;
- clear:both;
-}
-</style>
-<script type="text/javascript" language="JavaScript">
-<!--
-function showContent(header, id)
-{
- e = document.getElementById(id);
- if(e.style.display == 'none')
- {
- e.style.display = 'block';
- e.style.visibility = 'visible';
- header.innerHTML = header.innerHTML.replace(/\[[^0-9 ]\]/gi,"[−]");
- }
- else
- {
- e.style.display = 'none';
- e.style.visibility = 'hidden';
- header.innerHTML = header.innerHTML.replace(/\[[^0-9 ]\]/gi,"[+]");
- }
-}
-function initTabs()
-{
- var url = window.location.href;
- if(url.indexOf('_Source_')!=-1 || url.indexOf('#Source')!=-1)
- {
- var tab1 = document.getElementById('BinaryID');
- var tab2 = document.getElementById('SourceID');
- tab1.className='tab disabled';
- tab2.className='tab active';
- }
- var sets = document.getElementsByTagName('div');
- for (var i = 0; i < sets.length; i++)
- {
- if (sets[i].className.indexOf('tabset') != -1)
- {
- var tabs = [];
- var links = sets[i].getElementsByTagName('a');
- for (var j = 0; j < links.length; j++)
- {
- if (links[j].className.indexOf('tab') != -1)
- {
- tabs.push(links[j]);
- links[j].tabs = tabs;
- var tab = document.getElementById(links[j].href.substr(links[j].href.indexOf('#') + 1));
- //reset all tabs on start
- if (tab)
- {
- if (links[j].className.indexOf('active')!=-1) {
- tab.style.display = 'block';
- }
- else {
- tab.style.display = 'none';
- }
- }
- links[j].onclick = function()
- {
- var tab = document.getElementById(this.href.substr(this.href.indexOf('#') + 1));
- if (tab)
- {
- //reset all tabs before change
- for (var k = 0; k < this.tabs.length; k++)
- {
- document.getElementById(this.tabs[k].href.substr(this.tabs[k].href.indexOf('#') + 1)).style.display = 'none';
- this.tabs[k].className = this.tabs[k].className.replace('active', 'disabled');
- }
- this.className = 'tab active';
- tab.style.display = 'block';
- // window.location.hash = this.id.replace('ID', '');
- return false;
- }
- }
- }
- }
- }
- }
- if(url.indexOf('#')!=-1) {
- location.href=location.href;
- }
-}
-if (window.addEventListener) window.addEventListener('load', initTabs, false);
-else if (window.attachEvent) window.attachEvent('onload', initTabs);
--->
-</script>
-</head>
-<body><a name='Source'></a><a name='Binary'></a><a name='Top'></a><h1>API compatibility report for the <span style='color:Blue;'>libzck.so</span> object between <span style='color:Red;'>1.1.15</span> and <span style='color:Red;'>1.1.16</span> versions on <span style='color:Blue;'>x86_64</span></h1>
-
- <br/>
- <div class='tabset'>
- <a id='BinaryID' href='#BinaryTab' class='tab active'>Binary<br/>Compatibility</a>
- <a id='SourceID' href='#SourceTab' style='margin-left:3px' class='tab disabled'>Source<br/>Compatibility</a>
- </div><div id='BinaryTab' class='tab'>
-<h2>Test Info</h2><hr/>
-<table class='summary'>
-<tr><th>Module Name</th><td>zchunk</td></tr>
-<tr><th>Version #1</th><td>1.1.15</td></tr>
-<tr><th>Version #2</th><td>1.1.16</td></tr>
-<tr><th>Arch</th><td>x86_64</td></tr>
-<tr><th>GCC Version</th><td>11.1.1</td></tr>
-<tr><th>Subject</th><td width='150px'>Binary Compatibility</td></tr>
-</table>
-<h2>Test Results</h2><hr/>
-<table class='summary'><tr><th>Total Header Files</th><td><a href='#Headers' style='color:Blue;'>1</a></td></tr>
-<tr><th>Total Objects</th><td><a href='#Libs' style='color:Blue;'>1</a></td></tr>
-<tr><th>Total Symbols / Types</th><td>75 / 14</td></tr>
-<tr><th>Compatibility</th>
-<td class='compatible'>100%</td>
-</tr>
-</table>
-<h2>Problem Summary</h2><hr/>
-<table class='summary'><tr><th></th><th style='text-align:center;'>Severity</th><th style='text-align:center;'>Count</th></tr><tr><th>Added Symbols</th><td>-</td><td>0</td></tr>
-<tr><th>Removed Symbols</th><td>High</td><td>0</td></tr>
-<tr><th rowspan='3'>Problems with<br/>Data Types</th><td>High</td><td>0</td></tr>
-<tr><td>Medium</td><td>0</td></tr>
-<tr><td>Low</td><td>0</td></tr>
-<tr><th rowspan='3'>Problems with<br/>Symbols</th><td>High</td><td>0</td></tr>
-<tr><td>Medium</td><td>0</td></tr>
-<tr><td>Low</td><td>0</td></tr>
-<tr><th>Problems with<br/>Constants</th><td>Low</td><td>0</td></tr>
-</table>
-
-<a name='Headers'></a><h2>Header Files <span class='gray'> 1 </span></h2><hr/>
-<div class='h_list'>
-zck.h<br/>
-</div>
-<br/><a class='top_ref' href='#Top'>to the top</a><br/>
-<a name='Libs'></a><h2>Objects <span class='gray'> 1 </span></h2><hr/>
-<div class='lib_list'>
-libzck.so.1.1.15<br/>
-</div>
-<br/><a class='top_ref' href='#Top'>to the top</a><br/>
-<br/><br/><br/></div><div id='SourceTab' class='tab'>
-<h2>Test Info</h2><hr/>
-<table class='summary'>
-<tr><th>Module Name</th><td>zchunk</td></tr>
-<tr><th>Version #1</th><td>1.1.15</td></tr>
-<tr><th>Version #2</th><td>1.1.16</td></tr>
-<tr><th>Arch</th><td>x86_64</td></tr>
-<tr><th>Subject</th><td width='150px'>Source Compatibility</td></tr>
-</table>
-<h2>Test Results</h2><hr/>
-<table class='summary'><tr><th>Total Header Files</th><td><a href='#Headers' style='color:Blue;'>1</a></td></tr>
-<tr><th>Total Objects</th><td><a href='#Libs' style='color:Blue;'>1</a></td></tr>
-<tr><th>Total Symbols / Types</th><td>75 / 14</td></tr>
-<tr><th>Compatibility</th>
-<td class='compatible'>100%</td>
-</tr>
-</table>
-<h2>Problem Summary</h2><hr/>
-<table class='summary'><tr><th></th><th style='text-align:center;'>Severity</th><th style='text-align:center;'>Count</th></tr><tr><th>Added Symbols</th><td>-</td><td>0</td></tr>
-<tr><th>Removed Symbols</th><td>High</td><td>0</td></tr>
-<tr><th rowspan='3'>Problems with<br/>Data Types</th><td>High</td><td>0</td></tr>
-<tr><td>Medium</td><td>0</td></tr>
-<tr><td>Low</td><td>0</td></tr>
-<tr><th rowspan='3'>Problems with<br/>Symbols</th><td>High</td><td>0</td></tr>
-<tr><td>Medium</td><td>0</td></tr>
-<tr><td>Low</td><td>0</td></tr>
-<tr><th>Problems with<br/>Constants</th><td>Low</td><td>0</td></tr>
-</table>
-
-<a name='Headers'></a><h2>Header Files <span class='gray'> 1 </span></h2><hr/>
-<div class='h_list'>
-zck.h<br/>
-</div>
-<br/><a class='top_ref' href='#Top'>to the top</a><br/>
-<a name='Libs'></a><h2>Objects <span class='gray'> 1 </span></h2><hr/>
-<div class='lib_list'>
-libzck.so.1.1.15<br/>
-</div>
-<br/><a class='top_ref' href='#Top'>to the top</a><br/>
-<br/><br/><br/></div><hr/>
-<div class='footer' align='right'><i>Generated by <a href='https://github.com/lvc/abi-compliance-checker'>ABI Compliance Checker</a> 2.3  </i>
-</div>
-<br/>
-
-</body></html>
--- /dev/null
+<!-- kind:binary;verdict:compatible;affected:0;added:7;removed:0;type_problems_high:0;type_problems_medium:0;type_problems_low:0;interface_problems_high:0;interface_problems_medium:0;interface_problems_low:0;changed_constants:0;type_changes_other:1;tool_version:2.3 -->
+<!-- kind:source;verdict:compatible;affected:0;added:7;removed:0;type_problems_high:0;type_problems_medium:0;type_problems_low:0;interface_problems_high:0;interface_problems_medium:0;interface_problems_low:0;changed_constants:0;type_changes_other:1;tool_version:2.3 -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<meta name="viewport" content="width=device-width,initial-scale=1" />
+<meta name="keywords" content="zchunk, compatibility, API, ABI, report" />
+<meta name="description" content="API/ABI compatibility report for the zchunk object between 1.1.16 and 1.2.0 versions" />
+<title>zchunk: 1.1.16 to 1.2.0 compatibility report</title>
+<style type="text/css">
+body {
+ font-family:Arial, sans-serif;
+ background-color:White;
+ color:Black;
+}
+hr {
+ color:Black;
+ background-color:Black;
+ height:1px;
+ border:0;
+}
+h1 {
+ margin-bottom:0px;
+ padding-bottom:0px;
+ font-size:1.625em;
+}
+h2 {
+ margin-bottom:0px;
+ padding-bottom:0px;
+ font-size:1.25em;
+ white-space:nowrap;
+}
+span.section {
+ font-weight:bold;
+ cursor:pointer;
+ color:#003E69;
+ white-space:nowrap;
+ margin-left:0.3125em;
+}
+span.new_sign {
+ font-weight:bold;
+ margin-left:1.65em;
+ color:#003E69;
+}
+span.new_sign_lbl {
+ margin-left:3em;
+ font-size:1em;
+ color:Black;
+}
+span:hover.section {
+ color:#336699;
+}
+span.sect_aff {
+ cursor:pointer;
+ padding-left:1.55em;
+ font-size:0.875em;
+ color:#cc3300;
+}
+span.sect_info {
+ cursor:pointer;
+ padding-left:1.55em;
+ font-size:0.875em;
+ color:Black;
+}
+span.ext {
+ font-weight:normal;
+}
+span.h_name {
+ color:#cc3300;
+ font-size:0.875em;
+ font-weight:bold;
+}
+div.h_list, div.lib_list {
+ font-size:0.94em;
+ padding-left:0.4em;
+}
+span.ns {
+ color:#408080;
+ font-size:0.94em;
+}
+span.lib_name {
+ color:Green;
+ font-size:0.875em;
+ font-weight:bold;
+}
+span.iname {
+ font-weight:bold;
+ color:#003E69;
+ margin-left:0.3125em;
+}
+span.iname_b {
+ font-weight:bold;
+}
+span.iname_a {
+ color:#333333;
+ font-weight:bold;
+ font-size:0.94em;
+}
+span.sym_p {
+ font-weight:normal;
+ white-space:normal;
+}
+span.sym_pd {
+ white-space:normal;
+}
+span.sym_p span, span.sym_pd span {
+ white-space:nowrap;
+}
+div.affect {
+ padding-left:1em;
+ padding-bottom:10px;
+ font-size:0.87em;
+ font-style:italic;
+ line-height:0.9em;
+}
+div.affected {
+ padding-left:1.9em;
+ padding-top:10px;
+}
+table.ptable {
+ border-collapse:collapse;
+ border:1px outset black;
+ margin-left:0.95em;
+ margin-top:3px;
+ margin-bottom:3px;
+ width:56.25em;
+}
+table.ptable td {
+ border:1px solid gray;
+ padding:3px;
+ font-size:0.875em;
+ text-align:left;
+ vertical-align:top;
+ max-width:28em;
+ word-wrap:break-word;
+}
+table.ptable th.pn {
+ width:2%;
+}
+table.ptable th.chg {
+ width:47%;
+}
+table.vtable {
+ border-collapse:collapse;
+ border:1px outset black;
+ margin-left:1.9em;
+ margin-top:0.7em;
+}
+table.vtable td {
+ border:1px solid gray;
+ padding:3px;
+ font-size:0.875em;
+ vertical-align:top;
+ max-width:450px;
+ word-wrap:break-word;
+}
+table.ptable th, table.vtable th {
+ background-color:#eeeeee;
+ font-weight:bold;
+ color:#333333;
+ font-family:Verdana, Arial;
+ font-size:0.875em;
+ border:1px solid gray;
+ text-align:center;
+ vertical-align:top;
+ white-space:nowrap;
+ padding:3px;
+}
+table.summary {
+ border-collapse:collapse;
+ border:1px outset black;
+}
+table.summary th {
+ background-color:#eeeeee;
+ font-weight:normal;
+ text-align:left;
+ font-size:0.94em;
+ white-space:nowrap;
+ border:1px inset gray;
+ padding:3px;
+}
+table.summary td {
+ text-align:right;
+ white-space:nowrap;
+ border:1px inset gray;
+ padding:3px 5px 3px 10px;
+}
+span.mngl {
+ padding-left:1em;
+ font-size:0.875em;
+ cursor:text;
+ color:#444444;
+ font-weight:bold;
+}
+span.pleft {
+ padding-left:2.5em;
+}
+span.sym_ver {
+ color:#333333;
+ white-space:nowrap;
+ font-family:"DejaVu Sans Mono", Monospace;
+}
+span.attr {
+ color:#333333;
+ font-weight:normal;
+}
+span.color_p {
+ font-style:italic;
+ color:Brown;
+}
+span.p {
+ font-style:italic;
+}
+span.fp {
+ font-style:italic;
+ background-color:#DCDCDC;
+}
+span.ttype {
+ font-weight:normal;
+}
+span.nowrap {
+ white-space:nowrap;
+}
+span.value {
+ font-weight:bold;
+}
+.passed {
+ background-color:#CCFFCC;
+ font-weight:normal;
+}
+.warning {
+ background-color:#F4F4AF;
+ font-weight:normal;
+}
+.failed {
+ background-color:#FFCCCC;
+ font-weight:normal;
+}
+.new {
+ background-color:#C6DEFF;
+ font-weight:normal;
+}
+.compatible {
+ background-color:#CCFFCC;
+ font-weight:normal;
+}
+.almost_compatible {
+ background-color:#FFDAA3;
+ font-weight:normal;
+}
+.incompatible {
+ background-color:#FFCCCC;
+ font-weight:normal;
+}
+.gray {
+ background-color:#DCDCDC;
+ font-weight:normal;
+}
+.top_ref {
+ font-size:0.69em;
+}
+.footer {
+ font-size:0.75em;
+}
+
+.tabset {
+ float:left;
+}
+a.tab {
+ border:1px solid Black;
+ float:left;
+ margin:0px 5px -1px 0px;
+ padding:3px 5px 3px 5px;
+ position:relative;
+ font-size:0.875em;
+ background-color:#DDD;
+ text-decoration:none;
+ color:Black;
+}
+a.disabled:hover
+{
+ color:Black;
+ background:#EEE;
+}
+a.active:hover
+{
+ color:Black;
+ background:White;
+}
+a.active {
+ border-bottom-color:White;
+ background-color:White;
+}
+div.tab {
+ border-top:1px solid Black;
+ padding:0px;
+ width:100%;
+ clear:both;
+}
+</style>
+<script type="text/javascript" language="JavaScript">
+<!--
+function showContent(header, id)
+{
+ e = document.getElementById(id);
+ if(e.style.display == 'none')
+ {
+ e.style.display = 'block';
+ e.style.visibility = 'visible';
+ header.innerHTML = header.innerHTML.replace(/\[[^0-9 ]\]/gi,"[−]");
+ }
+ else
+ {
+ e.style.display = 'none';
+ e.style.visibility = 'hidden';
+ header.innerHTML = header.innerHTML.replace(/\[[^0-9 ]\]/gi,"[+]");
+ }
+}
+function initTabs()
+{
+ var url = window.location.href;
+ if(url.indexOf('_Source_')!=-1 || url.indexOf('#Source')!=-1)
+ {
+ var tab1 = document.getElementById('BinaryID');
+ var tab2 = document.getElementById('SourceID');
+ tab1.className='tab disabled';
+ tab2.className='tab active';
+ }
+ var sets = document.getElementsByTagName('div');
+ for (var i = 0; i < sets.length; i++)
+ {
+ if (sets[i].className.indexOf('tabset') != -1)
+ {
+ var tabs = [];
+ var links = sets[i].getElementsByTagName('a');
+ for (var j = 0; j < links.length; j++)
+ {
+ if (links[j].className.indexOf('tab') != -1)
+ {
+ tabs.push(links[j]);
+ links[j].tabs = tabs;
+ var tab = document.getElementById(links[j].href.substr(links[j].href.indexOf('#') + 1));
+ //reset all tabs on start
+ if (tab)
+ {
+ if (links[j].className.indexOf('active')!=-1) {
+ tab.style.display = 'block';
+ }
+ else {
+ tab.style.display = 'none';
+ }
+ }
+ links[j].onclick = function()
+ {
+ var tab = document.getElementById(this.href.substr(this.href.indexOf('#') + 1));
+ if (tab)
+ {
+ //reset all tabs before change
+ for (var k = 0; k < this.tabs.length; k++)
+ {
+ document.getElementById(this.tabs[k].href.substr(this.tabs[k].href.indexOf('#') + 1)).style.display = 'none';
+ this.tabs[k].className = this.tabs[k].className.replace('active', 'disabled');
+ }
+ this.className = 'tab active';
+ tab.style.display = 'block';
+ // window.location.hash = this.id.replace('ID', '');
+ return false;
+ }
+ }
+ }
+ }
+ }
+ }
+ if(url.indexOf('#')!=-1) {
+ location.href=location.href;
+ }
+}
+if (window.addEventListener) window.addEventListener('load', initTabs, false);
+else if (window.attachEvent) window.attachEvent('onload', initTabs);
+-->
+</script>
+</head>
+<body><a name='Source'></a><a name='Binary'></a><a name='Top'></a><h1>API compatibility report for the <span style='color:Blue;'>libzck.so</span> object between <span style='color:Red;'>1.1.16</span> and <span style='color:Red;'>1.2.0</span> versions on <span style='color:Blue;'>x86_64</span></h1>
+
+ <br/>
+ <div class='tabset'>
+ <a id='BinaryID' href='#BinaryTab' class='tab active'>Binary<br/>Compatibility</a>
+ <a id='SourceID' href='#SourceTab' style='margin-left:3px' class='tab disabled'>Source<br/>Compatibility</a>
+ </div><div id='BinaryTab' class='tab'>
+<h2>Test Info</h2><hr/>
+<table class='summary'>
+<tr><th>Module Name</th><td>zchunk</td></tr>
+<tr><th>Version #1</th><td>1.1.16 (gcc 11.1.1)</td></tr>
+<tr><th>Version #2</th><td>1.2.0 (gcc 11.2.1)</td></tr>
+<tr><th>Arch</th><td>x86_64</td></tr>
+<tr><th>Subject</th><td width='150px'>Binary Compatibility</td></tr>
+</table>
+<h2>Test Results</h2><hr/>
+<table class='summary'><tr><th>Total Header Files</th><td><a href='#Headers' style='color:Blue;'>1</a></td></tr>
+<tr><th>Total Objects</th><td><a href='#Libs' style='color:Blue;'>1</a></td></tr>
+<tr><th>Total Symbols / Types</th><td>75 / 13</td></tr>
+<tr><th>Compatibility</th>
+<td class='compatible'>100%</td>
+</tr>
+</table>
+<h2>Problem Summary</h2><hr/>
+<table class='summary'><tr><th></th><th style='text-align:center;'>Severity</th><th style='text-align:center;'>Count</th></tr><tr><th>Added Symbols</th><td>-</td><td class='new'><a href='#Binary_Added' style='color:Blue;'>7</a></td></tr>
+<tr><th>Removed Symbols</th><td>High</td><td>0</td></tr>
+<tr><th rowspan='3'>Problems with<br/>Data Types</th><td>High</td><td>0</td></tr>
+<tr><td>Medium</td><td>0</td></tr>
+<tr><td>Low</td><td>0</td></tr>
+<tr><th rowspan='3'>Problems with<br/>Symbols</th><td>High</td><td>0</td></tr>
+<tr><td>Medium</td><td>0</td></tr>
+<tr><td>Low</td><td>0</td></tr>
+<tr><th>Problems with<br/>Constants</th><td>Low</td><td>0</td></tr>
+<tr><th>Other Changes<br/>in Data Types</th><td>-</td><td class='passed'><a href='#Other_Binary_Changes_In_Types' style='color:Blue;'>1</a></td></tr>
+</table>
+
+<a name='Binary_Added'></a><h2>Added Symbols <span class='new'> 7 </span></h2><hr/>
+<span class='h_name'>zck.h</span>, <span class='lib_name'>libzck.so.1.2.0</span><br/>
+<span class="iname">zck_find_matching_chunks <span class='sym_p'><span>( zckCtx* <span class='color_p'>src</span></span>, <span>zckCtx* <span class='color_p'>tgt</span></span> )</span></span><br/>
+<span class="iname">zck_generate_hashdb <span class='sym_p'><span>( zckCtx* <span class='color_p'>zck</span></span> )</span></span><br/>
+<span class="iname">zck_get_chunk_digest_uncompressed <span class='sym_p'><span>( zckChunk* <span class='color_p'>item</span></span> )</span></span><br/>
+<span class="iname">zck_get_flags <span class='sym_p'><span>( zckCtx* <span class='color_p'>zck</span></span> )</span></span><br/>
+<span class="iname">zck_get_src_chunk <span class='sym_p'><span>( zckChunk* <span class='color_p'>idx</span></span> )</span></span><br/>
+<span class="iname">zck_is_detached_header <span class='sym_p'><span>( zckCtx* <span class='color_p'>zck</span></span> )</span></span><br/>
+<span class="iname">zck_set_log_callback <span class='sym_p'><span>( logcallback <span class='color_p'>function</span></span> )</span></span><br/>
+<br/>
+<a class='top_ref' href='#Top'>to the top</a><br/>
+<a name='Other_Binary_Changes'></a><a name='Other_Binary_Changes_In_Types'></a>
+<h2>Other Changes in Data Types <span class='passed'> 1 </span></h2><hr/>
+<span class='h_name'>zck.h</span><br/>
+<span class="section" onclick="javascript:showContent(this, 'c_1')">
+<span class='ext'>[+]</span> <span class='ttype'>enum</span> zck_ioption <span class='passed'> 1 </span></span>
+<br/>
+<div id="c_1" style="display:none;">
+<table class='ptable'><tr>
+<th class='pn'></th>
+<th class='chg'>Change</th>
+<th>Effect</th></tr><tr>
+<th>1</th>
+<td>The member <b>ZCK_UNCOMP_HEADER</b> with value <b>4</b> has been added.</td>
+<td>No effect.</td>
+</tr>
+</table>
+<span class="sect_aff" onclick="javascript:showContent(this, 'c_2')">
+[+] affected symbols: 1 (1.3%)</span>
+<div id="c_2" style="display:none;">
+<div class='affected'><span class='iname_a'>zck_set_ioption <span class='sym_p'><span>( zckCtx* <i>zck</i></span>, <span>zck_ioption <span class='fp'>option</span></span>, <span>ssize_t <i>value</i></span> )</span></span><br/>
+<div class='affect'>2nd parameter 'option' has base type 'enum zck_ioption'.</div>
+</div>
+</div>
+<br/><br/></div>
+
+<br/>
+<a class='top_ref' href='#Top'>to the top</a><br/>
+<a name='Headers'></a><h2>Header Files <span class='gray'> 1 </span></h2><hr/>
+<div class='h_list'>
+zck.h<br/>
+</div>
+<br/><a class='top_ref' href='#Top'>to the top</a><br/>
+<a name='Libs'></a><h2>Objects <span class='gray'> 1 </span></h2><hr/>
+<div class='lib_list'>
+libzck.so.1.1.16<br/>
+</div>
+<br/><a class='top_ref' href='#Top'>to the top</a><br/>
+<br/><br/><br/></div><div id='SourceTab' class='tab'>
+<h2>Test Info</h2><hr/>
+<table class='summary'>
+<tr><th>Module Name</th><td>zchunk</td></tr>
+<tr><th>Version #1</th><td>1.1.16</td></tr>
+<tr><th>Version #2</th><td>1.2.0</td></tr>
+<tr><th>Arch</th><td>x86_64</td></tr>
+<tr><th>Subject</th><td width='150px'>Source Compatibility</td></tr>
+</table>
+<h2>Test Results</h2><hr/>
+<table class='summary'><tr><th>Total Header Files</th><td><a href='#Headers' style='color:Blue;'>1</a></td></tr>
+<tr><th>Total Objects</th><td><a href='#Libs' style='color:Blue;'>1</a></td></tr>
+<tr><th>Total Symbols / Types</th><td>75 / 13</td></tr>
+<tr><th>Compatibility</th>
+<td class='compatible'>100%</td>
+</tr>
+</table>
+<h2>Problem Summary</h2><hr/>
+<table class='summary'><tr><th></th><th style='text-align:center;'>Severity</th><th style='text-align:center;'>Count</th></tr><tr><th>Added Symbols</th><td>-</td><td class='new'><a href='#Source_Added' style='color:Blue;'>7</a></td></tr>
+<tr><th>Removed Symbols</th><td>High</td><td>0</td></tr>
+<tr><th rowspan='3'>Problems with<br/>Data Types</th><td>High</td><td>0</td></tr>
+<tr><td>Medium</td><td>0</td></tr>
+<tr><td>Low</td><td>0</td></tr>
+<tr><th rowspan='3'>Problems with<br/>Symbols</th><td>High</td><td>0</td></tr>
+<tr><td>Medium</td><td>0</td></tr>
+<tr><td>Low</td><td>0</td></tr>
+<tr><th>Problems with<br/>Constants</th><td>Low</td><td>0</td></tr>
+<tr><th>Other Changes<br/>in Data Types</th><td>-</td><td class='passed'><a href='#Other_Source_Changes_In_Types' style='color:Blue;'>1</a></td></tr>
+</table>
+
+<a name='Source_Added'></a><h2>Added Symbols <span class='new'> 7 </span></h2><hr/>
+<span class='h_name'>zck.h</span><br/>
+<span class="iname">zck_find_matching_chunks <span class='sym_p'><span>( zckCtx* <span class='color_p'>src</span></span>, <span>zckCtx* <span class='color_p'>tgt</span></span> )</span></span><br/>
+<span class="iname">zck_generate_hashdb <span class='sym_p'><span>( zckCtx* <span class='color_p'>zck</span></span> )</span></span><br/>
+<span class="iname">zck_get_chunk_digest_uncompressed <span class='sym_p'><span>( zckChunk* <span class='color_p'>item</span></span> )</span></span><br/>
+<span class="iname">zck_get_flags <span class='sym_p'><span>( zckCtx* <span class='color_p'>zck</span></span> )</span></span><br/>
+<span class="iname">zck_get_src_chunk <span class='sym_p'><span>( zckChunk* <span class='color_p'>idx</span></span> )</span></span><br/>
+<span class="iname">zck_is_detached_header <span class='sym_p'><span>( zckCtx* <span class='color_p'>zck</span></span> )</span></span><br/>
+<span class="iname">zck_set_log_callback <span class='sym_p'><span>( logcallback <span class='color_p'>function</span></span> )</span></span><br/>
+<br/>
+<a class='top_ref' href='#Top'>to the top</a><br/>
+<a name='Other_Source_Changes'></a><a name='Other_Source_Changes_In_Types'></a>
+<h2>Other Changes in Data Types <span class='passed'> 1 </span></h2><hr/>
+<span class='h_name'>zck.h</span><br/>
+<span class="section" onclick="javascript:showContent(this, 'c_3')">
+<span class='ext'>[+]</span> <span class='ttype'>enum</span> zck_ioption <span class='passed'> 1 </span></span>
+<br/>
+<div id="c_3" style="display:none;">
+<table class='ptable'><tr>
+<th class='pn'></th>
+<th class='chg'>Change</th>
+<th>Effect</th></tr><tr>
+<th>1</th>
+<td>The member <b>ZCK_UNCOMP_HEADER</b> with value <b>4</b> has been added.</td>
+<td>No effect.</td>
+</tr>
+</table>
+<span class="sect_aff" onclick="javascript:showContent(this, 'c_4')">
+[+] affected symbols: 1 (1.3%)</span>
+<div id="c_4" style="display:none;">
+<div class='affected'><span class='iname_a'>zck_set_ioption <span class='sym_p'><span>( zckCtx* <i>zck</i></span>, <span>zck_ioption <span class='fp'>option</span></span>, <span>ssize_t <i>value</i></span> )</span></span><br/>
+<div class='affect'>2nd parameter 'option' has base type 'enum zck_ioption'.</div>
+</div>
+</div>
+<br/><br/></div>
+
+<br/>
+<a class='top_ref' href='#Top'>to the top</a><br/>
+<a name='Headers'></a><h2>Header Files <span class='gray'> 1 </span></h2><hr/>
+<div class='h_list'>
+zck.h<br/>
+</div>
+<br/><a class='top_ref' href='#Top'>to the top</a><br/>
+<a name='Libs'></a><h2>Objects <span class='gray'> 1 </span></h2><hr/>
+<div class='lib_list'>
+libzck.so.1.1.16<br/>
+</div>
+<br/><a class='top_ref' href='#Top'>to the top</a><br/>
+<br/><br/><br/></div><hr/>
+<div class='footer' align='right'><i>Generated by <a href='https://github.com/lvc/abi-compliance-checker'>ABI Compliance Checker</a> 2.3  </i>
+</div>
+<br/>
+
+</body></html>