summaryrefslogtreecommitdiffstats
path: root/lib/tevent/tevent.h
Commit message (Collapse)AuthorAgeFilesLines
* tevent: store the location where a request was finishedStefan Metzmacher2009-04-151-7/+16
| | | | | | | | | | | This is very useful to find bugs. You can use 'p *req' in gdb to show where tevent_req_done(), tevent_req_error() or tevent_req_nomem() was called. metze (cherry picked from commit 9eaf53d98eced9ea70f411b9936b475c42e4d490) (cherry picked from commit 8053941b377d3fd2e58e67f68eecb2551be49c10)
* tevent: use an immediate event as trigger for tevent_queueStefan Metzmacher2009-04-151-2/+1
| | | | | | metze (cherry picked from commit 3a831e46204979550dc6ee7652cea6b8296f10c1) (cherry picked from commit 7fcb16a79681a24ca3b96ec73bc44b43e57c3c8f)
* tevent: add support for immediate eventsStefan Metzmacher2009-04-151-0/+19
| | | | | | | | | | They're like directly triggered timed events, but you can preallocated them and scheduling them will not fail. metze (cherry picked from commit 66886f8966dff8a980a5b9d2daa3fbb20fe5ca8e) (cherry picked from commit de7125980d237e9a8aa126f155bbc84c96bad37e)
* tevent: add tevent_loop_until()Stefan Metzmacher2009-03-121-0/+6
| | | | | | | This is only a hack for samba4 and should not be used in new code. metze
* tevent: add tevent_loop_set_nesting_hook()Stefan Metzmacher2009-03-121-0/+9
| | | | | | | This is an ugly hack to let the s4 server work arround some bugs related to nested events and uid changing. metze
* tevent: don't allow nested tevent_loop_once() anymoreStefan Metzmacher2009-03-121-0/+11
| | | | | | | Incompatible caller should use tevent_loop_allow_nesting() function. metze
* tevent: pass __location__ to tevent_loop_once/wait()Stefan Metzmacher2009-03-121-2/+7
| | | | metze
* tevent: add tevent_set_abort_fn()Stefan Metzmacher2009-03-121-0/+2
| | | | metze
* tevent: add tevent_signal_support()Stefan Metzmacher2009-03-121-0/+2
| | | | | | Not every tevent backend supports signal events. metze
* tevent: add tevent_req_callback_data_void() macroStefan Metzmacher2009-03-101-0/+2
| | | | | | | Callers can use it instead of tevent_req_callback_data() if they use a non talloc private pointer. metze
* tevent: add tevent_req_received() functionStefan Metzmacher2009-03-101-1/+7
| | | | | | | This function can be called as last action of a _recv() function, it destroys the data attached to the tevent_req. metze
* Make struct tevent_req opaqueSimo Sorce2009-03-021-89/+13
| | | | | | | | | | | | | | | | Move struct tevent_req in tevent_internal, and ad getters and setters for private data and the callback function. This patch also renames 'private_state' into 'data'. What is held in this pointer is in fact data and not a state like enum tevent_req_state. Calling it 'state' is confusing. The functions addedd are: tevent_req_set_callback() - sets req->async.fn and req->async.private_data tevent_req_set_print_fn() - sets req->private_print tevent_req_callback_data() - gets req->async.private_data tevent_req_data() - gets rea->data This way it is much simpler to keep API/ABI compatibility in the future.
* tevent: add tevent_queue infrastructureStefan Metzmacher2009-02-261-0/+22
| | | | metze
* tevent: add private_print function feature to tevent_reqStefan Metzmacher2009-02-251-0/+11
| | | | metze
* tevent: add tevent_req_poll() functionStefan Metzmacher2009-02-251-0/+3
| | | | metze
* Attempt to fix the OpenChange build -- sorry for the breakVolker Lendecke2009-02-251-1/+1
|
* tevent.h requires bool and uint[16|32|64]_tVolker Lendecke2009-02-241-0/+1
|
* tevent: add tevent_wakeup_send/recv()Stefan Metzmacher2009-02-181-0/+4
| | | | | | This can be used as tevent_req based timer event. metze
* tevent: rename tevent_req_set_timeout() => tevent_req_set_endtime()Stefan Metzmacher2009-02-181-1/+1
| | | | | | This makes more clear what the function does. metze
* tevent: Rename ev_timeval* functions to tevent_timeval, export them.Kai Blin2009-02-171-0/+19
| | | | | Also add tevent_timeval_add() and tevent_timeval_current_ofs() to help not depending on lub/util/time.c for things that just need tevent
* lib/tevent: change to LGPLv3+Stefan Metzmacher2009-02-161-12/+16
| | | | metze
* Add missing prototype for "tevent_req_print"Volker Lendecke2009-02-141-0/+2
|
* lib/tevent: add tevent_req infrastructureStefan Metzmacher2009-02-131-0/+163
| | | | | | | This is almost a copy of the async_req code, which will be removed later. metze
* lib/tevent: remove broken tevent_aio supportStefan Metzmacher2009-02-131-22/+0
| | | | | | | | | | | | It makes no sense to support aio events because, the current implementation was based on IOCB_CMD_EPOLL_WAIT which never made it into the main kernel tree. The native linux aio can be used with select/epoll using eventfd(), which means we can implement aio with fd events and implement aio outside of tevent. metze
* Attempt to fix the build on netbsd5Volker Lendecke2009-01-051-0/+1
|
* tevent: fix tevent_add_timer() and tevent_add_aio() macrosStefan Metzmacher2009-01-051-2/+2
| | | | metze
* tevent: remove TEVENT_FD_AUTOCLOSE featureStefan Metzmacher2009-01-031-2/+0
| | | | | | | TEVENT_FD_AUTOCLOSE adds a dependency to SOCKET_WRAPPER, which is bad. Callers should use tevent_fd_set_close_fn() now. metze
* tevent: add tevent_fd_set_auto_close()Stefan Metzmacher2009-01-031-0/+1
| | | | | | | | tevent_fd_set_auto_close() is a simple wrapper arround tevent_fd_set_close_fn() with a callback that uses plain close(2). metze
* tevent: add tevent_fd_set_close_fn()Stefan Metzmacher2009-01-031-0/+6
| | | | | | | Let callers specify a close function as an alternative to TEVENT_FD_AUTOCLOSE. metze
* tevent: specify argument names for the event handlersStefan Metzmacher2009-01-031-12/+18
| | | | metze
* tevent: only provide compat macros if the caller wants themStefan Metzmacher2009-01-021-5/+0
| | | | metze
* tevent: rename ev_debug_ops => tevent_debug_opsStefan Metzmacher2009-01-021-0/+28
| | | | | | And related changes, but we keep compat macros metze
* tevent: make tevent_add_*() macros arround _tevent_add_*()Stefan Metzmacher2009-01-021-22/+44
| | | | | | | This passes some additional debug information into the events system to make it easier to find bugs. metze
* s4:lib/tevent: rename structsStefan Metzmacher2008-12-291-7/+4
| | | | | | | | | | | | | | | | | | | | list="" list="$list event_context:tevent_context" list="$list fd_event:tevent_fd" list="$list timed_event:tevent_timer" for s in $list; do o=`echo $s | cut -d ':' -f1` n=`echo $s | cut -d ':' -f2` r=`git grep "struct $o" |cut -d ':' -f1 |sort -u` files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4` for f in $files; do cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp mv $f.tmp $f done done metze
* lib/tevent: rename event_* => tevent_* in the header fileStefan Metzmacher2008-12-291-49/+127
| | | | | | We have compat macros to keep the callers happy. metze
* s4:lib/tevent: add lib/events/ compat and let things compileStefan Metzmacher2008-12-171-3/+3
| | | | metze
* s4:lib/events: move to toplevel directory as lib/tevent/Stefan Metzmacher2008-12-171-0/+98
This commit will not compile on its own. metze