2 Unix SMB/CIFS implementation.
3 string substitution functions
4 Copyright (C) Andrew Tridgell 1992-2000
5 Copyright (C) Gerald Carter 2006
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
24 void set_remote_proto(const char *proto
);
25 bool set_local_machine_name(const char *local_name
, bool perm
);
26 const char *get_local_machine_name(void);
27 bool set_remote_machine_name(const char *remote_name
, bool perm
);
28 const char *get_remote_machine_name(void);
29 void sub_set_socket_ids(const char *peeraddr
, const char *peername
,
30 const char *sockaddr
);
31 void set_current_user_info(const char *smb_name
,
32 const char *unix_name
,
34 const char *get_current_username(void);
35 const char *get_current_user_info_domain(void);
36 void standard_sub_basic(const char *smb_name
,
37 const char *domain_name
,
40 char *talloc_sub_basic(TALLOC_CTX
*mem_ctx
,
42 const char *domain_name
,
44 char *talloc_sub_specified(TALLOC_CTX
*mem_ctx
,
45 const char *input_string
,
51 char *talloc_sub_advanced(TALLOC_CTX
*ctx
,
52 const char *servicename
,
54 const char *connectpath
,
57 char *talloc_sub_full(TALLOC_CTX
*ctx
,
58 const char *servicename
,
60 const char *connectpath
,
63 const char *domain_name
,