summaryrefslogtreecommitdiff
path: root/libftpconn/ftpconn.h
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-05-07 17:59:34 +0000
committerMiles Bader <miles@gnu.org>1997-05-07 17:59:34 +0000
commit1fef5a529c875cf518af8a235f0dc9f9c638fd3c (patch)
treec2747875d4cb0de69a5ebfb4c7f4e3eb86d80658 /libftpconn/ftpconn.h
parent96d4f248ede194e42e46aef1acde4590351effa7 (diff)
(ftp_conn_add_stat_fun_t):
Make first 3 params const. Update comment to say they should be copied if retained.
Diffstat (limited to 'libftpconn/ftpconn.h')
-rw-r--r--libftpconn/ftpconn.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/libftpconn/ftpconn.h b/libftpconn/ftpconn.h
index 221a10dd..bd83104a 100644
--- a/libftpconn/ftpconn.h
+++ b/libftpconn/ftpconn.h
@@ -34,11 +34,12 @@ struct ftp_conn_stat;
/* The type of the function called by ...get_stats to add each new stat.
NAME is the file in question, STAT is stat info about it, and if NAME is a
- symlink, SYMLINK_TARGET is what it is linked to, or 0 if it's not a symlink.
- NAME is malloced and should be freed by the callee if it's not saved.
- HOOK is as passed into ...get_stats. */
-typedef error_t (*ftp_conn_add_stat_fun_t) (char *name, struct stat *stat,
- char *symlink_target,
+ symlink, SYMLINK_TARGET is what it is linked to, or 0 if it's not a
+ symlink. NAME and SYMLINK_TARGET should be copied if they are used
+ outside of this function. HOOK is as passed into ...get_stats. */
+typedef error_t (*ftp_conn_add_stat_fun_t) (const char *name,
+ const struct stat *stat,
+ const char *symlink_target,
void *hook);
/* Hooks that customize behavior for particular types of remote system. */