diff options
author | yangacer <yangacer@nuweb-test001.(none)> | 2012-11-06 17:37:28 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-11-06 17:42:54 -0500 |
commit | e9f8febace7a39468980a7c09b2b87cf802f1892 (patch) | |
tree | 59ed20f79ae6689a7b387c339103528f27849949 /evbuffer-internal.h | |
parent | f9182d7249562a2aa547135d2f15ffe3e03c77fa (diff) | |
download | libevent-e9f8febace7a39468980a7c09b2b87cf802f1892.tar.gz |
Add a new callback to get called on evbuffer_file_segment free
Diffstat (limited to 'evbuffer-internal.h')
-rw-r--r-- | evbuffer-internal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/evbuffer-internal.h b/evbuffer-internal.h index 5967b8e5..91124338 100644 --- a/evbuffer-internal.h +++ b/evbuffer-internal.h @@ -247,6 +247,10 @@ struct evbuffer_file_segment { ev_off_t mmap_offset; /** The length of this segment. */ ev_off_t length; + /** Cleanup callback function */ + evbuffer_file_segment_cleanup_cb cleanup_cb; + /** Argument to be pass to cleanup callback function */ + void *cleanup_cb_arg; }; /** Information about the multicast parent of a chain. Lives at the |