summaryrefslogtreecommitdiff
path: root/lib/tevent/tevent_req.c
AgeCommit message (Collapse)AuthorFilesLines
2009-08-17tevent: add tevent_req_cancel() infrastructureStefan Metzmacher1-0/+43
This offers a generic way for callers to cancel an async request. metze
2009-08-15tevent: add some more doxygen comments for tevent_req functionsStefan Metzmacher1-0/+38
metze
2009-07-14Change to talloc_zero_size instead of extra memset.Jeremy Allison1-2/+1
Jeremy.
2009-07-14When tallocing a memory block for the state in a tevent_req struct,Jeremy Allison1-0/+1
ensure it's zeroed out. Vl & Metze please check. Jeremy.
2009-06-04Add tevent_req_notify_callbackVolker Lendecke1-4/+9
This is necessary for requests that have multiple results. Examples would be SMBEcho and ldap_search.
2009-05-07tevent: fix typo async_req_done() => tevent_req_done()Stefan Metzmacher1-1/+1
metze
2009-03-17tevent: store the location where a request was finishedStefan Metzmacher1-11/+21
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
2009-03-17tevent: use an immediate event fot tevent_req_post()Stefan Metzmacher1-17/+11
Now tevent_req_post() never fails metze
2009-03-17tevent: use TALLOC_FREE() in tevent_req.cStefan Metzmacher1-9/+5
metze
2009-03-10tevent: add tevent_req_received() functionStefan Metzmacher1-0/+21
This function can be called as last action of a _recv() function, it destroys the data attached to the tevent_req. metze
2009-03-02Make struct tevent_req opaqueSimo Sorce1-11/+31
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.
2009-02-25tevent: add private_print function feature to tevent_reqStefan Metzmacher1-3/+24
metze
2009-02-25tevent: add tevent_req_poll() functionStefan Metzmacher1-0/+15
metze
2009-02-18tevent: rename tevent_req_set_timeout() => tevent_req_set_endtime()Stefan Metzmacher1-1/+1
This makes more clear what the function does. metze
2009-02-17tevent: Rename ev_timeval* functions to tevent_timeval, export them.Kai Blin1-1/+1
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
2009-02-16lib/tevent: change to LGPLv3+Stefan Metzmacher1-9/+13
metze
2009-02-13lib/tevent: add tevent_req infrastructureStefan Metzmacher1-200/+138
This is almost a copy of the async_req code, which will be removed later. metze
2009-02-13lib/tevent: add tevent_req.c as copy of lib/async_req/async_req.cStefan Metzmacher1-0/+338
metze