diff options
author | Simo Sorce <ssorce@redhat.com> | 2009-09-12 00:05:55 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-09-14 11:20:15 -0400 |
commit | a0b02295b0e0c55174b37ad3b231d28e0e1d1f50 (patch) | |
tree | 685866761c5d3a6a2df5b985de50711e42d589da /server/providers/dp_backend.h | |
parent | f65550115e78a66a35b074a5b80394a6d9ff21fd (diff) | |
download | sssd-a0b02295b0e0c55174b37ad3b231d28e0e1d1f50.tar.gz sssd-a0b02295b0e0c55174b37ad3b231d28e0e1d1f50.tar.xz sssd-a0b02295b0e0c55174b37ad3b231d28e0e1d1f50.zip |
Make the offline status backend-global
Add helpers functions to query/set the offline status per backend.
Now all providers share the same offline status.
Diffstat (limited to 'server/providers/dp_backend.h')
-rw-r--r-- | server/providers/dp_backend.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/server/providers/dp_backend.h b/server/providers/dp_backend.h index cce854eff..f9949632b 100644 --- a/server/providers/dp_backend.h +++ b/server/providers/dp_backend.h @@ -60,6 +60,10 @@ struct bet_info { void *pvt_bet_data; }; +struct be_offline_status { + time_t went_offline; + bool offline; +}; struct be_ctx { struct tevent_context *ev; @@ -69,6 +73,8 @@ struct be_ctx { const char *identity; const char *conf_path; + struct be_offline_status offstat; + struct sbus_connection *mon_conn; struct sbus_connection *dp_conn; @@ -97,8 +103,7 @@ struct be_acct_req { char *filter_value; }; -struct be_online_req { - int online; -}; +bool be_is_offline(struct be_ctx *ctx); +void be_mark_offline(struct be_ctx *ctx); #endif /* __DP_BACKEND_H___ */ |