X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=include%2Fwimlib%2Ftextfile.h;fp=include%2Fwimlib%2Ftextfile.h;h=d79f8b11b78b954fadc374095fdd0b2f690d9adb;hp=5854abb584fb887b035afc4932f1b65da23e3e84;hb=075e14ac8b227141bc68fec5486b0644dcab8013;hpb=b4f6412e3332723e9fe177c73cc0d1876dc5100d diff --git a/include/wimlib/textfile.h b/include/wimlib/textfile.h index 5854abb5..d79f8b11 100644 --- a/include/wimlib/textfile.h +++ b/include/wimlib/textfile.h @@ -25,22 +25,13 @@ struct text_file_section { #define LOAD_TEXT_FILE_REMOVE_QUOTES 0x00000001 #define LOAD_TEXT_FILE_NO_WARNINGS 0x00000002 +#define LOAD_TEXT_FILE_ALLOW_STDIN 0x00000004 extern int -do_load_text_file(const tchar *path, - const void *buf, size_t bufsize, void **mem_ret, - const struct text_file_section *pos_sections, - int num_pos_sections, int flags, - line_mangle_t mangle_line); - -static inline int -load_text_file(const tchar *path, void **mem_ret, +load_text_file(const tchar *path, const void *buf, size_t bufsize, + void **mem_ret, const struct text_file_section *pos_sections, - int num_pos_sections, line_mangle_t mangle_line) -{ - return do_load_text_file(path, NULL, 0, mem_ret, - pos_sections, num_pos_sections, - LOAD_TEXT_FILE_REMOVE_QUOTES, mangle_line); -} + int num_pos_sections, + int flags, line_mangle_t mangle_line); #endif /* _WIMLIB_TEXTFILE_H_ */