summaryrefslogtreecommitdiffstats
path: root/src/providers/dp_backend.h
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-05-14 10:57:19 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-05-18 13:06:43 -0400
commitc4c4fbee11e865053cfa4c03f4869458f78c9e32 (patch)
treed4ce3f3bacbde3822ab4448664bc3bd2bebd38a0 /src/providers/dp_backend.h
parent955c7511d1e89b3151e1d280acbddd0f06e88059 (diff)
downloadsssd_unused-c4c4fbee11e865053cfa4c03f4869458f78c9e32.tar.gz
sssd_unused-c4c4fbee11e865053cfa4c03f4869458f78c9e32.tar.xz
sssd_unused-c4c4fbee11e865053cfa4c03f4869458f78c9e32.zip
Add offline callbacks
Diffstat (limited to 'src/providers/dp_backend.h')
-rw-r--r--src/providers/dp_backend.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/providers/dp_backend.h b/src/providers/dp_backend.h
index 43d79ba2..fc5e558c 100644
--- a/src/providers/dp_backend.h
+++ b/src/providers/dp_backend.h
@@ -95,10 +95,11 @@ struct be_ctx {
struct be_failover_ctx *be_fo;
/* Functions to be invoked when the
- * backend goes online
+ * backend goes online or offline
*/
struct be_cb *online_cb_list;
bool run_online_cb;
+ struct be_cb *offline_cb_list;
struct be_offline_status offstat;
@@ -148,6 +149,13 @@ int be_add_online_cb(TALLOC_CTX *mem_ctx,
struct be_cb **online_cb);
void be_run_online_cb(struct be_ctx *be);
+int be_add_offline_cb(TALLOC_CTX *mem_ctx,
+ struct be_ctx *ctx,
+ be_callback_t cb,
+ void *pvt,
+ struct be_cb **online_cb);
+void be_run_offline_cb(struct be_ctx *be);
+
/* from data_provider_fo.c */
typedef void (be_svc_callback_fn_t)(void *, struct fo_server *);