💾 Archived View for gemini.rmf-dev.com › repo › Vaati › mz › files › b751f41453b383ee4a6a4256a184bfe… captured on 2023-03-20 at 18:35:23. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
0 /*
1 * Copyright (c) 2023 RMF <rawmonk@firemail.cc>
2 *
3 * Permission to use, copy, modify, and distribute this software for any
4 * purpose with or without fee is hereby granted, provided that the above
5 * copyright notice and this permission notice appear in all copies.
6 *
7 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14 */
15
16 struct entry {
17 char name[1024];
18 int type;
19 int selected;
20 };
21
22 int file_init(struct view* view, const char *path);
23 int file_ls(struct view *view);
24 int file_reload(struct view *view);
25 int file_cd(struct view *view, const char *path);
26 int file_up(struct view *view);
27 int file_select(struct view *view, const char *path);
28 int file_move_entry(struct view *view, struct entry *entry);
29 int file_move(const char *oldpath, int srcdir, const char *oldname,
30 int dstdir, const char *newpath, const char *newname);
31 int file_copy(int src, int dst, int usebuf);
32 int file_copy_entry(struct view *view, struct entry *entry);
33 void file_free(struct view *view);
34