diff options
Diffstat (limited to 'firmware/include/fileobj_mgr.h')
-rw-r--r-- | firmware/include/fileobj_mgr.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/firmware/include/fileobj_mgr.h b/firmware/include/fileobj_mgr.h new file mode 100644 index 0000000000..c90a59bea0 --- /dev/null +++ b/firmware/include/fileobj_mgr.h | |||
@@ -0,0 +1,56 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2014 by Michael Sevakis | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | #ifndef _FILEOBJ_MGR_H_ | ||
22 | #define _FILEOBJ_MGR_H_ | ||
23 | |||
24 | #include "file_internal.h" | ||
25 | |||
26 | void file_binding_insert_first(struct file_base_binding *bindp); | ||
27 | void file_binding_insert_last(struct file_base_binding *bindp); | ||
28 | void file_binding_remove(struct file_base_binding *bindp); | ||
29 | void file_binding_remove_next(struct file_base_binding *prevp, | ||
30 | struct file_base_binding *bindp); | ||
31 | |||
32 | void fileobj_fileop_open(struct filestr_base *stream, | ||
33 | const struct file_base_info *srcinfop, | ||
34 | unsigned int callflags); | ||
35 | void fileobj_fileop_close(struct filestr_base *stream); | ||
36 | void fileobj_fileop_create(struct filestr_base *stream, | ||
37 | const struct file_base_info *srcinfop, | ||
38 | unsigned int callflags); | ||
39 | void fileobj_fileop_rename(struct filestr_base *stream, | ||
40 | const struct file_base_info *oldinfop); | ||
41 | void fileobj_fileop_remove(struct filestr_base *stream, | ||
42 | const struct file_base_info *oldinfop); | ||
43 | void fileobj_fileop_sync(struct filestr_base *stream); | ||
44 | void fileobj_fileop_truncate(struct filestr_base *stream); | ||
45 | extern void ftruncate_internal_callback(struct filestr_base *stream, | ||
46 | struct filestr_base *s); | ||
47 | |||
48 | file_size_t * fileobj_get_sizep(const struct filestr_base *stream); | ||
49 | unsigned int fileobj_get_flags(const struct filestr_base *stream); | ||
50 | void fileobj_change_flags(struct filestr_base *stream, | ||
51 | unsigned int flags, unsigned int mask); | ||
52 | void fileobj_mgr_unmount(IF_MV_NONVOID(int volume)); | ||
53 | |||
54 | void fileobj_mgr_init(void) INIT_ATTR; | ||
55 | |||
56 | #endif /* _FILEOBJ_MGR_H_ */ | ||