A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita
audio
rust
zig
deno
mpris
rockbox
mpd
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
26void file_binding_insert_first(struct file_base_binding *bindp);
27void file_binding_insert_last(struct file_base_binding *bindp);
28void file_binding_remove(struct file_base_binding *bindp);
29void file_binding_remove_next(struct file_base_binding *prevp,
30 struct file_base_binding *bindp);
31
32bool fileobj_mount(const struct file_base_info *srcinfop,
33 unsigned int callflags,
34 struct file_base_binding **bindpp);
35void fileobj_unmount(struct file_base_binding *bindp);
36
37void fileobj_fileop_open(struct filestr_base *stream,
38 const struct file_base_info *srcinfop,
39 unsigned int callflags);
40void fileobj_fileop_close(struct filestr_base *stream);
41void fileobj_fileop_create(struct filestr_base *stream,
42 const struct file_base_info *srcinfop,
43 unsigned int callflags);
44void fileobj_fileop_rename(struct filestr_base *stream,
45 const struct file_base_info *oldinfop);
46void fileobj_fileop_remove(struct filestr_base *stream,
47 const struct file_base_info *oldinfop);
48void fileobj_fileop_sync(struct filestr_base *stream);
49
50file_size_t * fileobj_get_sizep(const struct filestr_base *stream);
51unsigned int fileobj_get_flags(const struct filestr_base *stream);
52struct filestr_base * fileobj_get_next_stream(const struct filestr_base *stream,
53 const struct filestr_base *s);
54void fileobj_change_flags(struct filestr_base *stream,
55 unsigned int flags, unsigned int mask);
56void fileobj_mgr_unmount(IF_MV_NONVOID(int volume));
57
58void fileobj_mgr_init(void) INIT_ATTR;
59
60#endif /* _FILEOBJ_MGR_H_ */