summaryrefslogtreecommitdiff
path: root/lib/tevent
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-01-03 10:42:10 +0100
committerStefan Metzmacher <metze@samba.org>2009-01-03 19:58:49 +0100
commit1a26b67ee395ab49eb57a3773ec889f4ebbccb08 (patch)
treebf2a85574aeca132f56e24f89ef0c40eba2b39fa /lib/tevent
parent7dff14df46d38092d3fc7a9436a6412d54314d41 (diff)
downloadsamba-1a26b67ee395ab49eb57a3773ec889f4ebbccb08.tar.gz
samba-1a26b67ee395ab49eb57a3773ec889f4ebbccb08.tar.bz2
samba-1a26b67ee395ab49eb57a3773ec889f4ebbccb08.zip
tevent: specify argument names for the event handlers
metze
Diffstat (limited to 'lib/tevent')
-rw-r--r--lib/tevent/tevent.h30
1 files changed, 18 insertions, 12 deletions
diff --git a/lib/tevent/tevent.h b/lib/tevent/tevent.h
index 01e79df208..3a1b6057fb 100644
--- a/lib/tevent/tevent.h
+++ b/lib/tevent/tevent.h
@@ -33,18 +33,24 @@ struct tevent_aio;
struct tevent_signal;
/* event handler types */
-typedef void (*tevent_fd_handler_t)(struct tevent_context *,
- struct tevent_fd *,
- uint16_t , void *);
-typedef void (*tevent_timer_handler_t)(struct tevent_context *,
- struct tevent_timer *,
- struct timeval , void *);
-typedef void (*tevent_signal_handler_t)(struct tevent_context *,
- struct tevent_signal *,
- int , int, void *, void *);
-typedef void (*tevent_aio_handler_t)(struct tevent_context *,
- struct tevent_aio *,
- int, void *);
+typedef void (*tevent_fd_handler_t)(struct tevent_context *ev,
+ struct tevent_fd *fde,
+ uint16_t flags,
+ void *private_data);
+typedef void (*tevent_timer_handler_t)(struct tevent_context *ev,
+ struct tevent_timer *te,
+ struct timeval current_time,
+ void *private_data);
+typedef void (*tevent_signal_handler_t)(struct tevent_context *ev,
+ struct tevent_signal *se,
+ int signum,
+ int count,
+ void *siginfo,
+ void *private_data);
+typedef void (*tevent_aio_handler_t)(struct tevent_context *ev,
+ struct tevent_aio *ae,
+ int ret,
+ void *private_data);
struct tevent_context *tevent_context_init(TALLOC_CTX *mem_ctx);
struct tevent_context *tevent_context_init_byname(TALLOC_CTX *mem_ctx, const char *name);