banner.h 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. #ifndef VSF_BANNER_H
  2. #define VSF_BANNER_H
  3. struct vsf_session;
  4. struct mystr;
  5. /* vsf_banner_dir_changed()
  6. * PURPOSE
  7. * This function, when called, will check if the current directory has just
  8. * been entered for the first time in this session. If so, and message file
  9. * support is on, a message file is looked for (default .message), and output
  10. * to the FTP control connection with the FTP code prefix specified by
  11. * "ftpcode".
  12. * PARAMETERS
  13. * p_sess - the current FTP session object
  14. * ftpcode - the FTP code to show with the message
  15. */
  16. void vsf_banner_dir_changed(struct vsf_session* p_sess, int ftpcode);
  17. /* vsf_banner_write()
  18. * PURPOSE
  19. * This function, when called, will write the specified string as a multiline
  20. * FTP banner, using the specified FTP response code.
  21. * PARAMETERS
  22. * p_sess - the current FTP session object
  23. * p_str - the string to write
  24. * ftpcode - the FTP code to show with the message
  25. */
  26. void vsf_banner_write(struct vsf_session* p_sess, struct mystr* p_str,
  27. int ftpcode);
  28. #endif /* VSF_BANNER_H */