mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
r15549@tombo: nickm | 2008-05-08 11:53:11 -0400
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
This commit is contained in:
parent
a29f7eefac
commit
7defe4cbc1
1
evhttp.h
1
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>
|
||||
|
2
evrpc.c
2
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"
|
||||
|
2
evrpc.h
2
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.
|
||||
|
@ -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
|
||||
|
6
http.c
6
http.c
@ -88,11 +88,13 @@
|
||||
#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"
|
||||
|
@ -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
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user