2 * Copyright (C) 2008 dhewg, #wiidev efnet
4 * this file is part of wiifuse
5 * http://wiibrew.org/index.php?title=Wiifuse
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #ifndef _FS_WRAPPER_H_
23 #define _FS_WRAPPER_H_
25 bool wrapper_init (u8
**data
, u16
*data_size
);
26 bool wrapper_deinit ();
28 enum remote_result
wrapper_access (struct client_request
*request
);
29 enum remote_result
wrapper_getattr (struct client_request
*request
, u8
**data
,
31 enum remote_result
wrapper_open (struct client_request
*request
);
32 enum remote_result
wrapper_read (struct client_request
*request
, u8
**data
,
34 enum remote_result
wrapper_opendir (struct client_request
*request
);
35 enum remote_result
wrapper_readdir (struct client_request
*request
, u8
**data
,
38 enum remote_result
wrapper_mkdir (struct client_request
*request
);
39 enum remote_result
wrapper_rmdir (struct client_request
*request
);
40 enum remote_result
wrapper_create (struct client_request
*request
);
41 enum remote_result
wrapper_write (struct client_request
*request
, u8
**data
,
43 enum remote_result
wrapper_chown (struct client_request
*request
);
44 enum remote_result
wrapper_chmod (struct client_request
*request
);
45 enum remote_result
wrapper_rename (struct client_request
*request
);
46 enum remote_result
wrapper_unlink (struct client_request
*request
);
48 enum remote_result
wrapper_statfs (struct client_request
*request
, u8
**data
,