summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ctld/ctld.h
diff options
context:
space:
mode:
authorjceel <jceel@FreeBSD.org>2016-02-03 15:45:13 +0000
committerjceel <jceel@FreeBSD.org>2016-02-03 15:45:13 +0000
commitdac55bd53a9f0a5723fd92b25c6b2be58c7c0142 (patch)
tree77aa5bdc4d21301f434448a216477b1920c48bb8 /usr.sbin/ctld/ctld.h
parent960d14828b1b4d2b62d2fe8f0f67e4325b81cadf (diff)
downloadFreeBSD-src-dac55bd53a9f0a5723fd92b25c6b2be58c7c0142.zip
FreeBSD-src-dac55bd53a9f0a5723fd92b25c6b2be58c7c0142.tar.gz
Add an additional, libucl-based configuration file parser to ctld.
Default ctld behavior remains unchanged - libucl parser can be selected explicitly by adding -u switch to ctld command line. Reviewed by: trasz Approved by: trasz (mentor) MFC after: 1 month Relnotes: yes Sponsored by: iXsystems, Inc. Differential Revision: https://reviews.freebsd.org/D4534
Diffstat (limited to 'usr.sbin/ctld/ctld.h')
-rw-r--r--usr.sbin/ctld/ctld.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ctld/ctld.h b/usr.sbin/ctld/ctld.h
index 808b722..e9152329 100644
--- a/usr.sbin/ctld/ctld.h
+++ b/usr.sbin/ctld/ctld.h
@@ -297,8 +297,10 @@ int rchap_receive(struct rchap *rchap,
char *rchap_get_response(struct rchap *rchap);
void rchap_delete(struct rchap *rchap);
+int parse_conf(struct conf *conf, const char *path);
+int uclparse_conf(struct conf *conf, const char *path);
+
struct conf *conf_new(void);
-struct conf *conf_new_from_file(const char *path, struct conf *old);
struct conf *conf_new_from_kernel(void);
void conf_delete(struct conf *conf);
int conf_verify(struct conf *conf);
OpenPOWER on IntegriCloud