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-27 14:44:13 -0400
commit8eb2a35e3b180e76da4be5beab11cdb4038860b2 (patch)
tree7b208e0e42cb21eccdc372007f75af516a402ce0 /src/providers/dp_backend.h
parentf6085645026b9ee26e970d8f9a4e7b8cba077361 (diff)
downloadsssd-8eb2a35e3b180e76da4be5beab11cdb4038860b2.tar.gz
sssd-8eb2a35e3b180e76da4be5beab11cdb4038860b2.tar.xz
sssd-8eb2a35e3b180e76da4be5beab11cdb4038860b2.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 43d79ba2c..fc5e558c1 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 *);