summaryrefslogtreecommitdiffstats
path: root/server/providers/dp_backend.h
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2009-03-18 12:19:23 -0400
committerStephen Gallagher <sgallagh@redhat.com>2009-03-20 10:59:12 -0400
commit76c4a8cfaf29778423ac28d1088ca4e0a20e8b91 (patch)
tree35e1f2e785f32f46b496b00b6b4a4c7a71106bf8 /server/providers/dp_backend.h
parent907fd320aa244809ac4d8b831699b2c3d862ce11 (diff)
downloadsssd-76c4a8cfaf29778423ac28d1088ca4e0a20e8b91.tar.gz
sssd-76c4a8cfaf29778423ac28d1088ca4e0a20e8b91.tar.xz
sssd-76c4a8cfaf29778423ac28d1088ca4e0a20e8b91.zip
Enable autoreconnection of Data Provider Backends to the Data Provider
Diffstat (limited to 'server/providers/dp_backend.h')
-rw-r--r--server/providers/dp_backend.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/server/providers/dp_backend.h b/server/providers/dp_backend.h
index 4dd2ee476..12cfb3a51 100644
--- a/server/providers/dp_backend.h
+++ b/server/providers/dp_backend.h
@@ -26,6 +26,10 @@
#include "db/sysdb.h"
#include "responder/pam/pamsrv.h"
+struct be_ctx;
+
+typedef void (*be_shutdown_fn)(void *);
+
struct be_mod_ops;
struct be_ctx {
@@ -40,6 +44,7 @@ struct be_ctx {
const char *conf_path;
struct be_mod_ops *ops;
void *pvt_data;
+ be_shutdown_fn shutdown;
};
struct be_req;
@@ -65,12 +70,19 @@ struct be_online_req {
int online;
};
+struct be_pam_handler {
+ int pam_status;
+ const char *domain;
+ struct pam_data *pd;
+};
+
typedef void (*be_req_fn_t)(struct be_req *);
struct be_mod_ops {
be_req_fn_t check_online;
be_req_fn_t get_account_info;
be_req_fn_t pam_handler;
+ be_req_fn_t finalize;
};
#endif /* __DP_BACKEND_H___ */