/**************************************************************************
 *{@C
 *      Copyright:      1988-2020 Paul Obermeier (obermeier@poSoft.de)
 *
 *      Module:         Utilities
 *      Filename:       UTT_VecTclIf.h
 *
 *      Author:         Paul Obermeier
 *
 *	Description:	Declaration of the functions exported by the Tcl
 *			Image Processing library.
 *
 *      Additional documentation:
 *                      None.
 *
 **************************************************************************/

#ifndef __IPT_TCLIF_H__
#define __IPT_TCLIF_H__

#ifdef __cplusplus
extern "C" {
#endif

#include <tcl.h>
#include "UT_Compat.h"
#include "IP_Image.h"

#include "UTT_TclIf.h"

/* Note: The names "argc" and "argv" are from the parameter list of
	 the Tcl-interface routines. See "UTT_TclIf.h". */

#define IPT_Get_Fix_Image(n, var)					\
    UTT_GetFixGeneric (IPT_GetImage, (n), (var))

#define IPT_Get_Opt_Image(n, var, def)					\
    UTT_GetOptGeneric (IPT_GetImage, (n), (var), (def))

extern POIMG_IMPORT_EXPORT int IPT_InitTclImgLib (Tcl_Interp *interp);

extern POIMG_IMPORT_EXPORT int IPT_GetImage (Tcl_Interp *interp, char *imgVarName, IP_ImageId *img);

#ifdef __cplusplus
}
#endif

#endif /* __IPT_TCLIF_H__ */
