diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-04-01 14:51:06 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-04-01 14:51:06 +0200 |
commit | 14a54761d98e2c4345e3e667d02279d2765617c1 (patch) | |
tree | ac20c12d2fdb5ac9021c52c4db8e3958976d253f /source4/lib | |
parent | 5a498290b0f48befe35c4a5a60f66713df0c8f18 (diff) | |
download | samba-14a54761d98e2c4345e3e667d02279d2765617c1.tar.gz samba-14a54761d98e2c4345e3e667d02279d2765617c1.tar.bz2 samba-14a54761d98e2c4345e3e667d02279d2765617c1.zip |
Move ini-like file parser to the utility library.
(This used to be commit 2dc2bb800dab3f7dbdba01f5ca5076edd1a2b0f3)
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/util/config.mk | 3 | ||||
-rw-r--r-- | source4/lib/util/util.h | 8 |
2 files changed, 10 insertions, 1 deletions
diff --git a/source4/lib/util/config.mk b/source4/lib/util/config.mk index 22e6617f7c..c6afad1e3f 100644 --- a/source4/lib/util/config.mk +++ b/source4/lib/util/config.mk @@ -18,7 +18,8 @@ OBJ_FILES = xfile.o \ ms_fnmatch.o \ mutex.o \ idtree.o \ - become_daemon.o + become_daemon.o \ + params.o PUBLIC_DEPENDENCIES = \ LIBTALLOC LIBCRYPTO \ SOCKET_WRAPPER LIBREPLACE_NETWORK \ diff --git a/source4/lib/util/util.h b/source4/lib/util/util.h index 550b60c625..26700587ef 100644 --- a/source4/lib/util/util.h +++ b/source4/lib/util/util.h @@ -795,4 +795,12 @@ _PUBLIC_ int idr_remove(struct idr_context *idp, int id); **/ _PUBLIC_ void become_daemon(bool fork); +/** + * Load a ini-style file. + */ +bool pm_process( const char *fileName, + bool (*sfunc)(const char *, void *), + bool (*pfunc)(const char *, const char *, void *), + void *userdata); + #endif /* _SAMBA_UTIL_H_ */ |