diff options
author | Michael Adam <obnox@samba.org> | 2013-08-28 15:29:37 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2013-10-01 12:03:29 +0000 |
commit | f6c34b1e236aab275d6cfbc12e57af7d692b8c19 (patch) | |
tree | c007015127358b2a3f6d37514ba72560e5f12fee /source3/include | |
parent | 42a6bb722884de1ba2d876fcb62343aad7594bb7 (diff) | |
download | samba-f6c34b1e236aab275d6cfbc12e57af7d692b8c19.tar.gz samba-f6c34b1e236aab275d6cfbc12e57af7d692b8c19.tar.bz2 samba-f6c34b1e236aab275d6cfbc12e57af7d692b8c19.zip |
idmap_autorid: refactor idmap_autorid_parse_configstr() out of idmap_autorid_loadconfig()
This will be used for other purposes as well.
Pair-Programmed-with: Atul Kulkarni <atul.kulkarni@in.ibm.com>
Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Atul Kulkarni <atul.kulkarni@in.ibm.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/idmap_autorid_tdb.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/include/idmap_autorid_tdb.h b/source3/include/idmap_autorid_tdb.h index 21e4ddbdc3..2702f4cf09 100644 --- a/source3/include/idmap_autorid_tdb.h +++ b/source3/include/idmap_autorid_tdb.h @@ -75,4 +75,11 @@ NTSTATUS idmap_autorid_saveconfig(struct db_context *db, NTSTATUS idmap_autorid_getconfigstr(struct db_context *db, TALLOC_CTX *mem_ctx, char **result); +/** + * parse the handed in config string and fill the provided config structure. + * return false if the string could not be parsed. + */ +bool idmap_autorid_parse_configstr(const char *configstr, + struct autorid_global_config *cfg); + #endif /* _IDMAP_AUTORID_H_ */ |