diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-02-28 13:12:39 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:52:09 -0500 |
commit | aa04388943fe5d7d8c873a6ee8a4cc9af2491532 (patch) | |
tree | 8073b268875c22e8e0785ddffef42fcf3af3dac1 /source4/lib/util/substitute.c | |
parent | 4d3cc7384338fe2182a2029c2e6d2fcca2ec8813 (diff) | |
download | samba-aa04388943fe5d7d8c873a6ee8a4cc9af2491532.tar.gz samba-aa04388943fe5d7d8c873a6ee8a4cc9af2491532.tar.bz2 samba-aa04388943fe5d7d8c873a6ee8a4cc9af2491532.zip |
r13752: Add doxyfile and fix formatting of comments. Current output is available at http://samba.org/~jelmer/util-api/
(This used to be commit 90812203df151a5e62394306827c72adfe13c63c)
Diffstat (limited to 'source4/lib/util/substitute.c')
-rw-r--r-- | source4/lib/util/substitute.c | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/source4/lib/util/substitute.c b/source4/lib/util/substitute.c index 34a2ad9f82..d461cedf4c 100644 --- a/source4/lib/util/substitute.c +++ b/source4/lib/util/substitute.c @@ -22,6 +22,11 @@ #include "includes.h" #include "smb_server/smb_server.h" +/** + * @file + * @brief Substitution handling + */ + /* oh bugger - I really didn't want to have a top-level context anywhere, but until we change all lp_*() calls to take a context argument this is needed */ @@ -66,7 +71,7 @@ void sub_set_remote_arch(const char *str) setup_string(&sub->remote_arch, str); } -/* +/** setup the string used by %U substitution */ void sub_set_user_name(const char *name) @@ -75,17 +80,17 @@ void sub_set_user_name(const char *name) setup_string(&sub->user_name, name); } -/**************************************************************************** -FOO -****************************************************************************/ +/** +FIXME +**/ void standard_sub_basic(char *str,size_t len) { } -/**************************************************************************** +/** Do some standard substitutions in a string. This function will return an allocated string that have to be freed. -****************************************************************************/ +**/ char *talloc_sub_basic(TALLOC_CTX *mem_ctx, const char *smb_name, const char *str) { return talloc_strdup(mem_ctx, str); @@ -96,10 +101,10 @@ char *alloc_sub_basic(const char *smb_name, const char *str) return strdup(str); } -/**************************************************************************** +/** Do some specific substitutions in a string. This function will return an allocated string that have to be freed. -****************************************************************************/ +**/ char *talloc_sub_specified(TALLOC_CTX *mem_ctx, const char *input_string, @@ -138,9 +143,9 @@ char *alloc_sub_advanced(int snum, const char *user, return strdup(str); } -/**************************************************************************** +/** Do some standard substitutions in a string. -****************************************************************************/ +**/ void standard_sub_tcon(struct smbsrv_tcon *tcon, char *str, size_t len) { @@ -156,9 +161,9 @@ char *alloc_sub_tcon(struct smbsrv_tcon *tcon, char *str) return strdup(str); } -/**************************************************************************** - Like standard_sub but by snum. -****************************************************************************/ +/** + Like standard_sub but by snum. FIXME +**/ void standard_sub_snum(int snum, char *str, size_t len) { |