/******************************************************************************/
-/* postlicyd: a postfix policy daemon with a lot of features */
+/* pfixtools: a collection of postfix related tools */
/* ~~~~~~~~~ */
/* ________________________________________________________________________ */
/* */
/******************************************************************************/
/*
- * Copyright © 2006 Pierre Habouzit
+ * Copyright © 2006-2007 Pierre Habouzit
*/
-#ifndef MUTT_LIB_LIB_BUFFER_H
-#define MUTT_LIB_LIB_BUFFER_H
+#ifndef POSTLICYD_BUFFER_H
+#define POSTLICYD_BUFFER_H
#include "mem.h"
#include "str.h"
ssize_t size;
} buffer_t;
+#define BUFFER_INIT {NULL, 0, 0}
+
DO_INIT(buffer_t, buffer);
static inline void buffer_wipe(buffer_t *buf) {
p_delete(&buf->data);
void buffer_consume(buffer_t *buf, ssize_t len);
-#endif /* MUTT_LIB_LIB_BUFFER_H */
+ssize_t buffer_read(buffer_t *buf, int fd, ssize_t count);
+
+#endif /* POSTLICYD_BUFFER_H */