mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 21:30:19 -06:00
Log libpng warnings and errors
This commit is contained in:
@ -7,9 +7,23 @@
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
extern "C" {
|
||||
#endif
|
||||
struct ErrorHandler
|
||||
{
|
||||
void* error_list; // std::vector<std::string>*
|
||||
void* warning_list; // std::vector<std::string>*
|
||||
void (*StoreError)(struct ErrorHandler* self, const char* msg);
|
||||
void (*StoreWarning)(struct ErrorHandler* self, const char* msg);
|
||||
};
|
||||
|
||||
bool SavePNG0(png_structp png_ptr, png_infop info_ptr, int png_format, png_uint_32 width,
|
||||
png_uint_32 height, int level, png_voidp io_ptr, png_rw_ptr write_fn,
|
||||
png_bytepp row_pointers);
|
||||
|
||||
void PngError(png_structp png_ptr, png_const_charp msg);
|
||||
void PngWarning(png_structp png_ptr, png_const_charp msg);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
bool
|
||||
SavePNG0(png_structp png_ptr, png_infop info_ptr, int png_format, png_uint_32 width,
|
||||
png_uint_32 height, int level, png_voidp io_ptr, png_rw_ptr write_fn,
|
||||
png_bytepp row_pointers);
|
||||
|
Reference in New Issue
Block a user