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".
62 lines
2.0 KiB
C
62 lines
2.0 KiB
C
/*
|
|
* bmap64.h --- 64-bit bitmap structure
|
|
*
|
|
* Copyright (C) 2007, 2008 Theodore Ts'o.
|
|
*
|
|
* %Begin-Header%
|
|
* This file may be redistributed under the terms of the GNU Public
|
|
* License.
|
|
* %End-Header%
|
|
*/
|
|
|
|
struct ext2fs_struct_generic_bitmap {
|
|
errcode_t magic;
|
|
ext2_filsys fs;
|
|
struct ext2_bitmap_ops *bitmap_ops;
|
|
int flags;
|
|
__u64 start, end;
|
|
__u64 real_end;
|
|
char *description;
|
|
void *private;
|
|
errcode_t base_error_code;
|
|
};
|
|
|
|
#define EXT2FS_IS_32_BITMAP(bmap) \
|
|
(((bmap)->magic == EXT2_ET_MAGIC_GENERIC_BITMAP) || \
|
|
((bmap)->magic == EXT2_ET_MAGIC_BLOCK_BITMAP) || \
|
|
((bmap)->magic == EXT2_ET_MAGIC_INODE_BITMAP))
|
|
|
|
#define EXT2FS_IS_64_BITMAP(bmap) \
|
|
(((bmap)->magic == EXT2_ET_MAGIC_GENERIC_BITMAP64) || \
|
|
((bmap)->magic == EXT2_ET_MAGIC_BLOCK_BITMAP64) || \
|
|
((bmap)->magic == EXT2_ET_MAGIC_INODE_BITMAP64))
|
|
|
|
struct ext2_bitmap_ops {
|
|
int type;
|
|
/* Generic bmap operators */
|
|
errcode_t (*new_bmap)(ext2_filsys fs, ext2fs_generic_bitmap bmap);
|
|
void (*free_bmap)(ext2fs_generic_bitmap bitmap);
|
|
errcode_t (*copy_bmap)(ext2fs_generic_bitmap src,
|
|
ext2fs_generic_bitmap dest);
|
|
errcode_t (*resize_bmap)(ext2fs_generic_bitmap bitmap,
|
|
__u64 new_end,
|
|
__u64 new_real_end);
|
|
/* bit set/test operators */
|
|
int (*mark_bmap)(ext2fs_generic_bitmap bitmap, __u64 arg);
|
|
int (*unmark_bmap)(ext2fs_generic_bitmap bitmap, __u64 arg);
|
|
int (*test_bmap)(ext2fs_generic_bitmap bitmap, __u64 arg);
|
|
void (*mark_bmap_extent)(ext2fs_generic_bitmap bitmap, __u64 arg,
|
|
unsigned int num);
|
|
void (*unmark_bmap_extent)(ext2fs_generic_bitmap bitmap, __u64 arg,
|
|
unsigned int num);
|
|
int (*test_clear_bmap_extent)(ext2fs_generic_bitmap bitmap,
|
|
__u64 arg, unsigned int num);
|
|
errcode_t (*set_bmap_range)(ext2fs_generic_bitmap bitmap,
|
|
__u64 start, size_t num, void *in);
|
|
errcode_t (*get_bmap_range)(ext2fs_generic_bitmap bitmap,
|
|
__u64 start, size_t num, void *out);
|
|
void (*clear_bmap)(ext2fs_generic_bitmap bitmap);
|
|
};
|
|
|
|
extern struct ext2_bitmap_ops ext2fs_blkmap64_bitarray;
|