summaryrefslogtreecommitdiffstats
path: root/server/providers
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2009-08-03 16:35:17 +0200
committerStephen Gallagher <sgallagh@redhat.com>2009-08-05 10:18:33 -0400
commit93becde0ff15d0a0b01ec477e9dfe641dd9569ea (patch)
tree964eb40e1030e9efcf7664c9148ea3e568c61bca /server/providers
parent4a2370f8450dafefc11f890c799660a7b99da3e7 (diff)
downloadsssd-93becde0ff15d0a0b01ec477e9dfe641dd9569ea.tar.gz
sssd-93becde0ff15d0a0b01ec477e9dfe641dd9569ea.tar.xz
sssd-93becde0ff15d0a0b01ec477e9dfe641dd9569ea.zip
Consolidate tevent helpers
Diffstat (limited to 'server/providers')
-rw-r--r--server/providers/krb5/krb5_auth.c16
-rw-r--r--server/providers/ldap/sdap_async.h17
2 files changed, 0 insertions, 33 deletions
diff --git a/server/providers/krb5/krb5_auth.c b/server/providers/krb5/krb5_auth.c
index c2bf83ff1..24250b9ff 100644
--- a/server/providers/krb5/krb5_auth.c
+++ b/server/providers/krb5/krb5_auth.c
@@ -165,22 +165,6 @@ failed:
return kerr;
}
-/* 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
-
static void wait_for_child_handler(struct tevent_context *ev,
struct tevent_signal *sige, int signum,
int count, void *__siginfo, void *pvt)
diff --git a/server/providers/ldap/sdap_async.h b/server/providers/ldap/sdap_async.h
index 4012729ce..1cf00d476 100644
--- a/server/providers/ldap/sdap_async.h
+++ b/server/providers/ldap/sdap_async.h
@@ -24,23 +24,6 @@
#include "providers/dp_backend.h"
#include "providers/ldap/sdap.h"
-/* 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
-
-
struct tevent_req *sdap_connect_send(TALLOC_CTX *memctx,
struct tevent_context *ev,
struct sdap_options *opts,