docs-xml: remove explicit "constant"
authorRalph Boehme <slow@samba.org>
Tue, 19 Nov 2019 10:53:50 +0000 (11:53 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 27 Nov 2019 10:25:37 +0000 (10:25 +0000)
The constant mark applied to types "string" and "ustring". The previous patches
in this patchset already markes all string options as either constant or
substituted, but it's still possible to add options or change existing ones to
be neither constant nor substituted.

In order to enforce strings to be either constant or substitued, remove the
explicit constant marker. Instead, any option that is not marked as substituted
is implicitly made constant.

This patch doesn't change behaviour and all generated files are the same before
and after this change.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
60 files changed:
docs-xml/smbdotconf/base/doscharset.xml
docs-xml/smbdotconf/base/netbiosname.xml
docs-xml/smbdotconf/base/netbiosscope.xml
docs-xml/smbdotconf/base/realm.xml
docs-xml/smbdotconf/base/sharebackend.xml
docs-xml/smbdotconf/base/unixcharset.xml
docs-xml/smbdotconf/base/workgroup.xml
docs-xml/smbdotconf/filename/manglingmethod.xml
docs-xml/smbdotconf/ldap/ldapadmindn.xml
docs-xml/smbdotconf/ldap/ldapgroupsuffix.xml
docs-xml/smbdotconf/ldap/ldapidmapsuffix.xml
docs-xml/smbdotconf/ldap/ldapmachinesuffix.xml
docs-xml/smbdotconf/ldap/ldapsuffix.xml
docs-xml/smbdotconf/ldap/ldapusersuffix.xml
docs-xml/smbdotconf/logon/logondrive.xml
docs-xml/smbdotconf/logon/logonhome.xml
docs-xml/smbdotconf/logon/logonpath.xml
docs-xml/smbdotconf/logon/logonscript.xml
docs-xml/smbdotconf/misc/afsusernamemap.xml
docs-xml/smbdotconf/misc/cachedirectory.xml
docs-xml/smbdotconf/misc/ctdbdsocket.xml
docs-xml/smbdotconf/misc/fstype.xml
docs-xml/smbdotconf/misc/lockdirectory.xml
docs-xml/smbdotconf/misc/nbtclientsocketaddress.xml
docs-xml/smbdotconf/misc/ncalrpcdir.xml
docs-xml/smbdotconf/misc/piddirectory.xml
docs-xml/smbdotconf/misc/statedirectory.xml
docs-xml/smbdotconf/misc/usersharetemplateshare.xml
docs-xml/smbdotconf/misc/utmpdirectory.xml
docs-xml/smbdotconf/misc/wtmpdirectory.xml
docs-xml/smbdotconf/printing/lppausecommand.xml
docs-xml/smbdotconf/printing/lpqcommand.xml
docs-xml/smbdotconf/printing/lpresumecommand.xml
docs-xml/smbdotconf/printing/lprmcommand.xml
docs-xml/smbdotconf/printing/printcapname.xml
docs-xml/smbdotconf/printing/printcommand.xml
docs-xml/smbdotconf/printing/printjobusername.xml
docs-xml/smbdotconf/printing/queuepausecommand.xml
docs-xml/smbdotconf/printing/queueresumecommand.xml
docs-xml/smbdotconf/rpc/rpcserverdynamicportrange.xml
docs-xml/smbdotconf/security/binddnsdir.xml
docs-xml/smbdotconf/security/dedicatedkeytabfile.xml
docs-xml/smbdotconf/security/guestaccount.xml
docs-xml/smbdotconf/security/ntpsigndsocketdirectory.xml
docs-xml/smbdotconf/security/passdbbackend.xml
docs-xml/smbdotconf/security/passwordserver.xml
docs-xml/smbdotconf/security/privatedir.xml
docs-xml/smbdotconf/security/smbpasswdfile.xml
docs-xml/smbdotconf/security/tlscafile.xml
docs-xml/smbdotconf/security/tlscertfile.xml
docs-xml/smbdotconf/security/tlscrlfile.xml
docs-xml/smbdotconf/security/tlsdhparamsfile.xml
docs-xml/smbdotconf/security/tlskeyfile.xml
docs-xml/smbdotconf/security/tlspriority.xml
docs-xml/smbdotconf/tuning/socketoptions.xml
docs-xml/smbdotconf/winbind/templatehomedir.xml
docs-xml/smbdotconf/winbind/templateshell.xml
docs-xml/smbdotconf/winbind/winbinddsocketdirectory.xml
docs-xml/smbdotconf/winbind/winbindseparator.xml
script/generate_param.py

index c99b8403ccf86b2a2a88845e346b889dadf4cd5d..ebd7586158cfb1ecf07878b4429fb6cd3534abcf 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="dos charset"
                  type="string"
                  context="G"
-                 constant="1"
                  handler="handle_dos_charset"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
index 89cf73add314fc2980621f7195019c005c36cfc0..e9e05382d44127ccf2ef442b670a45f7f93b84e9 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="netbios name"
                  context="G"
                  type="ustring"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
         <para>
index c5be02825a16738892e6de0e55f514decc8e4bb1..078697f4805a8849dc72f60a5adf07ade3057602 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="netbios scope"
                  context="G"
                  type="ustring"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
         <para>This sets the NetBIOS scope that Samba will 
index 8499c786d4f1dd95441cc3573a4ec17b1b95f12d..dd39c1bb0d42af5d8b348789624c13b089f54ea6 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="realm"
                  context="G"
                  type="string"
-                 constant="1"
                  handler="handle_realm"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
index 08124cd21dc19364fbc7316161dfd85af8fc9d31..4da8b177da1419617b68266fb77261b5bbc4bb3e 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="share backend"
                  context="G"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>
index 06754a419f03721153e0cb14ba7ce436ef988f7e..23c4f1edf439938d3b487521c1cc4e643aeafc7d 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="unix charset"
                  context="G"
                  type="string"
-                 constant="1"
                  handler="handle_charset"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
index eb8ca182c9480a62dfdfc02e18b39dc4b334d912..1408147810e99527d0de4a602b4402f7d827441e 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="workgroup"
                  context="G"
                  type="ustring"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
         <para>This controls what workgroup your server will 
index ef3a59b33bf48a82c2e72fb6fef7f6847b3e8e12..559ed6c9a790de3c283614a54a6a599e7dbffc1d 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="mangling method"
                  context="G"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para> controls the algorithm used for the generating
index 5f5476b0f4c091ff2cf8e558a1c5252fe17e84ef..1f3d20f003a4f3889c02d1261f0488258c43ab96 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="ldap admin dn"
                  context="G"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
 
index adcf471a33399ef2b6d9e74717f9f841ca2d51fd..7de0fac169e585e83134f297886974077069d41e 100644 (file)
@@ -2,7 +2,6 @@
                  context="G"
                  type="string"
                  function="_ldap_group_suffix"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>This parameter specifies the suffix that is 
index 2690af83779b1b6ec240bff306044f7abe79849b..1fe7e8ae3889a76f9764a98a5882d9830b3b2a5f 100644 (file)
@@ -2,7 +2,6 @@
                  context="G"
                  type="string"
                  function="_ldap_idmap_suffix"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>
index 22f66a8a0eb50dec4705b5bb7be94ddaedfba89b..e82675b1e4fd26b30292986ca7a9bb4644dbb6bb 100644 (file)
@@ -2,7 +2,6 @@
                  context="G"
                  type="string"
                  function="_ldap_machine_suffix"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 
 <description>
index 0ecb9c7922280fcdac6f94bb005d1c478d997bea..aeff0dd6f9bd21ee064de0f6523486f5d60d0167 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="ldap suffix"
                  context="G"
                  type="string"
-                constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>Specifies the base for all ldap suffixes and for storing the sambaDomain object.</para>
index 85bece3601f36a66b4b0863b2256142d2328c46a..8e6b8a340e4af9529023732ffc0a4ccf5c08783f 100644 (file)
@@ -2,7 +2,6 @@
                  context="G"
                  type="string"
                  function="_ldap_user_suffix"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>
index 9f615986c4f5487932db8c1d96c115184a154011..9767693244cfc49cf307b2d9384b61345d044498 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="logon drive"
                  context="G"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>
index d2116740d2ac7aa8585d0165f85c77b42c8e08cb..cb5f5d5060baf9d9b5c85d21cc1d1f2f831062d1 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="logon home"
                  context="G"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>
index 106bb59453debded15b70f312832af2df74c4f82..440ebc4284e98b0dfb76c6ad59767f5c14135cd7 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="logon path"
                  context="G"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>
index 3142a6c84aa5795ec8ba663656c1ec39cbbc3081..cf0246622146ad5c48ca6bdf1f0242fce784f647 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="logon script"
                  context="G"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>
index 4dc3d465744739c083ea0003e6b06433539752af..f3f7390f4c553b184cb2801c5143d8911074d0ae 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="afs username map"
                  context="G"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
  <description>
        <para>If you are using the fake kaserver AFS feature, you might
index 21d7d9461d8988bcf83c8226ce1d795aa43c9138..480f31b63cf85d834eda880b9f99a1b11357c691 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="cache directory"
                  context="G"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>Usually, most of the TDB files are stored in the <parameter
index f852f593c82b279e6f21badf74508de018bc2e1b..2bc118bd7a76c2ff56d496345d53212c13d8cbe6 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="ctdbd socket"
                  context="G"
                  type="string"
-                 constant="1"
                  function="_ctdbd_socket"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
index 822b451c5e4d637210fcf0a4d23e06acb1d0fd54..437bd5ca0d8503997ec287482eddedba1f2186f9 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="fstype"
                  context="S"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>
index f8f64ff9fef3113ff82d4b56eb3ad61b523c88c1..cf0ea2be40cebddb34a532ce8dbb4d64763c4ca0 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="lock directory"
                  context="G"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <synonym>lock dir</synonym>
 <description>
index 0833c63d6829c4349ad0a989eeb65bf3e82b4216..12815dcfa2259e2699473a768cb2c0b2ee9686f2 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="nbt client socket address"
                  context="G"
                  type="string"
-                 constant="1"
                  deprecated="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <synonym>socket address</synonym>
index 2fa1019309a6c6320fdecb31c32a94ff2380836d..4bbd22249b0441a4a214993b2560c3183c58a39e 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="ncalrpc dir"
                  context="G"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>This directory will hold a series of named pipes to allow RPC over inter-process communication.</para>
index b53730d52c01e0d3bc3b6031738705d990fe682f..d006372a2b9faa8bfb6d7a3abf1985d32bd8e8b1 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="pid directory"
                  context="G"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>
index 2f2b0642ea9b75bb31d83f5504150ea9e7289433..12481fc8d34acd7ee364612c5df4329d52bb2240 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="state directory"
                  context="G"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>Usually, most of the TDB files are stored in the
index 2b3c112ddf1125ec805984b340cd954e9908af1e..3a74dcb8f0f9e44e45bfe1b4f3602256c3549726 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="usershare template share"
                  context="G"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>User defined shares only have limited possible parameters
index 82c8f10fd7140180f0967040b94a22da89bb5ba9..96b45dbec564ddae6c7894828f8220523c347f19 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="utmp directory"
                  context="G"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>This parameter is only available if Samba has 
index eb9d8767241038fc162502894b470850e8c5b861..f1b53592a47c5f60c2e1e8078864ebf46c39a7f0 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="wtmp directory"
                  context="G"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>
index f2518d3def0565063008926ddfc39d70a1845473..3aa134c4377eaefbe4c7235ffdf23390995ee287 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="lppause command"
                  context="S"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
     <para>This parameter specifies the command to be 
index f0161f3448d0b9a2390b989cf278b7631b4dba4d..f3c17f286d10c084b885ffad1a397645efd3b0c8 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="lpq command"
                  context="S"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
  <description>
     <para>This parameter specifies the command to be 
index 2cee574bd73472180e1b526dfd684f875e3f1a99..153ba76a693f9c6b2da9b7d344c572d8500c3235 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="lpresume command"
                  context="S"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
     <para>This parameter specifies the command to be 
index a595c1225c0e1c5971bde7d975603fd5e74f09d3..4b7f3dd75c35aff54d2172b4fbeeffa034418f51 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="lprm command"
                  context="S"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
     <para>This parameter specifies the command to be 
index 64acc265aefd5f4276a39f35e42580cee0d754e2..3a65d23b905f313f2e2575a99023384e91a0021f 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="printcap name"
                  context="G"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <synonym>printcap</synonym>
 <description>
index 42a7188cb9a5b76a6c44641cf33174cd3e426ebd..c84e45f404decfbf0af5df8a7d7104ca69e14bef 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="print command"
                  context="S"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
     <para>After a print job has finished spooling to 
index 872a2e592ed296ae3f9da93113e2135b9349926b..06209f74c6a2ae7ffab99522219f9ddfe7007cc8 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="printjob username"
                  context="S"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
     <para>This parameter specifies which user information will be 
index 600a2baa621331daa302af2ef22ff13bd2c0e05f..5dca45657cccee77f1b37859612532b0ff9dee2e 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="queuepause command"
                  context="S"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
     <para>This parameter specifies the command to be 
index 431295a804ea95b71b91801066ead93d7813ebe5..4a5733300481a272ef4c01290166e5e84f1fca7d 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="queueresume command"
                  context="S"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
     <para>This parameter specifies the command to be 
index 1b9c752cf4389d8a0db31579974d769952057893..e8d72681fd9d173a5bc38058dd57d9c5f27bdf0e 100644 (file)
@@ -2,7 +2,6 @@
                  context="G"
                  type="string"
                  handler="handle_rpc_server_dynamic_port_range"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>
index c296a0ef81d70013e53b424af8518f8ff69eccac..a948cb5923410f230d9b5c622fee45a357764068 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="binddns dir"
                  context="G"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <synonym>bind dns directory</synonym>
 <description>
index 8405b48028d98cb0537eddca462f3881cb280330..b7c26806b6e55a3414bb7d569e20ae266975e21c 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="dedicated keytab file"
                  context="G"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>
index c5dbbd9e1ce90ad57c240c3c7fc3cd8d6f5288f7..2914630072a1eaf515be99208254f29da34acce6 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="guest account"
                  context="G"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
     <para>This is a username which will be used for access 
index a2c92a4aa31f26f2e34ef4f42eadd340e0602be9..18d70cf41e1c25c674adc923e28911cb17b8af55 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="ntp signd socket directory"
                  context="G"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>This setting controls the location of the socket that
index 3e378bd07c57235247705f2f9cd09b365479c3eb..8265b3ed547ae68038e1d4c2cd1043da7dbc5df5 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="passdb backend"
                  context="G"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
 
index a62494b9b48070a71d5ca0d6ce746f561e0d7acc..8bc2ecb8502e5eff595effbb24180c3379ea69c6 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="password server"
                  context="G"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
     <para>By specifying the name of a domain controller with this option,
index 58be37281d9fc410c553a05b95d8a223a3a62e95..9abcb7e01d7e0bb6133f49c65f8cbea5acb566e0 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="private dir"
                  context="G"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <synonym>private directory</synonym>
 <description>
index a906403473f7cb4d41df9a67097f169329336dac..fab70378c4f94e253455c9908033bee078f103da 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="smb passwd file"
                  type="string"
                  context="G"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
     <para>This option sets the path to the encrypted smbpasswd file. By
index 149891342c83c0b522c8fc945ec101048a680887..bcbac62a417490954456bbfc04b3aedc8fcc1445 100644 (file)
@@ -2,7 +2,6 @@
                  type="string"
                  context="G"
                  function="_tls_cafile"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
  <description>
         <para>This option can be set to a file (PEM format)
index 0d06936a0418787c05d7ec12ff74270853e30037..cf7095475f3f0ed0888ddfe911649ee9834b33d9 100644 (file)
@@ -2,7 +2,6 @@
                  type="string"
                  context="G"
                  function="_tls_certfile"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
  <description>
         <para>This option can be set to a file (PEM format)
index c0f1cfb5b8b04af68df173156338f2648113d903..1f42b859a1130aa6872b21e320b11f97ba027c9f 100644 (file)
@@ -2,7 +2,6 @@
                  type="string"
                  context="G"
                  function="_tls_crlfile"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
  <description>
         <para>This option can be set to a file containing a certificate
index 4a5361c8c237d3e1d1d86df20975b062a3360390..5bf59aacd1afd9d6d5f7f2c8a9c6b044c653fe57 100644 (file)
@@ -2,7 +2,6 @@
                  type="string"
                  context="G"
                  function="_tls_dhpfile"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
  <description>
         <para>This option can be set to a file with Diffie-Hellman parameters
index e6b4a544caea5f9afbbb095e730dd52c612d5ecf..9caa8241fa8593baa97a64492a479460ca0bac8b 100644 (file)
@@ -2,7 +2,6 @@
                  type="string"
                  context="G"
                  function="_tls_keyfile"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
  <description>
         <para>This option can be set to a file (PEM format)
index d399eef8eef8480616257a0f3d28b95a90bae868..d7214a4c1eafe240918b1860464b65059f206efb 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="tls priority"
                  type="string"
                  context="G"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
  <description>
    <para>This option can be set to a string describing the TLS protocols
index fd61163661ad28136c3bf41569c247022407d3d8..c0bd785cb786c4698a56ec64c9c1357fc184acc0 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="socket options"
                  context="G"
                                 type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
     <para>
index cbf391ce199aa83a3ae2c9db515c1afd89f54903..2801edf47e30c32c3f128f445d4e93a4f716b76e 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="template homedir"
                  context="G"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>When filling out the user information for a Windows NT 
index 21e44e6cb5eccc712951168940f9a889172994ff..891c4242e8fe116cfc98b25455c93792f88bae65 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="template shell"
                  context="G"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>When filling out the user information for a Windows NT 
index 842cff12b2bbca2f83adf3211b8f2658d1ee5da3..7827d36d6a5bbbbae0b540afa4112ad34de437ef 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="winbindd socket directory"
                  context="G"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>This setting controls the location of the winbind daemon's socket.</para>
index 1c1632fbdff508c2b374458d730d0e77455906f2..eda14f4e03a6f9b456b1409ad7fadc41f2a3f142 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="winbind separator"
                  context="G"
                  type="string"
-                 constant="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>This parameter allows an admin to define the character 
index 55f2b65271ba14ae03dd1db73496e41b161584d6..c29a29df57e7a96585c3db3e3df284076a40e936 100644 (file)
@@ -135,10 +135,11 @@ def generate_functions(path_in, path_out):
             if temp is None:
                 raise Exception(parameter['name'] + " has an invalid context " + parameter['context'])
             output_string += temp
-            if parameter['constant']:
-                output_string += "_CONST"
-            if parameter['substitution']:
-                output_string += "_SUBSTITUTED"
+            if parameter['type'] == "string" or parameter['type'] == "ustring":
+                if parameter['substitution']:
+                    output_string += "_SUBSTITUTED"
+                else:
+                    output_string += "_CONST"
             if parameter['parm']:
                 output_string += "_PARM"
             temp = param_type_dict.get(parameter['type'])
@@ -182,8 +183,6 @@ def make_s3_param_proto(path_in, path_out):
                 continue
 
             output_string = ""
-            if parameter['constant']:
-                output_string += 'const '
             param_type = mapping.get(parameter['type'])
             if param_type is None:
                 raise Exception(parameter['name'] + " has an invalid context " + parameter['context'])
@@ -196,20 +195,21 @@ def make_s3_param_proto(path_in, path_out):
             else:
                 param = "int"
 
-            if parameter['type'] == 'string' and parameter['substitution']:
-                if parameter['context'] == 'G':
-                    output_string += '(TALLOC_CTX *ctx, const struct loadparm_substitution *lp_sub);\n'
-                elif parameter['context'] == 'S':
-                    output_string += '(TALLOC_CTX *ctx, const struct loadparm_substitution *lp_sub, %s);\n' % param
-                else:
-                    raise Exception(parameter['name'] + " has an invalid param type " + parameter['type'])
-            elif parameter['type'] == 'string' and not parameter['constant']:
-                if parameter['context'] == 'G':
-                    output_string += '(TALLOC_CTX *ctx);\n'
-                elif parameter['context'] == 'S':
-                    output_string += '(TALLOC_CTX *ctx, %s);\n' % param
+            if parameter['type'] == 'string' or parameter['type'] == 'ustring':
+                if parameter['substitution']:
+                    if parameter['context'] == 'G':
+                        output_string += '(TALLOC_CTX *ctx, const struct loadparm_substitution *lp_sub);\n'
+                    elif parameter['context'] == 'S':
+                        output_string += '(TALLOC_CTX *ctx, const struct loadparm_substitution *lp_sub, %s);\n' % param
+                    else:
+                        raise Exception(parameter['name'] + " has an invalid param type " + parameter['type'])
                 else:
-                    raise Exception(parameter['name'] + " has an invalid param type " + parameter['type'])
+                    if parameter['context'] == 'G':
+                        output_string = 'const ' + output_string + '(void);\n'
+                    elif parameter['context'] == 'S':
+                        output_string = 'const ' + output_string + '(%s);\n' % param
+                    else:
+                        raise Exception(parameter['name'] + " has an invalid param type " + parameter['type'])
             else:
                 if parameter['context'] == 'G':
                     output_string += '(void);\n'
@@ -239,8 +239,6 @@ def make_lib_proto(path_in, path_out):
                 continue
 
             output_string = ""
-            if parameter['constant']:
-                output_string += 'const '
             param_type = mapping.get(parameter['type'])
             if param_type is None:
                 raise Exception(parameter['name'] + " has an invalid context " + parameter['context'])
@@ -248,20 +246,21 @@ def make_lib_proto(path_in, path_out):
 
             output_string += "lpcfg_%s" % parameter['function']
 
-            if parameter['type'] == 'string' and parameter['substitution']:
-                if parameter['context'] == 'G':
-                    output_string += '(struct loadparm_context *, const struct loadparm_substitution *lp_sub, TALLOC_CTX *ctx);\n'
-                elif parameter['context'] == 'S':
-                    output_string += '(struct loadparm_service *, struct loadparm_service *, TALLOC_CTX *ctx);\n'
+            if parameter['type'] == 'string' or parameter['type'] == 'ustring':
+                if parameter['substitution']:
+                    if parameter['context'] == 'G':
+                        output_string += '(struct loadparm_context *, const struct loadparm_substitution *lp_sub, TALLOC_CTX *ctx);\n'
+                    elif parameter['context'] == 'S':
+                        output_string += '(struct loadparm_service *, struct loadparm_service *, TALLOC_CTX *ctx);\n'
+                    else:
+                        raise Exception(parameter['name'] + " has an invalid context " + parameter['context'])
                 else:
-                    raise Exception(parameter['name'] + " has an invalid context " + parameter['context'])
-            elif parameter['type'] == 'string' and not parameter['constant']:
-                if parameter['context'] == 'G':
-                    output_string += '(struct loadparm_context *, TALLOC_CTX *ctx);\n'
-                elif parameter['context'] == 'S':
-                    output_string += '(struct loadparm_service *, struct loadparm_service *, TALLOC_CTX *ctx);\n'
-                else:
-                    raise Exception(parameter['name'] + " has an invalid param type " + parameter['type'])
+                    if parameter['context'] == 'G':
+                        output_string = 'const ' + output_string + '(struct loadparm_context *);\n'
+                    elif parameter['context'] == 'S':
+                        output_string = 'const ' + output_string + '(struct loadparm_service *, struct loadparm_service *);\n'
+                    else:
+                        raise Exception(parameter['name'] + " has an invalid param type " + parameter['type'])
             else:
                 if parameter['context'] == 'G':
                     output_string += '(struct loadparm_context *);\n'