HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/lib64/perl5/Imager/include/imextpltypes.h
#ifndef IMAGER_IMEXTPLTYPES_H_
#define IMAGER_IMEXTPLTYPES_H_

#ifndef PERL_NO_GET_CONTEXT
#error Sorry, you need to build with PERL_NO_GET_CONTEXT
#endif

#define IMAGER_PL_API_VERSION 1

/* This file provides functions useful for external code in
   interfacing with perl - these functions aren't part of the core
   Imager API. */

#define IMAGER_PL_API_LEVEL 2

typedef struct {
  int version;
  int level;

  /* IMAGER_PL_API_LEVEL 1 functions */
  void (*f_ip_handle_quant_opts)(pTHX_ i_quantize *quant, HV *hv);
  void (*f_ip_cleanup_quant_opts)(pTHX_ i_quantize *quant);
  void (*f_ip_copy_colors_back)(pTHX_ HV *hv, i_quantize *quant);

  /* IMAGER_PL_API_LEVEL 2 */
  int (*f_ip_handle_quant_opts2)(pTHX_ i_quantize *quant, HV *hv);

  /* IMAGER_PL_API_LEVEL 3 functions will go here */
} im_pl_ext_funcs;

#define PERL_PL_FUNCTION_TABLE_NAME "Imager::__ext_pl_func_table"

#endif