From b0dfcde2f5fb086e7a7f54b16a47e0433661cca7 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Tue, 2 Jul 2024 10:14:59 -0400 Subject: [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 --- apps/fileop.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'apps/fileop.h') 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 @@ /*************************************************************************** - * __________ __ ___. - * Open \______ \ ____ ____ | | _\_ |__ _______ ___ - * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / - * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < - * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ - * \/ \/ \/ \/ \/ + * __________ __ ___. + * Open \______ \ ____ ____ | | _\_ |__ _______ ___ + * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / + * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < + * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ + * \/ \/ \/ \/ \/ * $Id$ * * Copyright (C) 2002 Björn Stenberg @@ -26,6 +26,7 @@ /* result codes of various file operations */ enum fileop_result_code { + FORC_PATH_EXISTS = -8, FORC_READ_FAILURE = -7, FORC_WRITE_FAILURE = -6, FORC_NO_BUFFER_AVAIL = -5, @@ -55,7 +56,6 @@ enum file_op_current FOC_MOVE, FOC_COPY, FOC_DELETE, - FOC_CREATE, }; int create_dir(void); @@ -64,7 +64,8 @@ int rename_file(const char *selected_file); int delete_fileobject(const char *selected_file); -int copy_move_fileobject(const char *src_path, const char *dst_path, - unsigned int flags); +int copy_move_fileobject(const char *src_path, + const char *dst_path, + unsigned int flags); #endif /* FILEOP_H */ -- cgit v1.2.3