From fd798bd98d932bc847afc60817f5fdb744eee2a4 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Tue, 24 Oct 2017 12:50:43 +0200 Subject: [PATCH 27/31] nss: make memcache_delete_entry() public Related to https://pagure.io/SSSD/sssd/issue/2478 Reviewed-by: Jakub Hrozek (cherry picked from commit a7d6ca275d6b2e5d396cbefb18d0ee880011e271) --- src/responder/nss/nss_get_object.c | 2 +- src/responder/nss/nss_private.h | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/responder/nss/nss_get_object.c b/src/responder/nss/nss_get_object.c index e56480af5e3369963d2e8bb17d74d1603af8e014..15faced006f754134415e766284377f0c86af0ac 100644 --- a/src/responder/nss/nss_get_object.c +++ b/src/responder/nss/nss_get_object.c @@ -86,7 +86,7 @@ memcache_delete_entry_by_id(struct nss_ctx *nss_ctx, return ret; } -static errno_t +errno_t memcache_delete_entry(struct nss_ctx *nss_ctx, struct resp_ctx *rctx, struct sss_domain_info *domain, diff --git a/src/responder/nss/nss_private.h b/src/responder/nss/nss_private.h index a0b573d6ecba2d8ba6f55db0adcd7ee29cbec991..5fc19d26be9adda4d967086e7b239e49a78866ee 100644 --- a/src/responder/nss/nss_private.h +++ b/src/responder/nss/nss_private.h @@ -92,6 +92,14 @@ struct sss_cmd_table *get_nss_cmds(void); int nss_connection_setup(struct cli_ctx *cli_ctx); +errno_t +memcache_delete_entry(struct nss_ctx *nss_ctx, + struct resp_ctx *rctx, + struct sss_domain_info *domain, + const char *name, + uint32_t id, + enum sss_mc_type type); + struct tevent_req * nss_get_object_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, -- 2.13.6