diff options
author | Volker Lendecke <vl@samba.org> | 2011-06-19 20:55:46 +0200 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2011-06-20 12:33:24 +0200 |
commit | c2a826b10c403e1b4d7e6da1b41c89ed01d07f40 (patch) | |
tree | 0b4d34a6123044432982bd087c60f4b5608fb78b /lib/tevent/tevent.h | |
parent | 580fedc321d0a7a11454ad633736101050ef13df (diff) | |
download | samba-c2a826b10c403e1b4d7e6da1b41c89ed01d07f40.tar.gz samba-c2a826b10c403e1b4d7e6da1b41c89ed01d07f40.tar.bz2 samba-c2a826b10c403e1b4d7e6da1b41c89ed01d07f40.zip |
tevent: Add tevent_req_oom
This is a replacement for tevent_req_nomem(NULL, req)
Diffstat (limited to 'lib/tevent/tevent.h')
-rw-r--r-- | lib/tevent/tevent.h | 14 |
1 files changed, 14 insertions, 0 deletions
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. * |