1 /* Copyright (C) 1996, 2001, Ghostgum Software Pty Ltd. All rights reserved. 2 3 This software is provided AS-IS with no warranty, either express or 4 implied. 5 6 This software is distributed under license and may not be copied, 7 modified or distributed except as expressly authorized under the terms 8 of the license contained in the file LICENSE in this distribution. 9 10 For more information about licensing, please refer to 11 http://www.ghostscript.com/licensing/. For information on 12 commercial licensing, go to http://www.artifex.com/licensing/ or 13 contact Artifex Software, Inc., 101 Lucas Valley Road #110, 14 San Rafael, CA 94903, U.S.A., +1(415)492-9861. 15 */ 16 17 18 /* $Id: dwdll.h,v 1.6 2002/02/26 16:09:15 igor Exp $*/ 19 20 /* gsdll structure for MS-Windows */ 21 22 #ifndef dwdll_INCLUDED 23 # define dwdll_INCLUDED 24 25 #ifndef __PROTOTYPES__ 26 #define __PROTOTYPES__ 27 #endif 28 29 #include "iapi.h" 30 31 typedef struct GSDLL_S { 32 HINSTANCE hmodule; /* DLL module handle */ 33 PFN_gsapi_revision revision; 34 PFN_gsapi_new_instance new_instance; 35 PFN_gsapi_delete_instance delete_instance; 36 PFN_gsapi_set_stdio set_stdio; 37 PFN_gsapi_set_poll set_poll; 38 PFN_gsapi_set_display_callback set_display_callback; 39 PFN_gsapi_init_with_args init_with_args; 40 PFN_gsapi_run_string run_string; 41 PFN_gsapi_exit exit; 42 PFN_gsapi_set_visual_tracer set_visual_tracer; 43 } GSDLL; 44 45 /* Load the Ghostscript DLL. 46 * Return 0 on success. 47 * Return non-zero on error and store error message 48 * to last_error of length len 49 */ 50 int load_dll(GSDLL *gsdll, char *last_error, int len); 51 52 void unload_dll(GSDLL *gsdll); 53 54 #endif /* dwdll_INCLUDED */ 55