diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-07-18 15:07:23 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-07-18 15:07:23 +0930 |
commit | fe72740e8221575921c22030d6d4fcb19201b03b (patch) | |
tree | 0b1bb254e23d6541eede8f2ff4494af477fd5566 /source3/include | |
parent | c809eec53fb1d2a36909e4934dff349f91e3359e (diff) | |
download | samba-fe72740e8221575921c22030d6d4fcb19201b03b.tar.gz samba-fe72740e8221575921c22030d6d4fcb19201b03b.tar.bz2 samba-fe72740e8221575921c22030d6d4fcb19201b03b.zip |
loadparm: make the source3/ lp_ functions take an explicit TALLOC_CTX *.
They use talloc_tos() internally: hoist that up to the callers, some
of whom don't want to us talloc_tos().
A simple patch, but hits a lot of files.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/proto.h | 162 |
1 files changed, 81 insertions, 81 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 95dded820d..d4be239120 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -1019,34 +1019,34 @@ NTSTATUS change_trust_account_password( const char *domain, const char *remote_m const char *lp_smb_ports(void); const char *lp_dos_charset(void); const char *lp_unix_charset(void); -char *lp_logfile(void); -char *lp_configfile(void); +char *lp_logfile(TALLOC_CTX *ctx); +char *lp_configfile(TALLOC_CTX *ctx); const char *lp_smb_passwd_file(void); const char *lp_private_dir(void); -char *lp_serverstring(void); +char *lp_serverstring(TALLOC_CTX *ctx); int lp_printcap_cache_time(void); -char *lp_addport_cmd(void); -char *lp_enumports_cmd(void); -char *lp_addprinter_cmd(void); -char *lp_deleteprinter_cmd(void); -char *lp_os2_driver_map(void); +char *lp_addport_cmd(TALLOC_CTX *ctx); +char *lp_enumports_cmd(TALLOC_CTX *ctx); +char *lp_addprinter_cmd(TALLOC_CTX *ctx); +char *lp_deleteprinter_cmd(TALLOC_CTX *ctx); +char *lp_os2_driver_map(TALLOC_CTX *ctx); const char *lp_lockdir(void); const char *lp_statedir(void); const char *lp_cachedir(void); const char *lp_piddir(void); -char *lp_mangling_method(void); +char *lp_mangling_method(TALLOC_CTX *ctx); int lp_mangle_prefix(void); const char *lp_utmpdir(void); const char *lp_wtmpdir(void); bool lp_utmp(void); -char *lp_rootdir(void); -char *lp_defaultservice(void); -char *lp_msg_command(void); -char *lp_get_quota_command(void); -char *lp_set_quota_command(void); -char *lp_auto_services(void); -char *lp_passwd_program(void); -char *lp_passwd_chat(void); +char *lp_rootdir(TALLOC_CTX *ctx); +char *lp_defaultservice(TALLOC_CTX *ctx); +char *lp_msg_command(TALLOC_CTX *ctx); +char *lp_get_quota_command(TALLOC_CTX *ctx); +char *lp_set_quota_command(TALLOC_CTX *ctx); +char *lp_auto_services(TALLOC_CTX *ctx); +char *lp_passwd_program(TALLOC_CTX *ctx); +char *lp_passwd_chat(TALLOC_CTX *ctx); const char *lp_passwordserver(void); const char *lp_name_resolve_order(void); const char *lp_netbios_scope(void); @@ -1056,39 +1056,39 @@ const char *lp_realm(void); const char *lp_dnsdomain(void); const char *lp_afs_username_map(void); int lp_afs_token_lifetime(void); -char *lp_log_nt_token_command(void); -char *lp_username_map(void); +char *lp_log_nt_token_command(TALLOC_CTX *ctx); +char *lp_username_map(TALLOC_CTX *ctx); const char *lp_logon_script(void); const char *lp_logon_path(void); const char *lp_logon_drive(void); const char *lp_logon_home(void); -char *lp_remote_announce(void); -char *lp_remote_browse_sync(void); +char *lp_remote_announce(TALLOC_CTX *ctx); +char *lp_remote_browse_sync(TALLOC_CTX *ctx); bool lp_nmbd_bind_explicit_broadcast(void); const char **lp_wins_server_list(void); const char **lp_interfaces(void); const char *lp_socket_address(void); -char *lp_nis_home_map_name(void); +char *lp_nis_home_map_name(TALLOC_CTX *ctx); const char **lp_netbios_aliases(void); const char *lp_passdb_backend(void); const char **lp_preload_modules(void); -char *lp_panic_action(void); -char *lp_adduser_script(void); -char *lp_renameuser_script(void); -char *lp_deluser_script(void); +char *lp_panic_action(TALLOC_CTX *ctx); +char *lp_adduser_script(TALLOC_CTX *ctx); +char *lp_renameuser_script(TALLOC_CTX *ctx); +char *lp_deluser_script(TALLOC_CTX *ctx); const char *lp_guestaccount(void); -char *lp_addgroup_script(void); -char *lp_delgroup_script(void); -char *lp_addusertogroup_script(void); -char *lp_deluserfromgroup_script(void); -char *lp_setprimarygroup_script(void); -char *lp_addmachine_script(void); -char *lp_shutdown_script(void); -char *lp_abort_shutdown_script(void); -char *lp_username_map_script(void); +char *lp_addgroup_script(TALLOC_CTX *ctx); +char *lp_delgroup_script(TALLOC_CTX *ctx); +char *lp_addusertogroup_script(TALLOC_CTX *ctx); +char *lp_deluserfromgroup_script(TALLOC_CTX *ctx); +char *lp_setprimarygroup_script(TALLOC_CTX *ctx); +char *lp_addmachine_script(TALLOC_CTX *ctx); +char *lp_shutdown_script(TALLOC_CTX *ctx); +char *lp_abort_shutdown_script(TALLOC_CTX *ctx); +char *lp_username_map_script(TALLOC_CTX *ctx); int lp_username_map_cache_time(void); -char *lp_check_password_script(void); -char *lp_wins_hook(void); +char *lp_check_password_script(TALLOC_CTX *ctx); +char *lp_wins_hook(TALLOC_CTX *ctx); const char *lp_template_homedir(void); const char *lp_template_shell(void); const char *lp_winbind_separator(void); @@ -1110,8 +1110,8 @@ int lp_idmap_cache_time(void); int lp_idmap_negative_cache_time(void); int lp_keepalive(void); bool lp_passdb_expand_explicit(void); -char *lp_ldap_suffix(void); -char *lp_ldap_admin_dn(void); +char *lp_ldap_suffix(TALLOC_CTX *ctx); +char *lp_ldap_admin_dn(TALLOC_CTX *ctx); int lp_ldap_ssl(void); bool lp_ldap_ssl_ads(void); int lp_ldap_deref(void); @@ -1124,10 +1124,10 @@ int lp_ldap_connection_timeout(void); int lp_ldap_page_size(void); int lp_ldap_debug_level(void); int lp_ldap_debug_threshold(void); -char *lp_add_share_cmd(void); -char *lp_change_share_cmd(void); -char *lp_delete_share_cmd(void); -char *lp_usershare_path(void); +char *lp_add_share_cmd(TALLOC_CTX *ctx); +char *lp_change_share_cmd(TALLOC_CTX *ctx); +char *lp_delete_share_cmd(TALLOC_CTX *ctx); +char *lp_usershare_path(TALLOC_CTX *ctx); const char **lp_usershare_prefix_allow_list(void); const char **lp_usershare_prefix_deny_list(void); const char **lp_eventlog_list(void); @@ -1231,23 +1231,23 @@ int lp_smb2_max_read(void); int lp_smb2_max_write(void); int lp_smb2_max_trans(void); int lp_smb2_max_credits(void); -char *lp_preexec(int ); -char *lp_postexec(int ); -char *lp_rootpreexec(int ); -char *lp_rootpostexec(int ); -char *lp_servicename(int ); +char *lp_preexec(TALLOC_CTX *ctx, int ); +char *lp_postexec(TALLOC_CTX *ctx, int ); +char *lp_rootpreexec(TALLOC_CTX *ctx, int ); +char *lp_rootpostexec(TALLOC_CTX *ctx, int ); +char *lp_servicename(TALLOC_CTX *ctx, int ); const char *lp_const_servicename(int ); -char *lp_pathname(int ); -char *lp_dontdescend(int ); -char *lp_username(int ); +char *lp_pathname(TALLOC_CTX *ctx, int ); +char *lp_dontdescend(TALLOC_CTX *ctx, int ); +char *lp_username(TALLOC_CTX *ctx, int ); const char **lp_invalid_users(int ); const char **lp_valid_users(int ); const char **lp_admin_users(int ); const char **lp_svcctl_list(void); -char *lp_cups_options(int ); -char *lp_cups_server(void); +char *lp_cups_options(TALLOC_CTX *ctx, int ); +char *lp_cups_server(TALLOC_CTX *ctx); int lp_cups_encrypt(void); -char *lp_iprint_server(void); +char *lp_iprint_server(TALLOC_CTX *ctx); int lp_cups_connection_timeout(void); const char *lp_ctdbd_socket(void); const char *_lp_ctdbd_socket(void); @@ -1255,32 +1255,32 @@ const char **lp_cluster_addresses(void); bool lp_clustering(void); int lp_ctdb_timeout(void); int lp_ctdb_locktime_warn_threshold(void); -char *lp_printcommand(int ); -char *lp_lpqcommand(int ); -char *lp_lprmcommand(int ); -char *lp_lppausecommand(int ); -char *lp_lpresumecommand(int ); -char *lp_queuepausecommand(int ); -char *lp_queueresumecommand(int ); +char *lp_printcommand(TALLOC_CTX *ctx, int ); +char *lp_lpqcommand(TALLOC_CTX *ctx, int ); +char *lp_lprmcommand(TALLOC_CTX *ctx, int ); +char *lp_lppausecommand(TALLOC_CTX *ctx, int ); +char *lp_lpresumecommand(TALLOC_CTX *ctx, int ); +char *lp_queuepausecommand(TALLOC_CTX *ctx, int ); +char *lp_queueresumecommand(TALLOC_CTX *ctx, int ); const char *lp_printjob_username(int ); const char **lp_hostsallow(int ); const char **lp_hostsdeny(int ); -char *lp_magicscript(int ); -char *lp_magicoutput(int ); -char *lp_comment(int ); -char *lp_force_user(int ); -char *lp_force_group(int ); +char *lp_magicscript(TALLOC_CTX *ctx, int ); +char *lp_magicoutput(TALLOC_CTX *ctx, int ); +char *lp_comment(TALLOC_CTX *ctx, int ); +char *lp_force_user(TALLOC_CTX *ctx, int ); +char *lp_force_group(TALLOC_CTX *ctx, int ); const char **lp_readlist(int ); const char **lp_writelist(int ); -char *lp_fstype(int ); +char *lp_fstype(TALLOC_CTX *ctx, int ); const char **lp_vfs_objects(int ); -char *lp_msdfs_proxy(int ); -char *lp_veto_files(int ); -char *lp_hide_files(int ); -char *lp_veto_oplocks(int ); +char *lp_msdfs_proxy(TALLOC_CTX *ctx, int ); +char *lp_veto_files(TALLOC_CTX *ctx, int ); +char *lp_hide_files(TALLOC_CTX *ctx, int ); +char *lp_veto_oplocks(TALLOC_CTX *ctx, int ); bool lp_msdfs_root(int ); -char *lp_aio_write_behind(int ); -char *lp_dfree_command(int ); +char *lp_aio_write_behind(TALLOC_CTX *ctx, int ); +char *lp_dfree_command(TALLOC_CTX *ctx, int ); bool lp_autoloaded(int ); bool lp_preexec_close(int ); bool lp_rootpreexec_close(int ); @@ -1379,7 +1379,7 @@ int lp_name_cache_timeout(void); int lp_client_signing(void); 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); +char *lp_parm_talloc_string(TALLOC_CTX *ctx, 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); @@ -1416,10 +1416,10 @@ bool lp_config_backend_is_file(void); bool lp_file_list_changed(void); bool lp_idmap_uid(uid_t *low, uid_t *high); bool lp_idmap_gid(gid_t *low, gid_t *high); -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); +const char *lp_ldap_machine_suffix(TALLOC_CTX *ctx); +const char *lp_ldap_user_suffix(TALLOC_CTX *ctx); +const char *lp_ldap_group_suffix(TALLOC_CTX *ctx); +const char *lp_ldap_idmap_suffix(TALLOC_CTX *ctx); struct parm_struct; /* Return a pointer to a service by name. */ struct loadparm_service *lp_service(const char *pszServiceName); @@ -1480,14 +1480,14 @@ void lp_dump_one(FILE * f, bool show_defaults, int snum); int lp_servicenumber(const char *pszServiceName); struct share_params *get_share_params(TALLOC_CTX *mem_ctx, const char *sharename); -const char *volume_label(int snum); +const char *volume_label(TALLOC_CTX *ctx, int snum); bool lp_domain_master(void); bool lp_preferred_master(void); void lp_remove_service(int snum); void lp_copy_service(int snum, const char *new_name); int lp_default_server_announce(void); void lp_set_name_resolve_order(const char *new_order); -const char *lp_printername(int snum); +const char *lp_printername(TALLOC_CTX *ctx, int snum); void lp_set_logfile(const char *name); int lp_maxprintjobs(int snum); const char *lp_printcapname(void); @@ -1504,7 +1504,7 @@ void lp_set_posix_pathnames(void); enum brl_flavour lp_posix_cifsu_locktype(files_struct *fsp); void lp_set_posix_default_cifsx_readwrite_locktype(enum brl_flavour val); int lp_min_receive_file_size(void); -char* lp_perfcount_module(void); +char* lp_perfcount_module(TALLOC_CTX *ctx); void widelinks_warning(int snum); const char *lp_ncalrpc_dir(void); void _lp_set_server_role(int server_role); |