]> git.imager.perl.org - imager.git/blobdiff - imexttypes.h
allow Imager to be loaded on Windows 98
[imager.git] / imexttypes.h
index 6e8fbadef633ec12ed84e4522d34040243342c14..e607d4a3e790c38dc67df2e56d8451bc617902c6 100644 (file)
@@ -18,7 +18,7 @@
  will result in an increment of IMAGER_API_LEVEL.
 */
 
  will result in an increment of IMAGER_API_LEVEL.
 */
 
-#define IMAGER_API_LEVEL 2
+#define IMAGER_API_LEVEL 3
 
 typedef struct {
   int version;
 
 typedef struct {
   int version;
@@ -139,8 +139,19 @@ typedef struct {
   int (*f_i_set_image_file_limits)(int width, int height, int bytes);
   int (*f_i_get_image_file_limits)(int *width, int *height, int *bytes);
   int (*f_i_int_check_image_file_limits)(int width, int height, int channels, int sample_size);
   int (*f_i_set_image_file_limits)(int width, int height, int bytes);
   int (*f_i_get_image_file_limits)(int *width, int *height, int *bytes);
   int (*f_i_int_check_image_file_limits)(int width, int height, int channels, int sample_size);
-
-  /* IMAGER_API_LEVEL 3 functions will be added here */
+  int (*f_i_flood_fill_border)(i_img *im, int seedx, int seedy, const i_color *dcol, const i_color *border);
+  int (*f_i_flood_cfill_border)(i_img *im, int seedx, int seedy, i_fill_t *fill, const i_color *border);
+
+  /* IMAGER_API_LEVEL 3 functions */
+  void (*f_i_img_setmask)(i_img *im, int ch_mask);
+  int (*f_i_img_getmask)(i_img *im);
+  int (*f_i_img_getchannels)(i_img *im);
+  i_img_dim (*f_i_img_get_width)(i_img *im);
+  i_img_dim (*f_i_img_get_height)(i_img *im);
+  void (*f_i_lhead)(const char *file, int line_number);
+  void (*f_i_loog)(int level, const char *msg, ...);
+
+  /* IMAGER_API_LEVEL 4 functions will be added here */
 } im_ext_funcs;
 
 #define PERL_FUNCTION_TABLE_NAME "Imager::__ext_func_table"
 } im_ext_funcs;
 
 #define PERL_FUNCTION_TABLE_NAME "Imager::__ext_func_table"