From 9ab243b369ba317cc964080786dbcdebaf23d6be Mon Sep 17 00:00:00 2001 From: Michal Zidek Date: Mon, 13 Aug 2012 16:37:13 +0200 Subject: Duplicate detection in fail over did not work. https://fedorahosted.org/sssd/ticket/1472 --- src/providers/fail_over.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/providers/fail_over.h') diff --git a/src/providers/fail_over.h b/src/providers/fail_over.h index b69e8a53..36437ed5 100644 --- a/src/providers/fail_over.h +++ b/src/providers/fail_over.h @@ -89,13 +89,20 @@ struct fo_options { struct fo_ctx *fo_context_init(TALLOC_CTX *mem_ctx, struct fo_options *opts); +typedef int (*datacmp_fn)(void*, void*); + /* * Create a new service structure for 'ctx', saving it to the location pointed * to by '_service'. The needed memory will be allocated from 'ctx'. * Service name will be set to 'name'. + * + * Function pointed by user_data_cmp returns 0 if user_data is equal + * or nonzero value if not. Set to NULL if no user data comparison + * is needed in fail over duplicate servers detection. */ int fo_new_service(struct fo_ctx *ctx, const char *name, + datacmp_fn user_data_cmp, struct fo_service **_service); /* -- cgit