summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-06-29 10:49:35 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-06-29 05:50:46 +0200
commit21756b7c7d3048ce3396ab63aebc80babf4819e9 (patch)
tree3cc69859540ec12e98748f925ed16e3009192995 /source3/include
parent573109d346b67a9f711187636a2cae3ae7f1cbcf (diff)
downloadsamba-21756b7c7d3048ce3396ab63aebc80babf4819e9.tar.gz
samba-21756b7c7d3048ce3396ab63aebc80babf4819e9.tar.bz2
samba-21756b7c7d3048ce3396ab63aebc80babf4819e9.zip
s3-param Use .offset rather than .ptr when defining parameters
This change has a number of purposes: * It removes the fancy logic around pointers into sDefault for all per-share parameters. Instead, this is always expressed as an offset, rather than implicitly via PTR_DIFF macros. * It makes struct parm_struct almost identical to that as used in source4/param. This will very shortly allow the loadparm tables and most of the 'special' helper functions to be placed in common. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Jun 29 05:50:46 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/smb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index f46a58ef11..25e3bacc72 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -731,7 +731,7 @@ struct parm_struct {
const char *label;
parm_type type;
parm_class p_class;
- void *ptr;
+ offset_t offset;
bool (*special)(int snum, const char *, char **);
const struct enum_list *enum_list;
unsigned flags;