minor updates.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
* Copyright © 2006 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"
void buffer_consume(buffer_t *buf, ssize_t len);
-#endif /* MUTT_LIB_LIB_BUFFER_H */
+#endif /* POSTLICYD_BUFFER_H */
* Copyright © 2006 Pierre Habouzit
*/
-#ifndef MUTT_LIB_LIB_MEM_H
-#define MUTT_LIB_LIB_MEM_H
+#ifndef POSTLICYD_MEM_H
+#define POSTLICYD_MEM_H
#include <assert.h>
#include <ctype.h>
} \
}
-#endif /* MUTT_LIB_LIB_MEM_H */
+#endif /* POSTLICYD_MEM_H */
policy_request *pcyrq_init(policy_request *rq)
{
p_clear(rq, 1);
- buffer_init(&rq->buf);
+ buffer_init(&rq->ibuf);
+ buffer_init(&rq->obuf);
return rq;
}
void policy_wipe(policy_request *rq)
{
- buffer_wipe(&rq->buf);
+ buffer_wipe(&rq->ibuf);
+ buffer_wipe(&rq->obuf);
}
const char *encryption_keysize;
const char *etrn_domain;
- buffer_t buf;
+ ssize_t rqsize;
+ buffer_t ibuf;
+ buffer_t obuf;
} policy_request;
policy_request *pcyrq_init(policy_request *rq);
void pcyrq_wipe(policy_request *rq);
-
DO_NEW(policy_request, pcyrq);
DO_DELETE(policy_request, pcyrq);
* Copyright © 2006 Pierre Habouzit
*/
-#ifndef MUTT_LIB_LIB_STR_H
-#define MUTT_LIB_LIB_STR_H
+#ifndef POSTLICYD_STR_H
+#define POSTLICYD_STR_H
#include "mem.h"
}
/*@}*/
-#endif /* MUTT_LIB_LIB_STR_H */
+#endif /* POSTLICYD_STR_H */