mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-09 12:28:19 -04:00
make it compile on mac os x
svn:r202
This commit is contained in:
parent
896bf3a260
commit
88bd79439d
27
event.h
27
event.h
@ -103,11 +103,25 @@ struct event {
|
|||||||
#define EVENT_SIGNAL(ev) (int)ev->ev_fd
|
#define EVENT_SIGNAL(ev) (int)ev->ev_fd
|
||||||
#define EVENT_FD(ev) (int)ev->ev_fd
|
#define EVENT_FD(ev) (int)ev->ev_fd
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Key-Value pairs. Can be used for HTTP headers but also for
|
||||||
|
* query argument parsing.
|
||||||
|
*/
|
||||||
|
struct evkeyval {
|
||||||
|
TAILQ_ENTRY(evkeyval) next;
|
||||||
|
|
||||||
|
char *key;
|
||||||
|
char *value;
|
||||||
|
};
|
||||||
|
|
||||||
#ifdef _EVENT_DEFINED_TQENTRY
|
#ifdef _EVENT_DEFINED_TQENTRY
|
||||||
#undef TAILQ_ENTRY
|
#undef TAILQ_ENTRY
|
||||||
|
struct event_list;
|
||||||
|
struct evkeyvalq;
|
||||||
#undef _EVENT_DEFINED_TQENTRY
|
#undef _EVENT_DEFINED_TQENTRY
|
||||||
#else
|
#else
|
||||||
TAILQ_HEAD (event_list, event);
|
TAILQ_HEAD (event_list, event);
|
||||||
|
TAILQ_HEAD (evkeyvalq, evkeyval);
|
||||||
#endif /* _EVENT_DEFINED_TQENTRY */
|
#endif /* _EVENT_DEFINED_TQENTRY */
|
||||||
#ifdef _EVENT_DEFINED_RBENTRY
|
#ifdef _EVENT_DEFINED_RBENTRY
|
||||||
#undef RB_ENTRY
|
#undef RB_ENTRY
|
||||||
@ -365,19 +379,6 @@ void evhttp_request_free(struct evhttp_request *req);
|
|||||||
|
|
||||||
/* Interfaces for dealing with HTTP headers */
|
/* Interfaces for dealing with HTTP headers */
|
||||||
|
|
||||||
/*
|
|
||||||
* Key-Value pairs. Can be used for HTTP headers but also for
|
|
||||||
* query argument parsing.
|
|
||||||
*/
|
|
||||||
struct evkeyval {
|
|
||||||
TAILQ_ENTRY(evkeyval) next;
|
|
||||||
|
|
||||||
char *key;
|
|
||||||
char *value;
|
|
||||||
};
|
|
||||||
|
|
||||||
TAILQ_HEAD(evkeyvalq, evkeyval);
|
|
||||||
|
|
||||||
char *evhttp_find_header(struct evkeyvalq *, const char *);
|
char *evhttp_find_header(struct evkeyvalq *, const char *);
|
||||||
void evhttp_remove_header(struct evkeyvalq *, const char *);
|
void evhttp_remove_header(struct evkeyvalq *, const char *);
|
||||||
int evhttp_add_header(struct evkeyvalq *, const char *, const char *);
|
int evhttp_add_header(struct evkeyvalq *, const char *, const char *);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user