extend some variable types to avoid overflows for mediancut
[imager.git] / imextpltypes.h
CommitLineData
ec6d8908
TC
1#ifndef IMAGER_IMEXTPLTYPES_H_
2#define IMAGER_IMEXTPLTYPES_H_
3
4#ifndef PERL_NO_GET_CONTEXT
5#error Sorry, you need to build with PERL_NO_GET_CONTEXT
6#endif
7
8#define IMAGER_PL_API_VERSION 1
9
10/* This file provides functions useful for external code in
11 interfacing with perl - these functions aren't part of the core
12 Imager API. */
13
a3b721bb 14#define IMAGER_PL_API_LEVEL 2
ec6d8908
TC
15
16typedef struct {
17 int version;
18 int level;
19
20 /* IMAGER_PL_API_LEVEL 1 functions */
21 void (*f_ip_handle_quant_opts)(pTHX_ i_quantize *quant, HV *hv);
22 void (*f_ip_cleanup_quant_opts)(pTHX_ i_quantize *quant);
23 void (*f_ip_copy_colors_back)(pTHX_ HV *hv, i_quantize *quant);
24
a3b721bb
TC
25 /* IMAGER_PL_API_LEVEL 2 */
26 int (*f_ip_handle_quant_opts2)(pTHX_ i_quantize *quant, HV *hv);
27
28 /* IMAGER_PL_API_LEVEL 3 functions will go here */
ec6d8908
TC
29} im_pl_ext_funcs;
30
31#define PERL_PL_FUNCTION_TABLE_NAME "Imager::__ext_pl_func_table"
32
33#endif