]> wimlib.net Git - wimlib/blob - include/wimlib/test_support.h
mount_image.c: add fallback definitions of RENAME_* constants
[wimlib] / include / wimlib / test_support.h
1 #ifndef _WIMLIB_TEST_SUPPORT_H
2 #define _WIMLIB_TEST_SUPPORT_H
3
4 #ifdef ENABLE_TEST_SUPPORT
5
6 #include "wimlib.h"
7 #include "wimlib/types.h"
8
9 #define WIMLIB_ERR_IMAGES_ARE_DIFFERENT                 200
10
11 #define WIMLIB_ADD_FLAG_GENERATE_TEST_DATA              0x08000000
12
13 #define WIMLIB_CMP_FLAG_UNIX_MODE       0x00000001
14 #define WIMLIB_CMP_FLAG_NTFS_3G_MODE    0x00000002
15 #define WIMLIB_CMP_FLAG_WINDOWS_MODE    0x00000004
16 #define WIMLIB_CMP_FLAG_EXT4            0x00000008
17
18 WIMLIBAPI void
19 wimlib_seed_random(u64 seed);
20
21 WIMLIBAPI int
22 wimlib_compare_images(WIMStruct *wim1, int image1,
23                       WIMStruct *wim2, int image2, int cmp_flags);
24
25 WIMLIBAPI int
26 wimlib_parse_and_write_xml_doc(const tchar *in, tchar **out_ret);
27
28 WIMLIBAPI int
29 wimlib_utf8_to_utf16le(const char *in, size_t in_nbytes,
30                        utf16lechar **out_ret, size_t *out_nbytes_ret);
31
32 WIMLIBAPI int
33 wimlib_utf16le_to_utf8(const utf16lechar *in, size_t in_nbytes,
34                        char **out_ret, size_t *out_nbytes_ret);
35
36 #endif /* ENABLE_TEST_SUPPORT */
37
38 #endif /* _WIMLIB_TEST_SUPPORT_H */