From 340e58f9b3bcdfe4314da65e592dcd5c2daf6fd9 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Wed, 28 Nov 2018 10:05:39 +0530 Subject: all: add xlator_api to many translators Fixes: #164 Change-Id: I93ad6f0232a1dc534df099059f69951e1339086f Signed-off-by: Amar Tumballi --- xlators/performance/decompounder/src/decompounder.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'xlators/performance/decompounder/src/decompounder.c') diff --git a/xlators/performance/decompounder/src/decompounder.c b/xlators/performance/decompounder/src/decompounder.c index 6fb7f534e3f..2650d83237e 100644 --- a/xlators/performance/decompounder/src/decompounder.c +++ b/xlators/performance/decompounder/src/decompounder.c @@ -819,15 +819,27 @@ out: return ret; } -int32_t +void fini(xlator_t *this) { if (!this) - return 0; + return; if (this->local_pool) { mem_pool_destroy(this->local_pool); this->local_pool = NULL; } - return 0; + return; } + +xlator_api_t xlator_api = { + .init = init, + .fini = fini, + .mem_acct_init = mem_acct_init, + .op_version = {1}, /* Present from the initial version */ + .fops = &fops, + .cbks = &cbks, + .options = options, + .identifier = "decompounder", + .category = GF_TECH_PREVIEW, +}; -- cgit