]> granicus.if.org Git - libevent/commitdiff
r15549@tombo: nickm | 2008-05-08 11:53:11 -0400
authorNick Mathewson <nickm@torproject.org>
Thu, 8 May 2008 15:55:09 +0000 (15:55 +0000)
committerNick Mathewson <nickm@torproject.org>
Thu, 8 May 2008 15:55:09 +0000 (15:55 +0000)
 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

evhttp.h
evrpc.c
evrpc.h
http-internal.h
http.c
include/event2/http.h

index 60151cbd1a6ad2cd308e1a0040c24cc085ff20e9..dee49fea43040927500eba61672e168c38e8606f 100644 (file)
--- a/evhttp.h
+++ b/evhttp.h
@@ -27,6 +27,7 @@
 #ifndef _EVHTTP_H_
 #define _EVHTTP_H_
 
+#include <event.h>
 #include <event2/http.h>
 #include <event2/http_struct.h>
 #include <event2/http_compat.h>
diff --git a/evrpc.c b/evrpc.c
index be5c2fe728bafdc7eb95f5f220f80e0e44522002..e82c1bb4cd878ee953b22f171c0c9ac39beafd54 100644 (file)
--- a/evrpc.c
+++ b/evrpc.c
@@ -58,6 +58,8 @@
 #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"
diff --git a/evrpc.h b/evrpc.h
index b3f81769a1cd504156eb3169c6b102ac77990c24..96a658da4e1c4c01b1ce27c0cb6b7bcdb7dcf66d 100644 (file)
--- a/evrpc.h
+++ b/evrpc.h
@@ -31,6 +31,8 @@
 extern "C" {
 #endif
 
+#include <event2/event_struct.h>
+
 /** @file evrpc.h
  *
  * This header files provides basic support for an RPC server and client.
index 272a2a1c81322b4446ae74163b038d8ee3a2d2f4..1ce58f84bff2e2387b1144b0f0243eeb5b676b80 100644 (file)
@@ -7,8 +7,10 @@
  * 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
diff --git a/http.c b/http.c
index 4ef750a42d5c0bec9821fd6905fe524f36dfea9c..f5d6169b8f5637db8dbc5ff647727e9ce6ad47c3 100644 (file)
--- a/http.c
+++ b/http.c
 #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"
index 33d4b7c2b87d96acb9ddd225d709d497ce116de8..ad089b83e9dd2f12c7271124dbf8e17ae3c14af0 100644 (file)
@@ -27,9 +27,8 @@
 #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" {
@@ -42,8 +41,9 @@ 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
  *
@@ -64,7 +64,7 @@ extern "C" {
 #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;