udf_file.h

Go to the documentation of this file.
00001 /*  
00002     $Id: udf_file.h,v 1.7 2005/11/06 19:12:35 rocky Exp $
00003     Copyright (C) 2005 Rocky Bernstein <rocky@panix.com>
00004 
00005     This program is free software; you can redistribute it and/or modify
00006     it under the terms of the GNU General Public License as published by
00007     the Free Software Foundation; either version 2 of the License, or
00008     (at your option) any later version.
00009 
00010     This program is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013     GNU General Public License for more details.
00014 
00015     You should have received a copy of the GNU General Public License
00016     along with this program; if not, write to the Free Software
00017     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 */
00019 
00027 #ifndef UDF_FILE_H
00028 #define UDF_FILE_H 
00029 
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif /* __cplusplus */
00033 
00037   bool udf_get_fileid_descriptor(const udf_dirent_t *p_udf_dirent, 
00038                                  /*out*/ udf_fileid_desc_t *p_udf_fid);
00039 
00043   const char *udf_get_filename(const udf_dirent_t *p_udf_dirent);
00044   
00048   bool udf_get_file_entry(const udf_dirent_t *p_udf_dirent, 
00049                           /*out*/ udf_file_entry_t *p_udf_fe);
00050 
00054   uint16_t udf_get_link_count(const udf_dirent_t *p_udf_dirent);
00055 
00059   uint64_t udf_get_file_length(const udf_dirent_t *p_udf_dirent);
00060 
00064   mode_t udf_get_posix_filemode(const udf_dirent_t *p_udf_dirent);
00065 
00069   udf_dirent_t *udf_opendir(const udf_dirent_t *p_udf_dirent);
00070   
00078   driver_return_code_t udf_read_block(const udf_dirent_t *p_udf_dirent, 
00079                                       void * buf, size_t count);
00080 
00089   udf_dirent_t *udf_readdir(udf_dirent_t *p_udf_dirent);
00090   
00094   bool udf_dirent_free(udf_dirent_t *p_udf_dirent);
00095   
00099   bool udf_is_dir(const udf_dirent_t *p_udf_dirent);
00100   
00101 #ifdef __cplusplus
00102 }
00103 #endif /* __cplusplus */
00104 
00105 #endif /*UDF_FILE_H*/

Generated on Thu Oct 5 09:21:38 2006 for libcdio by  doxygen 1.4.7