Make new http headers include minimal parts of event2/ tree; make old evhttp.h incldue event.h, since the old one did too.
svn:r798
#ifndef _EVHTTP_H_
#define _EVHTTP_H_
+#include <event.h>
#include <event2/http.h>
#include <event2/http_struct.h>
#include <event2/http_compat.h>
#include "evrpc.h"
#include "evrpc-internal.h"
#include "event2/http.h"
+#include "event2/buffer.h"
+#include "event2/tag.h"
#include "event2/http_struct.h"
#include "event2/http_compat.h"
#include "evutil.h"
extern "C" {
#endif
+#include <event2/event_struct.h>
+
/** @file evrpc.h
*
* This header files provides basic support for an RPC server and client.
* need to know about these.
*/
-#ifndef _HTTP_H_
-#define _HTTP_H_
+#ifndef _HTTP_INTERNAL_H_
+#define _HTTP_INTERNAL_H_
+
+#include "event2/event_struct.h"
#define HTTP_CONNECT_TIMEOUT 45
#define HTTP_WRITE_TIMEOUT 50
#undef timeout_initialized
#include "strlcpy-internal.h"
-#include "event2/event.h"
#include "event2/http.h"
+#include "event2/event.h"
+#include "event2/buffer.h"
+#include "event2/bufferevent.h"
#include "event2/http_struct.h"
#include "event2/http_compat.h"
-#include "evutil.h"
+#include "event2/util.h"
#include "log.h"
#include "http-internal.h"
#include "mm-internal.h"
#ifndef _EVENT2_HTTP_H_
#define _EVENT2_HTTP_H_
-#include <event2/http.h>
-#include <event2/http_struct.h>
-#include <event2/http_compat.h>
+/* For int types. */
+#include <event2/util.h>
#ifdef __cplusplus
extern "C" {
#undef WIN32_LEAN_AND_MEAN
#endif
-/* For int types. */
-#include <evutil.h>
+/* In case we haven't included the right headers yet. */
+struct evbuffer;
+struct event_base;
/** @file evhttp.h
*
#define HTTP_NOTMODIFIED 304 /**< page was not modified from last */
#define HTTP_BADREQUEST 400 /**< invalid http request was made */
#define HTTP_NOTFOUND 404 /**< could not find content for uri */
-#define HTTP_SERVUNAVAIL 503 /**< the server is not available */
+#define HTTP_SERVUNAVAIL 503 /**< the server is not available */
struct evhttp;
struct evhttp_request;