summaryrefslogtreecommitdiff
path: root/lib/libevent/event.h
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-01-23 20:18:21 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-01-23 20:18:21 +0000
commitc6db55f30e62c11f27aa2b28558f522418c033a1 (patch)
treed45a8eb7b86bdd1a6bc153aee1d332d9fb076633 /lib/libevent/event.h
parentde4e4ee4d247b36840d0978c437808595bdc3c99 (diff)
add evbuffer_add_vprintf interface from artur grabowski
From libevent CVS ok markus@
Diffstat (limited to 'lib/libevent/event.h')
-rw-r--r--lib/libevent/event.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libevent/event.h b/lib/libevent/event.h
index 2b3332f9fc5..f20fd4ecb48 100644
--- a/lib/libevent/event.h
+++ b/lib/libevent/event.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: event.h,v 1.12 2005/06/18 01:52:22 brad Exp $ */
+/* $OpenBSD: event.h,v 1.13 2006/01/23 20:18:20 brad Exp $ */
/*
* Copyright (c) 2000-2004 Niels Provos <provos@citi.umich.edu>
@@ -33,6 +33,8 @@
extern "C" {
#endif
+#include <stdarg.h>
+
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@@ -261,7 +263,8 @@ int evbuffer_add(struct evbuffer *, void *, size_t);
int evbuffer_remove(struct evbuffer *, void *, size_t);
char *evbuffer_readline(struct evbuffer *);
int evbuffer_add_buffer(struct evbuffer *, struct evbuffer *);
-int evbuffer_add_printf(struct evbuffer *, char *fmt, ...);
+int evbuffer_add_printf(struct evbuffer *, const char *fmt, ...);
+int evbuffer_add_vprintf(struct evbuffer *, const char *fmt, va_list ap);
void evbuffer_drain(struct evbuffer *, size_t);
int evbuffer_write(struct evbuffer *, int);
int evbuffer_read(struct evbuffer *, int, int);