00001 #ifndef VSF_ACCESS_H 00002 #define VSF_ACCESS_H 00003 00004 struct mystr; 00005 00006 /* vsf_access_check_file() 00007 * PURPOSE 00008 * Check whether the current session has permission to access the given 00009 * filename. 00010 * PARAMETERS 00011 * p_filename_str - the filename to check access for 00012 * RETURNS 00013 * Returns 1 if access is granted, otherwise 0. 00014 */ 00015 int vsf_access_check_file(const struct mystr* p_filename_str); 00016 00017 /* vsf_access_check_file_visible() 00018 * PURPOSE 00019 * Check whether the current session has permission to view the given 00020 * filename in directory listings. 00021 * PARAMETERS 00022 * p_filename_str - the filename to check visibility for 00023 * RETURNS 00024 * Returns 1 if the file should be visible, otherwise 0. 00025 */ 00026 int vsf_access_check_file_visible(const struct mystr* p_filename_str); 00027 00028 #endif /* VSF_ACCESS_H */ 00029
1.4.7