diff options
Diffstat (limited to 'server/db/sysdb.h')
-rw-r--r-- | server/db/sysdb.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/server/db/sysdb.h b/server/db/sysdb.h index df2a946e6..ac19dcc62 100644 --- a/server/db/sysdb.h +++ b/server/db/sysdb.h @@ -489,30 +489,4 @@ struct tevent_req *sysdb_cache_password_send(TALLOC_CTX *mem_ctx, const char *password); int sysdb_cache_password_recv(struct tevent_req *req); -/* TODO: remove later - * These functions are available in the latest tevent and are the ones that - * should be used as tevent_req is rightfully opaque there */ -#ifndef tevent_req_data -#define tevent_req_data(req, type) ((type *)req->private_state) -#endif - -#ifndef tevent_req_set_callback -#define tevent_req_set_callback(req, func, data) \ - do { req->async.fn = func; req->async.private_data = data; } while(0) -#endif - -#ifndef tevent_req_callback_data -#define tevent_req_callback_data(req, type) ((type *)req->async.private_data) -#endif - -#ifndef tevent_req_notify_callback -#define tevent_req_notify_callback(req) \ - do { \ - if (req->async.fn != NULL) { \ - req->async.fn(req); \ - } \ - } while(0) -#endif - - #endif /* __SYS_DB_H__ */ |