summaryrefslogtreecommitdiff
path: root/lib/tevent/tevent_internal.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-01-05 17:36:50 +0100
committerStefan Metzmacher <metze@samba.org>2009-01-05 22:44:53 +0100
commitceac26008c6f36602259d0180f1e7f7a756ea4ad (patch)
tree31df7bfbfdf29dc922e481b1fe163fd4e4a21404 /lib/tevent/tevent_internal.h
parentb24924d6a6438b361fb903227bd56d2afe40d2f2 (diff)
downloadsamba-ceac26008c6f36602259d0180f1e7f7a756ea4ad.tar.gz
samba-ceac26008c6f36602259d0180f1e7f7a756ea4ad.tar.bz2
samba-ceac26008c6f36602259d0180f1e7f7a756ea4ad.zip
tevent: keep a linked list of fd_events
metze
Diffstat (limited to 'lib/tevent/tevent_internal.h')
-rw-r--r--lib/tevent/tevent_internal.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/tevent/tevent_internal.h b/lib/tevent/tevent_internal.h
index e090ee2bb1..f58bb90816 100644
--- a/lib/tevent/tevent_internal.h
+++ b/lib/tevent/tevent_internal.h
@@ -130,6 +130,9 @@ struct tevent_context {
/* the specific events implementation */
const struct tevent_ops *ops;
+ /* list of fd events - used by common code */
+ struct tevent_fd *fd_events;
+
/* list of timed events - used by common code */
struct tevent_timer *timer_events;
@@ -149,6 +152,15 @@ struct tevent_context {
bool tevent_register_backend(const char *name, const struct tevent_ops *ops);
+int tevent_common_fd_destructor(struct tevent_fd *fde);
+struct tevent_fd *tevent_common_add_fd(struct tevent_context *ev,
+ TALLOC_CTX *mem_ctx,
+ int fd,
+ uint16_t flags,
+ tevent_fd_handler_t handler,
+ void *private_data,
+ const char *handler_name,
+ const char *location);
void tevent_common_fd_set_close_fn(struct tevent_fd *fde,
tevent_fd_close_fn_t close_fn);
uint16_t tevent_common_fd_get_flags(struct tevent_fd *fde);