summaryrefslogtreecommitdiff
path: root/source4/param/param.h
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-09-26 23:59:35 +0200
committerJelmer Vernooij <jelmer@samba.org>2009-09-26 23:59:35 +0200
commit2dd7c9bc3441c00ba26329d4d1f4f32775a06a75 (patch)
treef288b100c2fb47e35a7a22373cf79c96e33690e2 /source4/param/param.h
parent6a79ad7664ec3cbfa98638e15de6ba24983a84b1 (diff)
downloadsamba-2dd7c9bc3441c00ba26329d4d1f4f32775a06a75.tar.gz
samba-2dd7c9bc3441c00ba26329d4d1f4f32775a06a75.tar.bz2
samba-2dd7c9bc3441c00ba26329d4d1f4f32775a06a75.zip
libutil: Add separate utility code for dealing with settings as a
collection of key/value pairs.
Diffstat (limited to 'source4/param/param.h')
-rw-r--r--source4/param/param.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/source4/param/param.h b/source4/param/param.h
index 27bc32f9b9..5c49f34e2a 100644
--- a/source4/param/param.h
+++ b/source4/param/param.h
@@ -20,12 +20,7 @@
#ifndef _PARAM_H /* _PARAM_H */
#define _PARAM_H
-struct param_opt {
- struct param_opt *prev, *next;
- char *key;
- char *value;
- int priority;
-};
+#include "../lib/util/parmlist.h"
struct param_context {
struct param_section *sections;
@@ -34,7 +29,7 @@ struct param_context {
struct param_section {
const char *name;
struct param_section *prev, *next;
- struct param_opt *parameters;
+ struct parmlist *parameters;
};
struct param_context;
@@ -334,11 +329,11 @@ struct gensec_settings *lp_gensec_settings(TALLOC_CTX *, struct loadparm_context
/* The following definitions come from param/generic.c */
struct param_section *param_get_section(struct param_context *ctx, const char *name);
-struct param_opt *param_section_get(struct param_section *section,
+struct parmlist_entry *param_section_get(struct param_section *section,
const char *name);
-struct param_opt *param_get (struct param_context *ctx, const char *name, const char *section_name);
+struct parmlist_entry *param_get (struct param_context *ctx, const char *name, const char *section_name);
struct param_section *param_add_section(struct param_context *ctx, const char *section_name);
-struct param_opt *param_get_add(struct param_context *ctx, const char *name, const char *section_name);
+struct parmlist_entry *param_get_add(struct param_context *ctx, const char *name, const char *section_name);
const char *param_get_string(struct param_context *ctx, const char *param, const char *section);
int param_set_string(struct param_context *ctx, const char *param, const char *value, const char *section);
const char **param_get_string_list(struct param_context *ctx, const char *param, const char *separator, const char *section);