X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fcrcsync%2Fcrcsync.h;h=4b25562bbb793d6f1bd9b193d785a963eca5aaf6;hp=8ea33457b32b88fc7bf704d946fdb3ecad6bcc38;hb=6b73d11998591ec50e726cc2d4105ca85f38d87d;hpb=94ff9fc87d90173145772a41f79987988f9f0972 diff --git a/ccan/crcsync/crcsync.h b/ccan/crcsync/crcsync.h index 8ea33457..4b25562b 100644 --- a/ccan/crcsync/crcsync.h +++ b/ccan/crcsync/crcsync.h @@ -23,12 +23,14 @@ void crc_of_blocks(const void *data, size_t len, unsigned int blocksize, * @crcbits: the bits valid in the CRCs (<= 32) * @crc: array of block crcs * @num_crcs: number of block crcs + * @final_size: the final block size (<= blocksize). * * Returns an allocated pointer to the structure for crc_find_block, * or NULL. Makes a copy of @crc and @num_crcs. */ struct crc_context *crc_context_new(size_t blocksize, unsigned crcbits, - const uint32_t crc[], unsigned num_crcs); + const uint32_t crc[], unsigned num_crcs, + size_t final_size); /** * crc_read_block - search for block matches in the buffer.