update Changes
[imager.git] / PNG / PNG.xs
CommitLineData
1d7e3124
TC
1#define PERL_NO_GET_CONTEXT
2#ifdef __cplusplus
3extern "C" {
4#endif
5#include "EXTERN.h"
6#include "perl.h"
7#include "XSUB.h"
8#include "imext.h"
9#include "imperl.h"
10#include "impng.h"
11
12DEFINE_IMAGER_CALLBACKS;
13
14MODULE = Imager::File::PNG PACKAGE = Imager::File::PNG
15
16Imager::ImgRaw
57520a19 17i_readpng_wiol(ig, flags=0)
1d7e3124 18 Imager::IO ig
57520a19 19 int flags
1d7e3124
TC
20
21undef_int
22i_writepng_wiol(im, ig)
23 Imager::ImgRaw im
24 Imager::IO ig
25
647508aa
TC
26unsigned
27i_png_lib_version()
28
57520a19
TC
29int
30IMPNG_READ_IGNORE_BENIGN_ERRORS()
31 CODE:
32 RETVAL = IMPNG_READ_IGNORE_BENIGN_ERRORS;
33 OUTPUT:
34 RETVAL
35
1d7e3124
TC
36BOOT:
37 PERL_INITIALIZE_IMAGER_CALLBACKS;