summaryrefslogtreecommitdiff
path: root/source4/lib/samba3/samba3.h
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-08-30 13:58:48 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:35:02 -0500
commita3a7881d39d0c294d0cd2ce13203478fb889b07c (patch)
tree4f2a78f93e9a369cd6658f2f6ef180b8f27ebe70 /source4/lib/samba3/samba3.h
parentf3c121eb748b37a8b60d353d371bed9b79d0e37c (diff)
downloadsamba-a3a7881d39d0c294d0cd2ce13203478fb889b07c.tar.gz
samba-a3a7881d39d0c294d0cd2ce13203478fb889b07c.tar.bz2
samba-a3a7881d39d0c294d0cd2ce13203478fb889b07c.zip
r9798: Add generic functions for handling smb.conf files (the parameters don't to be pre-declared). Also doesn't use any globals, so multiple files can be loaded at once.
Currently uses the prefix "param" for all functions and structures; suggestions for better ones are welcome... Remove old smb.conf-parsing code from libsamba3. (This used to be commit 414e5f7f6dc38a8fde3b61d524a664f56f9ea592)
Diffstat (limited to 'source4/lib/samba3/samba3.h')
-rw-r--r--source4/lib/samba3/samba3.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/source4/lib/samba3/samba3.h b/source4/lib/samba3/samba3.h
index b8a9c68617..f0f4c99513 100644
--- a/source4/lib/samba3/samba3.h
+++ b/source4/lib/samba3/samba3.h
@@ -23,6 +23,7 @@
#include "librpc/gen_ndr/security.h"
#include "librpc/gen_ndr/samr.h"
+#include "param/generic.h"
struct samba3_samaccount {
uint32_t logon_time,
@@ -185,21 +186,15 @@ struct samba3_secrets
} *afs_keyfiles;
};
-struct samba3_parameter {
- char *name;
- char *value;
-};
-
struct samba3_share_info {
char *name;
struct security_descriptor secdesc;
-
- uint32_t parameter_count;
- struct samba3_parameter *parameters;
};
struct samba3
{
+ struct param_context *configuration;
+
uint32_t winsdb_count;
struct samba3_winsdb_entry *winsdb_entries;