From 0a320004a9937295ba66a348d1e60682cfdceb26 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Mon, 21 Oct 2013 13:37:37 +0200 Subject: Add unconditional online callbacks Currently online callbacks are only executed if the backend was offline before. This patch add a new class of callback which are always called if the backend gets a request to go online. They can be used e.g. to reset timeouts until a more sophisticated method (OpenLMI, sssctl) is available. --- src/providers/data_provider_be.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/providers/data_provider_be.c') diff --git a/src/providers/data_provider_be.c b/src/providers/data_provider_be.c index e7037d8de..a0b2758b1 100644 --- a/src/providers/data_provider_be.c +++ b/src/providers/data_provider_be.c @@ -2209,6 +2209,8 @@ static void check_if_online(struct be_ctx *ctx) int ret; struct be_req *be_req = NULL; + be_run_unconditional_online_cb(ctx); + if (ctx->offstat.offline == false) { DEBUG(8, ("Backend is already online, nothing to do.\n")); return; -- cgit