s3-param Use .offset rather than .ptr when defining parameters
authorAndrew Bartlett <abartlet@samba.org>
Wed, 29 Jun 2011 00:49:35 +0000 (10:49 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 29 Jun 2011 03:50:46 +0000 (05:50 +0200)
commit21756b7c7d3048ce3396ab63aebc80babf4819e9
tree3cc69859540ec12e98748f925ed16e3009192995
parent573109d346b67a9f711187636a2cae3ae7f1cbcf
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
source3/include/smb.h
source3/param/loadparm.c