From 8aab926c2804230b633e0eb29655f4e32226aa4f Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 9 May 2011 07:13:00 +0200 Subject: tevent: Fix a typo Autobuild-User: Volker Lendecke Autobuild-Date: Mon May 9 08:17:08 CEST 2011 on sn-devel-104 --- lib/tevent/tevent.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/tevent/tevent.h') diff --git a/lib/tevent/tevent.h b/lib/tevent/tevent.h index 665c491ebb..f4eb60c560 100644 --- a/lib/tevent/tevent.h +++ b/lib/tevent/tevent.h @@ -136,7 +136,7 @@ struct tevent_context *tevent_context_init_byname(TALLOC_CTX *mem_ctx, const cha const char **tevent_backend_list(TALLOC_CTX *mem_ctx); /** - * @brief Set the default tevent backent. + * @brief Set the default tevent backend. * * @param[in] backend The name of the backend to set. */ -- cgit From e340cd83f87a9ea02cacd9af520d154652c5afb1 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 1 Jun 2011 12:20:11 +0930 Subject: lib/tevent/tevent.h: minor documentation fix. The usecs arguments are (of course) microseconds, not milliseconds. This was added by Andreas Schneider in 6c1bcdc2 (tevent: Document the tevent helper functions.). Signed-off-by: Rusty Russell Autobuild-User: Rusty Russell Autobuild-Date: Wed Jun 1 11:47:38 CEST 2011 on sn-devel-104 --- lib/tevent/tevent.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/tevent/tevent.h') diff --git a/lib/tevent/tevent.h b/lib/tevent/tevent.h index f4eb60c560..38a4a9c503 100644 --- a/lib/tevent/tevent.h +++ b/lib/tevent/tevent.h @@ -1218,7 +1218,7 @@ struct timeval tevent_timeval_current(void); * * @param[in] secs The seconds to set. * - * @param[in] usecs The milliseconds to set. + * @param[in] usecs The microseconds to set. * * @return A timeval structure with the given values. */ @@ -1253,7 +1253,7 @@ bool tevent_timeval_is_zero(const struct timeval *tv); * * @param[in] secs The seconds to add to the timeval. * - * @param[in] usecs The milliseconds to add to the timeval. + * @param[in] usecs The microseconds to add to the timeval. * * @return The timeval structure with the new time. */ @@ -1265,7 +1265,7 @@ struct timeval tevent_timeval_add(const struct timeval *tv, uint32_t secs, * * @param[in] secs The seconds of the offset from now. * - * @param[in] usecs The milliseconds of the offset from now. + * @param[in] usecs The microseconds of the offset from now. * * @return A timval with the given offset in the future. */ -- cgit From c2a826b10c403e1b4d7e6da1b41c89ed01d07f40 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 19 Jun 2011 20:55:46 +0200 Subject: tevent: Add tevent_req_oom This is a replacement for tevent_req_nomem(NULL, req) --- lib/tevent/tevent.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'lib/tevent/tevent.h') diff --git a/lib/tevent/tevent.h b/lib/tevent/tevent.h index 38a4a9c503..8204a28fbe 100644 --- a/lib/tevent/tevent.h +++ b/lib/tevent/tevent.h @@ -995,6 +995,20 @@ bool _tevent_req_nomem(const void *p, _tevent_req_nomem(p, req, __location__) #endif +#ifdef DOXYGEN +/** + * @brief Indicate out of memory to a request + * + * @param[in] req The request being processed. + */ +void tevent_req_oom(struct tevent_req *req); +#else +void _tevent_req_oom(struct tevent_req *req, + const char *location); +#define tevent_req_oom(req) \ + _tevent_req_oom(req, __location__) +#endif + /** * @brief Finish a request before the caller had the change to set the callback. * -- cgit