vfs_catia: factor out mapping functions
commitb86662654a51baa523896aaafb3a9d9cdc6628a9
authorRalph Boehme <slow@samba.org>
Wed, 11 Oct 2017 09:35:15 +0000 (11 11:35 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 25 Oct 2017 06:43:02 +0000 (25 08:43 +0200)
tree3bfc3942e1f1a06b73eec0a7caa84ac17fb32b6c
parentafecdce66c5e6fe592d7456ec7cf2334982e9bda
vfs_catia: factor out mapping functions

This moves the core mapping functions to a seperate file and makes them
global.

string_replace_init_map() is called to parse a mapping in string and
produce a mapping object that can then be passed to
string_replace_allocate() to do the actual mapping of a string.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13076

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(backported from commit f8bd63e19c8b1c063dd6f41b405d6864a9b546ff)
source3/modules/string_replace.c [new file with mode: 0644]
source3/modules/string_replace.h [new file with mode: 0644]
source3/modules/vfs_catia.c
source3/modules/wscript_build