#ifndef PHP_TEXTORIZE_H
#define PHP_TEXTORIZE_H

extern zend_module_entry textorize_module_entry;
#define phpext_textorize_ptr &textorize_module_entry

#ifdef PHP_WIN32
# define PHP_TEXTORIZE_API __declspec( dllexport )
#else
# define PHP_TEXTORIZE_API
#endif

#ifdef ZTS
# include "TSRM.h"
#endif

	ZEND_BEGIN_MODULE_GLOBALS( textorize )
	    int textorize_was_init;
	    char* last_error_reason;
	    char* last_error_description;
	ZEND_END_MODULE_GLOBALS( textorize )

#ifdef ZTS
# define TEXTORIZE_G( v ) TSRMG( textorize_globals_id, zend_textorize_globals *, v )
#else
# define TEXTORIZE_G( v ) ( textorize_globals.v )
#endif

	PHP_MINIT_FUNCTION( textorize );
	PHP_RINIT_FUNCTION( textorize );
	PHP_RSHUTDOWN_FUNCTION( textorize );
	PHP_MINFO_FUNCTION( textorize );

	PHP_FUNCTION( textorize_readimage );

#define TEXTORIZE_VERSION	"$id$"

#endif	/* PHP_TEXTORIZE_H */
