📄 fs_nand.h
字号:
/*
* Copyright (C) 2008 dhewg, #wiidev efnet
*
* this file is part of wiifuse
* http://wiibrew.org/index.php?title=Wiifuse
*
* 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 2 of the License, or
* (at your option) any later version.
*
* 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.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef _FS_NAND_H_
#define _FS_NAND_H_
#include <gctypes.h>
#include "../../shared.h"
bool nand_init (u8 **data, u16 *data_size);
bool nand_deinit ();
enum remote_result nand_access (const char *filename, u8 mode);
enum remote_result nand_getattr (const char *filename,
struct remote_attr *attributes);
enum remote_result nand_open (const char *filename);
enum remote_result nand_read (const char *filename, const u64 offset,
u16 *size, u8 *buffer);
enum remote_result nand_opendir (const char *dirname);
enum remote_result nand_readdir (const char *dirname, u8 **data,
u16 *data_size);
enum remote_result nand_mkdir (const char *dirname, const u16 perms);
enum remote_result nand_rmdir (const char *dirname);
enum remote_result nand_write (const char *filename, const u64 offset,
u16 *size, u8 *buffer);
enum remote_result nand_create (const char *filename, const u16 perms);
enum remote_result nand_chown (const char *filename, const u32 uid,
const u32 gid);
enum remote_result nand_chmod (const char *filename, const u16 perms);
enum remote_result nand_rename (const char *src, const char *dst);
enum remote_result nand_unlink (const char *filename);
enum remote_result nand_statfs (const char *filename, u64 *bsize, u64 *blocks,
u64 *bfree, u64 *files, u64 *ffree);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -