Reimplementation of Pijul in C, for education, fun and absolutely no profit
#ifndef ANI_CHANGEFILE_H
#define ANI_CHANGEFILE_H

struct mbuf {
	size len;
	u8 *buf;
};

/**
 * Populate a changefile from a file descriptor - returns a negative
 * number to indicate some kind of failure.
 */
int mkmbuf(int fd, struct mbuf *);

/**
 * Free an mbuf
 */
void freembuf(struct mbuf *b);

#endif