#include "ext2_fs.h"
#include "ext2fs.h"
+#include "ext2fsP.h"
/*
* Keyed 32-bit hash function using TEA in a Davis-Meyer function
if (len && charset && (hash_flags & EXT4_CASEFOLD_FL)) {
char buff[PATH_MAX];
- dlen = charset->ops->casefold(charset, name, len, buff,
- sizeof(buff));
+ dlen = charset->ops->casefold(charset,
+ (const unsigned char *) name, len,
+ (unsigned char *) buff, sizeof(buff));
if (dlen < 0) {
if (dlen == -EINVAL)
goto opaque_seq;
#define EXT2_SEEK_END 2
/*
- * NLS defintions
- */
-struct ext2fs_nls_table {
- int version;
- const struct ext2fs_nls_ops *ops;
-};
-
-struct ext2fs_nls_ops {
- int (*casefold)(const struct ext2fs_nls_table *charset,
- const unsigned char *str, size_t len,
- unsigned char *dest, size_t dlen);
-};
-
-/*
* Flags for the ext2_filsys structure and for ext2fs_open()
*/
#define EXT2_FLAG_RW 0x01
struct ext2_inode *inode;
};
+/*
+ * NLS defintions
+ */
+struct ext2fs_nls_table {
+ int version;
+ const struct ext2fs_nls_ops *ops;
+};
+
+struct ext2fs_nls_ops {
+ int (*casefold)(const struct ext2fs_nls_table *charset,
+ const unsigned char *str, size_t len,
+ unsigned char *dest, size_t dlen);
+};
+
/* Function prototypes */
extern int ext2fs_process_dir_block(ext2_filsys fs,
#include "ext2_fs.h"
#include "ext2fs.h"
+#include "ext2fsP.h"
/* Encoding a unicode version number as a single unsigned int. */
#define UNICODE_MAJ_SHIFT (16)