diff options
Diffstat (limited to 'server/db/sysdb_req.c')
-rw-r--r-- | server/db/sysdb_req.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/server/db/sysdb_req.c b/server/db/sysdb_req.c index fcbd17b8..161431cc 100644 --- a/server/db/sysdb_req.c +++ b/server/db/sysdb_req.c @@ -34,6 +34,17 @@ struct sysdb_req { bool transaction_active; }; +bool sysdb_req_check_running(struct sysdb_req *req) +{ + if (req->ctx->queue == req) return true; + return false; +} + +struct sysdb_ctx *sysdb_req_get_ctx(struct sysdb_req *req) +{ + return req->ctx; +} + static void sysdb_req_run(struct tevent_context *ev, struct tevent_timer *te, struct timeval tv, void *ptr) |