projects
/
apps
/
pfixtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Plug the postfix policy query parsing again.
[apps/pfixtools.git]
/
buffer.h
diff --git
a/buffer.h
b/buffer.h
index
d58ab17
..
c399259
100644
(file)
--- a/
buffer.h
+++ b/
buffer.h
@@
-1,5
+1,5
@@
/******************************************************************************/
/******************************************************************************/
-/* p
ostlicyd: a postfix policy daemon with a lot of features
*/
+/* p
fixtools: a collection of postfix related tools
*/
/* ~~~~~~~~~ */
/* ________________________________________________________________________ */
/* */
/* ~~~~~~~~~ */
/* ________________________________________________________________________ */
/* */
@@
-33,8
+33,8
@@
* Copyright © 2006-2007 Pierre Habouzit
*/
* Copyright © 2006-2007 Pierre Habouzit
*/
-#ifndef P
OSTLICYD
_BUFFER_H
-#define P
OSTLICYD
_BUFFER_H
+#ifndef P
FIXTOOLS
_BUFFER_H
+#define P
FIXTOOLS
_BUFFER_H
#include "mem.h"
#include "str.h"
#include "mem.h"
#include "str.h"
@@
-45,6
+45,8
@@
typedef struct buffer_t {
ssize_t size;
} buffer_t;
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);
DO_INIT(buffer_t, buffer);
static inline void buffer_wipe(buffer_t *buf) {
p_delete(&buf->data);
@@
-104,4
+106,4
@@
void buffer_consume(buffer_t *buf, ssize_t len);
ssize_t buffer_read(buffer_t *buf, int fd, ssize_t count);
ssize_t buffer_read(buffer_t *buf, int fd, ssize_t count);
-#endif /* P
OSTLICYD
_BUFFER_H */
+#endif /* P
FIXTOOLS
_BUFFER_H */