11 #ifndef MCHECKSUM_PRIVATE_H
12 #define MCHECKSUM_PRIVATE_H
17 #if defined(__cplusplus)
18 #define MCHECKSUM_UNUSED
19 #elif defined(__GNUC__) && (__GNUC__ >= 4)
20 #define MCHECKSUM_UNUSED __attribute__((unused))
22 #define MCHECKSUM_UNUSED
34 void *buf,
size_t size,
int finalize);
36 const void *
data,
size_t size);
int(* destroy)(struct mchecksum_class *checksum_class)
int(* update)(struct mchecksum_class *checksum_class, const void *data, size_t size)
int(* reset)(struct mchecksum_class *checksum_class)
size_t(* get_size)(struct mchecksum_class *checksum_class)