X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=delta.h;h=40ccf5a1e95f62d840a006274f7024fa43208b1c;hb=926ab840cdc867b54fa93b8e1ece2790315c2456;hp=727ae30e9eb973b2bd4a512be78041fee40fa039;hpb=2749fa7771f2a4323b48b78fa194a90d611bc2d8;p=git.git diff --git a/delta.h b/delta.h index 727ae30e9..40ccf5a1e 100644 --- a/delta.h +++ b/delta.h @@ -18,9 +18,18 @@ create_delta_index(const void *buf, unsigned long bufsize); /* * free_delta_index: free the index created by create_delta_index() + * + * Given pointer must be what create_delta_index() returned, or NULL. */ extern void free_delta_index(struct delta_index *index); +/* + * sizeof_delta_index: returns memory usage of delta index + * + * Given pointer must be what create_delta_index() returned, or NULL. + */ +extern unsigned long sizeof_delta_index(struct delta_index *index); + /* * create_delta: create a delta from given index for the given buffer *