1 /* Copyright (C) 2001-2006 Artifex Software, Inc. 2 All Rights Reserved. 3 4 This software is provided AS-IS with no warranty, either express or 5 implied. 6 7 This software is distributed under license and may not be copied, modified 8 or distributed except as expressly authorized under the terms of that 9 license. Refer to licensing information at http://www.artifex.com/ 10 or contact Artifex Software, Inc., 7 Mt. Lassen Drive - Suite A-134, 11 San Rafael, CA 94903, U.S.A., +1(415)492-9861, for further information. 12 */ 13 14 /* $Id: dwdll.h 9043 2008-08-28 22:48:19Z giles $*/ 15 16 /* gsdll structure for MS-Windows */ 17 18 #ifndef dwdll_INCLUDED 19 # define dwdll_INCLUDED 20 21 #ifndef __PROTOTYPES__ 22 #define __PROTOTYPES__ 23 #endif 24 25 #include "iapi.h" 26 27 typedef struct GSDLL_S { 28 HINSTANCE hmodule; /* DLL module handle */ 29 PFN_gsapi_revision revision; 30 PFN_gsapi_new_instance new_instance; 31 PFN_gsapi_delete_instance delete_instance; 32 PFN_gsapi_set_stdio set_stdio; 33 PFN_gsapi_set_poll set_poll; 34 PFN_gsapi_set_display_callback set_display_callback; 35 PFN_gsapi_init_with_args init_with_args; 36 PFN_gsapi_run_string run_string; 37 PFN_gsapi_exit exit; 38 PFN_gsapi_set_visual_tracer set_visual_tracer; 39 } GSDLL; 40 41 /* Load the Ghostscript DLL. 42 * Return 0 on success. 43 * Return non-zero on error and store error message 44 * to last_error of length len 45 */ 46 int load_dll(GSDLL *gsdll, char *last_error, int len); 47 48 void unload_dll(GSDLL *gsdll); 49 50 #endif /* dwdll_INCLUDED */ 51