summaryrefslogtreecommitdiffstats
path: root/src/providers/backend.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/providers/backend.h')
-rw-r--r--src/providers/backend.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/src/providers/backend.h b/src/providers/backend.h
index ba0bc5927..305413660 100644
--- a/src/providers/backend.h
+++ b/src/providers/backend.h
@@ -50,7 +50,28 @@ struct be_resolv_ctx {
enum restrict_family family_order;
};
-struct be_failover_ctx;
+struct be_svc_data {
+ struct be_svc_data *prev;
+ struct be_svc_data *next;
+
+ const char *name;
+ struct fo_service *fo_service;
+
+ struct fo_server *last_good_srv;
+ time_t last_status_change;
+ bool run_callbacks;
+
+ struct be_svc_callback *callbacks;
+ struct fo_server *first_resolved;
+};
+
+struct be_failover_ctx {
+ struct fo_ctx *fo_ctx;
+ struct be_resolv_ctx *be_res;
+
+ struct be_svc_data *svcs;
+ struct tevent_timer *primary_server_handler;
+};
struct be_cb;