summaryrefslogtreecommitdiff
path: root/lib/param
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-07-07 22:03:30 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-07-08 11:23:23 +0200
commit2fcbfcd004685482c40de169bf904d7fa92ac165 (patch)
tree91123474deb7ff37147e5dd8abc3b0cb08ea038b /lib/param
parentf50f9374b584b881aac0304aeefc56ebfd6b745a (diff)
downloadsamba-2fcbfcd004685482c40de169bf904d7fa92ac165.tar.gz
samba-2fcbfcd004685482c40de169bf904d7fa92ac165.tar.bz2
samba-2fcbfcd004685482c40de169bf904d7fa92ac165.zip
param: Move per-share parameters into a seperate file, to share with s3
This will allow the struct loadparm_service to be in common between the two loadparm implementations in the tree. Andrew Bartlett
Diffstat (limited to 'lib/param')
-rw-r--r--lib/param/param_functions.c23
-rw-r--r--lib/param/param_structs.h13
2 files changed, 36 insertions, 0 deletions
diff --git a/lib/param/param_functions.c b/lib/param/param_functions.c
new file mode 100644
index 0000000000..e68e34ae55
--- /dev/null
+++ b/lib/param/param_functions.c
@@ -0,0 +1,23 @@
+FN_LOCAL_STRING(pathname, szPath)
+FN_LOCAL_LIST(hostsallow, szHostsallow)
+FN_LOCAL_LIST(hostsdeny, szHostsdeny)
+FN_LOCAL_STRING(comment, comment)
+FN_LOCAL_STRING(fstype, fstype)
+FN_LOCAL_LIST(ntvfs_handler, ntvfs_handler)
+FN_LOCAL_BOOL(msdfs_root, bMSDfsRoot)
+FN_LOCAL_BOOL(browseable, bBrowseable)
+FN_LOCAL_BOOL(readonly, bRead_only)
+FN_LOCAL_BOOL(print_ok, bPrint_ok)
+FN_LOCAL_BOOL(map_hidden, bMap_hidden)
+FN_LOCAL_BOOL(map_archive, bMap_archive)
+FN_LOCAL_BOOL(strict_locking, bStrictLocking)
+FN_LOCAL_BOOL(oplocks, bOplocks)
+FN_LOCAL_BOOL(strict_sync, bStrictSync)
+FN_LOCAL_BOOL(ci_filesystem, bCIFileSystem)
+FN_LOCAL_BOOL(map_system, bMap_system)
+FN_LOCAL_INTEGER(max_connections, iMaxConnections)
+FN_LOCAL_INTEGER(csc_policy, iCSCPolicy)
+FN_LOCAL_INTEGER(create_mask, iCreate_mask)
+FN_LOCAL_INTEGER(force_create_mode, iCreate_force_mode)
+FN_LOCAL_INTEGER(dir_mask, iDir_mask)
+FN_LOCAL_INTEGER(force_dir_mode, iDir_force_mode)
diff --git a/lib/param/param_structs.h b/lib/param/param_structs.h
new file mode 100644
index 0000000000..f076ce15fa
--- /dev/null
+++ b/lib/param/param_structs.h
@@ -0,0 +1,13 @@
+#define LOADPARM_EXTRA_LOCALS \
+ struct parmlist_entry *param_opt; \
+ char *szService; \
+ char *szCopy; \
+ char *szInclude; \
+ char *szPrintername; \
+ int bAvailable; \
+ int iMaxPrintJobs; \
+ char *volume; \
+ struct bitmap *copymap; \
+ char dummy[3]; /* for alignment */
+
+#include "param_local.h"