summaryrefslogtreecommitdiffstats
path: root/source/lib/samba3/samba3.h
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-08-30 13:58:48 +0000
committerJelmer Vernooij <jelmer@samba.org>2005-08-30 13:58:48 +0000
commit28ac76024f97edc222898ab8b475820aaa209b45 (patch)
treef22c08c20976f235fa54d3060b45a57587536ac1 /source/lib/samba3/samba3.h
parentc8e496d2c9508820bb88d80be2a5cb3de13616ab (diff)
downloadsamba-28ac76024f97edc222898ab8b475820aaa209b45.tar.gz
samba-28ac76024f97edc222898ab8b475820aaa209b45.tar.xz
samba-28ac76024f97edc222898ab8b475820aaa209b45.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.
Diffstat (limited to 'source/lib/samba3/samba3.h')
-rw-r--r--source/lib/samba3/samba3.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/source/lib/samba3/samba3.h b/source/lib/samba3/samba3.h
index b8a9c68617d..f0f4c99513c 100644
--- a/source/lib/samba3/samba3.h
+++ b/source/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;