diff options
author | Amar Tumballi <amarts@redhat.com> | 2017-11-28 14:44:46 +0530 |
---|---|---|
committer | Kaushal M <kaushal@redhat.com> | 2017-11-30 09:16:13 +0000 |
commit | 5b4b25c697f93d3dfe352013a442f2ec73fd3b8b (patch) | |
tree | f9bf3452741e702cf5774924fc70eb82d7831d2e /libglusterfs/src/defaults-tmpl.c | |
parent | 3460b8cfc550f272bdae588e8929b75b105ab06b (diff) |
xlator: provide a xlator_api_t structure to include all exported options
each translator from now on can have just 1 symbol exported called
'xlator_api', which has all the required fields in it.
Updates: #164
Change-Id: I48d54f5ec59fee842b1d55877e3ac5e9ec9b6bdd
Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'libglusterfs/src/defaults-tmpl.c')
-rw-r--r-- | libglusterfs/src/defaults-tmpl.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libglusterfs/src/defaults-tmpl.c b/libglusterfs/src/defaults-tmpl.c index 0ef14d5c68e..d311972f0c0 100644 --- a/libglusterfs/src/defaults-tmpl.c +++ b/libglusterfs/src/defaults-tmpl.c @@ -223,3 +223,10 @@ default_mem_acct_init (xlator_t *this) return ret; } + +void +default_fini (xlator_t *this) +{ + if (this && this->private) + GF_FREE (this->private); +} |