update Changes
[imager.git] / PNG / PNG.xs
1 #define PERL_NO_GET_CONTEXT
2 #ifdef __cplusplus
3 extern "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
12 DEFINE_IMAGER_CALLBACKS;
13
14 MODULE = Imager::File::PNG  PACKAGE = Imager::File::PNG
15
16 Imager::ImgRaw
17 i_readpng_wiol(ig, flags=0)
18         Imager::IO     ig
19         int            flags
20
21 undef_int
22 i_writepng_wiol(im, ig)
23     Imager::ImgRaw     im
24         Imager::IO     ig
25
26 unsigned
27 i_png_lib_version()
28
29 int
30 IMPNG_READ_IGNORE_BENIGN_ERRORS()
31   CODE:
32     RETVAL = IMPNG_READ_IGNORE_BENIGN_ERRORS;
33   OUTPUT:
34     RETVAL
35
36 BOOT:
37         PERL_INITIALIZE_IMAGER_CALLBACKS;