1/* 2 * This program is free software; you can redistribute it and/or 3 * modify it under the terms of the GNU General Public License as 4 * published by the Free Software Foundation; either version 2 of 5 * the License, or (at your option) any later version. 6 * 7 * This program is distributed in the hope that it will be useful, 8 * but WITHOUT ANY WARRANTY; without even the implied warranty of 9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * GNU General Public License for more details. 11 * 12 * You should have received a copy of the GNU General Public License 13 * along with this program; if not, write to the Free Software 14 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 15 * MA 02111-1307 USA 16 */ 17#ifndef VSF_ACCESS_H 18#define VSF_ACCESS_H 19 20struct mystr; 21 22/* vsf_access_check_file() 23 * PURPOSE 24 * Check whether the current session has permission to access the given 25 * filename. 26 * PARAMETERS 27 * p_filename_str - the filename to check access for 28 * RETURNS 29 * Returns 1 if access is granted, otherwise 0. 30 */ 31int vsf_access_check_file(const struct mystr* p_filename_str); 32 33/* vsf_access_check_file_visible() 34 * PURPOSE 35 * Check whether the current session has permission to view the given 36 * filename in directory listings. 37 * PARAMETERS 38 * p_filename_str - the filename to check visibility for 39 * RETURNS 40 * Returns 1 if the file should be visible, otherwise 0. 41 */ 42int vsf_access_check_file_visible(const struct mystr* p_filename_str); 43 44#endif /* VSF_ACCESS_H */ 45 46