libevent
2.2.1
Event notification library
|
Go to the documentation of this file.
27 #ifndef EVENT2_BUFFER_COMPAT_H_INCLUDED_
28 #define EVENT2_BUFFER_COMPAT_H_INCLUDED_
30 #include <event2/visibility.h>
111 #define EVBUFFER_LENGTH(x) evbuffer_get_length(x)
113 #define EVBUFFER_DATA(x) evbuffer_pullup((x), -1)
EVENT2_EXPORT_SYMBOL unsigned char * evbuffer_find(struct evbuffer *buffer, const unsigned char *what, size_t len)
Find a string within an evbuffer.
void(* evbuffer_cb)(struct evbuffer *buffer, size_t old_len, size_t new_len, void *arg)
Type definition for a callback that is invoked whenever data is added or removed from an evbuffer.
Definition: buffer_compat.h:73
EVENT2_EXPORT_SYMBOL int evbuffer_setcb(struct evbuffer *buffer, evbuffer_cb cb, void *cbarg)
Replace all callbacks on an evbuffer with a single new callback, or remove them.
EVENT2_EXPORT_SYMBOL char * evbuffer_readline(struct evbuffer *buffer)
Obsolete alias for evbuffer_readln(buffer, NULL, EVBUFFER_EOL_ANY).
An evbuffer is an opaque data type for efficiently buffering data to be sent or received on the netwo...
Definition: buffer.h:97