access.h 770 B

1234567891011121314151617181920212223242526272829
  1. #ifndef VSF_ACCESS_H
  2. #define VSF_ACCESS_H
  3. struct mystr;
  4. /* vsf_access_check_file()
  5. * PURPOSE
  6. * Check whether the current session has permission to access the given
  7. * filename.
  8. * PARAMETERS
  9. * p_filename_str - the filename to check access for
  10. * RETURNS
  11. * Returns 1 if access is granted, otherwise 0.
  12. */
  13. int vsf_access_check_file(const struct mystr* p_filename_str);
  14. /* vsf_access_check_file_visible()
  15. * PURPOSE
  16. * Check whether the current session has permission to view the given
  17. * filename in directory listings.
  18. * PARAMETERS
  19. * p_filename_str - the filename to check visibility for
  20. * RETURNS
  21. * Returns 1 if the file should be visible, otherwise 0.
  22. */
  23. int vsf_access_check_file_visible(const struct mystr* p_filename_str);
  24. #endif /* VSF_ACCESS_H */