diff options
author | William Wilgus <wilgus.william@gmail.com> | 2024-07-02 10:14:59 -0400 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2024-07-04 12:44:04 -0400 |
commit | b0dfcde2f5fb086e7a7f54b16a47e0433661cca7 (patch) | |
tree | 7336885079c98b5d0d3f245968882187164591ae /apps/fileop.h | |
parent | 3e9ca6ec8ed5d452db482ae3cffb66e5330ec244 (diff) | |
download | rockbox-b0dfcde2f5fb086e7a7f54b16a47e0433661cca7.tar.gz rockbox-b0dfcde2f5fb086e7a7f54b16a47e0433661cca7.zip |
[Cleanup] onplay.c fileop.c
clean-up a bit more
add/correct some comments
fix some error passing
guard delete path on PATH_TOO_LONG
add some cpu_boost
Change-Id: Icf179dd727271bdc61ab78400e10847222b9f858
Diffstat (limited to 'apps/fileop.h')
-rw-r--r-- | apps/fileop.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/apps/fileop.h b/apps/fileop.h index f8237dc64f..f477549977 100644 --- a/apps/fileop.h +++ b/apps/fileop.h | |||
@@ -1,10 +1,10 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | * __________ __ ___. | 2 | * __________ __ ___. |
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | 3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | 4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / |
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | 5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < |
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | 6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ |
7 | * \/ \/ \/ \/ \/ | 7 | * \/ \/ \/ \/ \/ |
8 | * $Id$ | 8 | * $Id$ |
9 | * | 9 | * |
10 | * Copyright (C) 2002 Björn Stenberg | 10 | * Copyright (C) 2002 Björn Stenberg |
@@ -26,6 +26,7 @@ | |||
26 | /* result codes of various file operations */ | 26 | /* result codes of various file operations */ |
27 | enum fileop_result_code | 27 | enum fileop_result_code |
28 | { | 28 | { |
29 | FORC_PATH_EXISTS = -8, | ||
29 | FORC_READ_FAILURE = -7, | 30 | FORC_READ_FAILURE = -7, |
30 | FORC_WRITE_FAILURE = -6, | 31 | FORC_WRITE_FAILURE = -6, |
31 | FORC_NO_BUFFER_AVAIL = -5, | 32 | FORC_NO_BUFFER_AVAIL = -5, |
@@ -55,7 +56,6 @@ enum file_op_current | |||
55 | FOC_MOVE, | 56 | FOC_MOVE, |
56 | FOC_COPY, | 57 | FOC_COPY, |
57 | FOC_DELETE, | 58 | FOC_DELETE, |
58 | FOC_CREATE, | ||
59 | }; | 59 | }; |
60 | 60 | ||
61 | int create_dir(void); | 61 | int create_dir(void); |
@@ -64,7 +64,8 @@ int rename_file(const char *selected_file); | |||
64 | 64 | ||
65 | int delete_fileobject(const char *selected_file); | 65 | int delete_fileobject(const char *selected_file); |
66 | 66 | ||
67 | int copy_move_fileobject(const char *src_path, const char *dst_path, | 67 | int copy_move_fileobject(const char *src_path, |
68 | unsigned int flags); | 68 | const char *dst_path, |
69 | unsigned int flags); | ||
69 | 70 | ||
70 | #endif /* FILEOP_H */ | 71 | #endif /* FILEOP_H */ |