VitaShell/io_process.h

72 lines
1.7 KiB
C
Raw Normal View History

2016-08-06 06:59:41 +00:00
/*
2017-10-13 10:42:36 +00:00
VitaShell
2017-12-30 10:43:37 +00:00
Copyright (C) 2015-2018, TheFloW
2016-08-06 06:59:41 +00:00
2017-10-13 10:42:36 +00:00
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
2016-08-06 06:59:41 +00:00
2017-10-13 10:42:36 +00:00
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
2016-08-06 06:59:41 +00:00
2017-10-13 10:42:36 +00:00
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
2016-08-06 06:59:41 +00:00
*/
#ifndef __IO_PROCESS_H__
#define __IO_PROCESS_H__
#include "file.h"
#define COUNTUP_WAIT 100 * 1000
#define DIALOG_WAIT 900 * 1000
2016-08-06 06:59:41 +00:00
enum CopyModes {
COPY_MODE_NORMAL,
COPY_MODE_MOVE,
COPY_MODE_EXTRACT
};
2016-08-06 06:59:41 +00:00
typedef struct {
2017-10-13 10:42:36 +00:00
uint64_t max;
int show_kbs;
2016-08-06 06:59:41 +00:00
} UpdateArguments;
typedef struct {
2017-10-13 10:42:36 +00:00
FileList *file_list;
FileList *mark_list;
int index;
2016-08-06 06:59:41 +00:00
} DeleteArguments;
typedef struct {
2017-10-13 10:42:36 +00:00
FileList *file_list;
FileList *copy_list;
const char *archive_path;
int copy_mode;
int file_type;
2016-08-06 06:59:41 +00:00
} CopyArguments;
2016-09-14 09:33:52 +00:00
typedef struct {
2017-10-13 10:42:36 +00:00
FileList *file_list;
FileList *mark_list;
int index;
2016-09-14 09:33:52 +00:00
} ExportArguments;
2016-09-06 23:52:33 +00:00
typedef struct {
2017-10-13 10:42:36 +00:00
char *file_path;
2016-09-06 23:52:33 +00:00
} HashArguments;
2016-08-06 06:59:41 +00:00
int cancelHandler();
2016-08-26 19:08:43 +00:00
void SetProgress(uint64_t value, uint64_t max);
2017-02-25 09:27:52 +00:00
SceUID createStartUpdateThread(uint64_t max, int show_kbs);
2016-08-06 06:59:41 +00:00
int delete_thread(SceSize args_size, DeleteArguments *args);
int copy_thread(SceSize args_size, CopyArguments *args);
2016-09-14 09:33:52 +00:00
int export_thread(SceSize args_size, ExportArguments *args);
2016-09-06 23:52:33 +00:00
int hash_thread(SceSize args_size, HashArguments *args);
2016-08-06 06:59:41 +00:00
2016-09-06 23:52:33 +00:00
#endif