summaryrefslogtreecommitdiffstats
path: root/src/providers/dp_backend.h
diff options
context:
space:
mode:
authorMichal Židek <mzidek@redhat.com>2015-08-10 18:35:16 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-08-14 22:37:18 +0200
commitc4fb8f55f2894de431478ccfec63f9a97e090d0e (patch)
treeedf0e37444fe63e360596c16810b1a3d4333e95b /src/providers/dp_backend.h
parent137d5dd0dba48f647e5f8b3976ddb78d65dc77a5 (diff)
downloadsssd-c4fb8f55f2894de431478ccfec63f9a97e090d0e.tar.gz
sssd-c4fb8f55f2894de431478ccfec63f9a97e090d0e.tar.xz
sssd-c4fb8f55f2894de431478ccfec63f9a97e090d0e.zip
DEBUG: Add new debug category for fail over.
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/providers/dp_backend.h')
-rw-r--r--src/providers/dp_backend.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/providers/dp_backend.h b/src/providers/dp_backend.h
index e4e22ea34..bca0c2f97 100644
--- a/src/providers/dp_backend.h
+++ b/src/providers/dp_backend.h
@@ -259,10 +259,17 @@ struct tevent_req *be_resolve_server_send(TALLOC_CTX *memctx,
bool first_try);
int be_resolve_server_recv(struct tevent_req *req, struct fo_server **srv);
-void be_fo_set_port_status(struct be_ctx *ctx,
- const char *service_name,
- struct fo_server *server,
- enum port_status status);
+#define be_fo_set_port_status(ctx, service_name, server, status) \
+ _be_fo_set_port_status(ctx, service_name, server, status, \
+ __LINE__, __FILE__, __FUNCTION__)
+
+void _be_fo_set_port_status(struct be_ctx *ctx,
+ const char *service_name,
+ struct fo_server *server,
+ enum port_status status,
+ int line,
+ const char *file,
+ const char *function);
/*
* Instruct fail-over to try next server on the next connect attempt.