summaryrefslogtreecommitdiffstats
path: root/support/include
diff options
context:
space:
mode:
authorJustin Mitchell <jumitche@rehat.com>2017-05-05 11:03:20 -0400
committerSteve Dickson <steved@redhat.com>2017-05-05 11:04:19 -0400
commit7b33590fee9515e49cda460285acc5d347a800b5 (patch)
tree8f6f30a0671155e93c5029f15c37181755aa3704 /support/include
parent06bbb4ee6f5186e8e83d50767ad5b3b41968e5a6 (diff)
downloadnfs-utils-7b33590fee9515e49cda460285acc5d347a800b5.tar.gz
nfs-utils-7b33590fee9515e49cda460285acc5d347a800b5.tar.xz
nfs-utils-7b33590fee9515e49cda460285acc5d347a800b5.zip
config: Remove the conf_path global
Working towards an nfs.conf library and API for system config tools, first step, replace the conf_path global with a parameter to conf_init Signed-off-by: Justin Mitchell <jumitche@rehat.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/include')
-rw-r--r--support/include/conffile.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/support/include/conffile.h b/support/include/conffile.h
index 3fe3a78..20b1a32 100644
--- a/support/include/conffile.h
+++ b/support/include/conffile.h
@@ -48,8 +48,6 @@ struct conf_list {
TAILQ_HEAD(conf_list_fields_head, conf_list_node) fields;
};
-extern char *conf_path;
-
extern int conf_begin(void);
extern int conf_decode_base64(uint8_t *, uint32_t *, unsigned char *);
extern int conf_end(int, int);
@@ -61,9 +59,8 @@ extern int conf_get_num(char *, char *, int);
extern _Bool conf_get_bool(char *, char *, _Bool);
extern char *conf_get_str(char *, char *);
extern char *conf_get_section(char *, char *, char *);
-extern void conf_init(void);
+extern void conf_init(const char *);
extern int conf_match_num(char *, char *, int);
-extern void conf_reinit(void);
extern int conf_remove(int, char *, char *);
extern int conf_remove_section(int, char *);
extern void conf_report(void);