diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-07-07 20:33:55 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-07-08 11:23:23 +0200 |
commit | 6b2749f8a9f527c1d52ba76566c661cab30b59c6 (patch) | |
tree | e2a07d6c5bd59d387c27ebd926841dad701f9a01 /source3/include | |
parent | 198ad4df31e5e4ab177d0abb851cb5c0c527f8d4 (diff) | |
download | samba-6b2749f8a9f527c1d52ba76566c661cab30b59c6.tar.gz samba-6b2749f8a9f527c1d52ba76566c661cab30b59c6.tar.bz2 samba-6b2749f8a9f527c1d52ba76566c661cab30b59c6.zip |
param: Add hooks to s3 parm_struct and the parameters void * pointer
This is to that the pyparam hooks can use the hooks to connect with
the s3 loadparm system. This now also includes per-service
parameters.
Andrew Bartlett
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/proto.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 6d901a07dc..d719bd9089 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -1549,6 +1549,8 @@ int lp_server_signing(void); int lp_client_ldap_sasl_wrapping(void); char *lp_parm_talloc_string(int snum, const char *type, const char *option, const char *def); const char *lp_parm_const_string(int snum, const char *type, const char *option, const char *def); +struct loadparm_service; +const char *lp_parm_const_string_service(struct loadparm_service *service, const char *type, const char *option); const char **lp_parm_string_list(int snum, const char *type, const char *option, const char **def); int lp_parm_int(int snum, const char *type, const char *option, int def); unsigned long lp_parm_ulong(int snum, const char *type, const char *option, unsigned long def); @@ -1586,8 +1588,9 @@ const char *lp_ldap_machine_suffix(void); const char *lp_ldap_user_suffix(void); const char *lp_ldap_group_suffix(void); const char *lp_ldap_idmap_suffix(void); -struct loadparm_service; struct parm_struct; +/* Return a pointer to a service by name. */ +struct loadparm_service *lp_service(const char *pszServiceName); void *lp_parm_ptr(struct loadparm_service *service, struct parm_struct *parm); void *lp_local_ptr_by_snum(int snum, struct parm_struct *parm); bool lp_do_parameter(int snum, const char *pszParmName, const char *pszParmValue); |