💾 Archived View for gemini.rmf-dev.com › repo › Vaati › mz › files › 055997dcbcc7ebdbf932cfa629fca85… captured on 2023-11-14 at 08:29:25. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-09-08)

-=-=-=-=-=-=-

Go Back

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 void *other; /* custom data for non-regular entry */

21 };

22

23 int file_init(struct view* view, const char *path);

24 int file_ls(struct view *view);

25 int file_reload(struct view *view);

26 int file_cd(struct view *view, const char *path);

27 int file_up(struct view *view);

28 int file_select(struct view *view, const char *path);

29 int file_move_entry(struct view *view, struct entry *entry);

30 int file_move(const char *oldpath, int srcdir, const char *oldname,

31 int dstdir, const char *newpath, const char *newname);

32 int file_copy(int src, int dst, int usebuf);

33 int file_copy_entry(struct view *view, struct entry *entry);

34 void file_free(struct view *view);

35 int file_sort(const void* a, const void* b);

36