libcdio  0.93
udf_file.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2005, 2006, 2008 Rocky Bernstein <rocky@gnu.org>
3 
4  This program is free software: you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation, either version 3 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17 
25 #ifndef UDF_FILE_H
26 #define UDF_FILE_H
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif /* __cplusplus */
31 
35  bool udf_get_fileid_descriptor(const udf_dirent_t *p_udf_dirent,
36  /*out*/ udf_fileid_desc_t *p_udf_fid);
37 
41  const char *udf_get_filename(const udf_dirent_t *p_udf_dirent);
42 
46  bool udf_get_file_entry(const udf_dirent_t *p_udf_dirent,
47  /*out*/ udf_file_entry_t *p_udf_fe);
48 
52  uint16_t udf_get_link_count(const udf_dirent_t *p_udf_dirent);
53 
57  uint64_t udf_get_file_length(const udf_dirent_t *p_udf_dirent);
58 
62  mode_t udf_get_posix_filemode(const udf_dirent_t *p_udf_dirent);
63 
67  udf_dirent_t *udf_opendir(const udf_dirent_t *p_udf_dirent);
68 
88  ssize_t udf_read_block(const udf_dirent_t *p_udf_dirent,
89  void * buf, size_t count);
90 
99  udf_dirent_t *udf_readdir(udf_dirent_t *p_udf_dirent);
100 
104  bool udf_dirent_free(udf_dirent_t *p_udf_dirent);
105 
109  bool udf_is_dir(const udf_dirent_t *p_udf_dirent);
110 
111 #ifdef __cplusplus
112 }
113 #endif /* __cplusplus */
114 
115 #endif /*UDF_FILE_H*/
bool udf_get_fileid_descriptor(const udf_dirent_t *p_udf_dirent, udf_fileid_desc_t *p_udf_fid)
mode_t udf_get_posix_filemode(const udf_dirent_t *p_udf_dirent)
uint16_t udf_get_link_count(const udf_dirent_t *p_udf_dirent)
bool udf_get_file_entry(const udf_dirent_t *p_udf_dirent, udf_file_entry_t *p_udf_fe)
bool udf_dirent_free(udf_dirent_t *p_udf_dirent)
udf_dirent_t * udf_readdir(udf_dirent_t *p_udf_dirent)
Definition: udf.h:39
uint64_t udf_get_file_length(const udf_dirent_t *p_udf_dirent)
ssize_t udf_read_block(const udf_dirent_t *p_udf_dirent, void *buf, size_t count)
const char * udf_get_filename(const udf_dirent_t *p_udf_dirent)
bool udf_is_dir(const udf_dirent_t *p_udf_dirent)
udf_dirent_t * udf_opendir(const udf_dirent_t *p_udf_dirent)
Definition: ecma_167.h:735
Definition: ecma_167.h:578