mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-16 00:15:08 +01:00
0f17471b27
*Added sources of the custom libs to the branches *Fixed crash when switching from list layout to grid/carousel layout *Removed 1:1 copy option because its meaningless and almost the same as installing all partitions *Fixed install partition selection. This option needs a reset. Go to settings and reselect your option for this. *Fixed schinese and tchinese language modes (filename bugs. has to be schinese.lang and tchinese.lang like on SVN) *Fixed bug in sound buffer circle *Fixed incorrect behaviour of x-flip when selecting system like (thx Cyan for the patch) *Accept ios revision 65535 for Waninkokos IOSes (thx to PPSainity for pointing it out) *Merged the new theming style branch into trunk. Just as a reminder: ALL old themes will not work until the themers did port it to the new style! *Removed old theme style completely Theme example: The example file of the theme is the Default.them file. It can be found in the SVN trunk. Change in loading of themes: When selecting a theme now a list of all .them files in a folder is displayed. The image folder of that theme has to be in the same folder as the .them file. The image path is defined in the head of the .them file in the line with "Image-Folder: Example\n".
66 lines
2.9 KiB
C
66 lines
2.9 KiB
C
/**
|
|
* ntfsfile.c - devoptab file routines for NTFS-based devices.
|
|
*
|
|
* Copyright (c) 2009 Rhys "Shareese" Koedijk
|
|
* Copyright (c) 2006 Michael "Chishm" Chisholm
|
|
*
|
|
* This program/include file 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/include file 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 _NTFSFILE_H
|
|
#define _NTFSFILE_H
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
|
|
#include "ntfsinternal.h"
|
|
#include <sys/reent.h>
|
|
|
|
/**
|
|
* ntfs_file_state - File state
|
|
*/
|
|
typedef struct _ntfs_file_state {
|
|
ntfs_vd *vd; /* Volume this file belongs to */
|
|
ntfs_inode *ni; /* File descriptor */
|
|
ntfs_attr *data_na; /* File data descriptor */
|
|
int flags; /* Opening flags */
|
|
bool read; /* True if allowed to read from file */
|
|
bool write; /* True if allowed to write to file */
|
|
bool append; /* True if allowed to append to file */
|
|
bool compressed; /* True if file data is compressed */
|
|
bool encrypted; /* True if file data is encryted */
|
|
off_t pos; /* Current position within the file (in bytes) */
|
|
u64 len; /* Total length of the file (in bytes) */
|
|
struct _ntfs_file_state *prevOpenFile; /* The previous entry in a double-linked FILO list of open files */
|
|
struct _ntfs_file_state *nextOpenFile; /* The next entry in a double-linked FILO list of open files */
|
|
} ntfs_file_state;
|
|
|
|
/* File state routines */
|
|
void ntfsCloseFile (ntfs_file_state *file);
|
|
|
|
/* Gekko devoptab file routines for NTFS-based devices */
|
|
extern int ntfs_open_r (struct _reent *r, void *fileStruct, const char *path, int flags, int mode);
|
|
extern int ntfs_close_r (struct _reent *r, int fd);
|
|
extern ssize_t ntfs_write_r (struct _reent *r, int fd, const char *ptr, size_t len);
|
|
extern ssize_t ntfs_read_r (struct _reent *r, int fd, char *ptr, size_t len);
|
|
extern off_t ntfs_seek_r (struct _reent *r, int fd, off_t pos, int dir);
|
|
extern int ntfs_fstat_r (struct _reent *r, int fd, struct stat *st);
|
|
extern int ntfs_ftruncate_r (struct _reent *r, int fd, off_t len);
|
|
extern int ntfs_fsync_r (struct _reent *r, int fd);
|
|
|
|
#endif /* _NTFSFILE_H */
|
|
|