xref: /plan9/sys/src/cmd/gs/src/dwnodll.c (revision 593dc095aefb2a85c828727bbfa9da139a49bdf4)
1 /* Copyright (C) 1996-2000 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 /* dwnodll.c */
18 /* $Id: dwnodll.c,v 1.6 2004/04/08 16:18:25 giles Exp $ */
19 
20 #define STRICT
21 #include <windows.h>
22 #include <string.h>
23 #include <stdio.h>
24 
25 #include "stdpre.h"
26 #include "gpgetenv.h"
27 #include "gscdefs.h"
28 #define GSREVISION gs_revision
29 
30 #include "dwdll.h"
31 
32 /* We are static linking, so just store the function addresses */
load_dll(GSDLL * gsdll,char * last_error,int len)33 int load_dll(GSDLL *gsdll, char *last_error, int len)
34 {
35     gsdll->new_instance = &gsapi_new_instance;
36     gsdll->delete_instance = &gsapi_delete_instance;
37     gsdll->set_stdio = &gsapi_set_stdio;
38     gsdll->set_poll = &gsapi_set_poll;
39     gsdll->set_display_callback = &gsapi_set_display_callback;
40     gsdll->init_with_args = &gsapi_init_with_args;
41     gsdll->run_string = &gsapi_run_string;
42     gsdll->exit = &gsapi_exit;
43     gsdll->set_visual_tracer = &gsapi_set_visual_tracer;
44     return 0;
45 }
46 
unload_dll(GSDLL * gsdll)47 void unload_dll(GSDLL *gsdll)
48 {
49 }
50