00001 00002 #ifndef _EVENT2_BUFFER_COMPAT_H_ 00003 #define _EVENT2_BUFFER_COMPAT_H_ 00004 00023 char *evbuffer_readline(struct evbuffer *buffer); 00024 00045 typedef void (*evbuffer_cb)(struct evbuffer *buffer, size_t old_len, size_t new_len, void *arg); 00046 00066 void evbuffer_setcb(struct evbuffer *buffer, evbuffer_cb cb, void *cbarg); 00067 00068 00077 unsigned char *evbuffer_find(struct evbuffer *buffer, const unsigned char *what, size_t len); 00078 00080 #define EVBUFFER_LENGTH(x) evbuffer_get_length(x) 00081 00082 #define EVBUFFER_DATA(x) evbuffer_pullup(x, -1) 00083 00084 #endif 00085