summaryrefslogtreecommitdiffstats
path: root/server/providers/dp_backend.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/providers/dp_backend.h')
-rw-r--r--server/providers/dp_backend.h11
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___ */