From 1fef5a529c875cf518af8a235f0dc9f9c638fd3c Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 7 May 1997 17:59:34 +0000 Subject: (ftp_conn_add_stat_fun_t): Make first 3 params const. Update comment to say they should be copied if retained. --- libftpconn/ftpconn.h | 11 ++++++----- 1 file 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. */ -- cgit v1.2.3