From 193eba85a9a6eff7c314f6afaaeff6bf3cff1399 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 3 Jan 2009 12:39:11 +0100 Subject: tevent: add tevent_fd_set_auto_close() tevent_fd_set_auto_close() is a simple wrapper arround tevent_fd_set_close_fn() with a callback that uses plain close(2). metze --- lib/tevent/tevent.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/tevent/tevent.h') diff --git a/lib/tevent/tevent.h b/lib/tevent/tevent.h index 9d3b8aa39e..b02c7854bc 100644 --- a/lib/tevent/tevent.h +++ b/lib/tevent/tevent.h @@ -113,6 +113,7 @@ int tevent_loop_wait(struct tevent_context *ev); void tevent_fd_set_close_fn(struct tevent_fd *fde, tevent_fd_close_fn_t close_fn); +void tevent_fd_set_auto_close(struct tevent_fd *fde); uint16_t tevent_fd_get_flags(struct tevent_fd *fde); void tevent_fd_set_flags(struct tevent_fd *fde, uint16_t flags); -- cgit