dwdll.h 1.6 KB

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