diff options
author | Sumit Bose <sbose@redhat.com> | 2010-05-14 10:18:33 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-05-18 13:06:43 -0400 |
commit | 955c7511d1e89b3151e1d280acbddd0f06e88059 (patch) | |
tree | f418f692496e0eef6a2ec08f43c68fda2457f338 /src/providers/dp_backend.h | |
parent | 750fd9380ada0a8ac6a628e8acca1602ee9e3cf3 (diff) | |
download | sssd-955c7511d1e89b3151e1d280acbddd0f06e88059.tar.gz sssd-955c7511d1e89b3151e1d280acbddd0f06e88059.tar.xz sssd-955c7511d1e89b3151e1d280acbddd0f06e88059.zip |
Refactor data provider callbacks
Diffstat (limited to 'src/providers/dp_backend.h')
-rw-r--r-- | src/providers/dp_backend.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/providers/dp_backend.h b/src/providers/dp_backend.h index ec0510e39..43d79ba2c 100644 --- a/src/providers/dp_backend.h +++ b/src/providers/dp_backend.h @@ -40,7 +40,7 @@ typedef void (*be_shutdown_fn)(void *); typedef void (*be_req_fn_t)(struct be_req *); typedef void (*be_async_callback_t)(struct be_req *, int, int, const char *); -typedef void (*be_conn_online_callback_t)(void *); +typedef void (*be_callback_t)(void *); enum bet_type { BET_NULL = 0, @@ -83,7 +83,7 @@ struct be_client { struct be_failover_ctx; -struct be_conn_online_cb; +struct be_cb; struct be_ctx { struct tevent_context *ev; @@ -97,7 +97,7 @@ struct be_ctx { /* Functions to be invoked when the * backend goes online */ - struct be_conn_online_cb *online_cb_list; + struct be_cb *online_cb_list; bool run_online_cb; struct be_offline_status offstat; @@ -143,9 +143,9 @@ void be_mark_offline(struct be_ctx *ctx); int be_add_online_cb(TALLOC_CTX *mem_ctx, struct be_ctx *ctx, - be_conn_online_callback_t cb, + be_callback_t cb, void *pvt, - struct be_conn_online_cb **online_cb); + struct be_cb **online_cb); void be_run_online_cb(struct be_ctx *be); /* from data_provider_fo.c */ |