Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / vsftpd / banner.h
blob0f3fc42307bbd846f20e8700e445d28b52a025a5
1 #ifndef VSF_BANNER_H
2 #define VSF_BANNER_H
4 struct vsf_session;
5 struct mystr;
7 /* vsf_banner_dir_changed()
8 * PURPOSE
9 * This function, when called, will check if the current directory has just
10 * been entered for the first time in this session. If so, and message file
11 * support is on, a message file is looked for (default .message), and output
12 * to the FTP control connection with the FTP code prefix specified by
13 * "ftpcode".
14 * PARAMETERS
15 * p_sess - the current FTP session object
16 * ftpcode - the FTP code to show with the message
18 void vsf_banner_dir_changed(struct vsf_session* p_sess, int ftpcode);
20 /* vsf_banner_write()
21 * PURPOSE
22 * This function, when called, will write the specified string as a multiline
23 * FTP banner, using the specified FTP response code.
24 * PARAMETERS
25 * p_sess - the current FTP session object
26 * p_str - the string to write
27 * ftpcode - the FTP code to show with the message
29 void vsf_banner_write(struct vsf_session* p_sess, struct mystr* p_str,
30 int ftpcode);
32 #endif /* VSF_BANNER_H */