1 /*
2    pstoedll.h : This file describes the interface to query information about
3    the drivers available via pstoedit and to call pstoedit via the dll interface
4 
5    Copyright (C) 1998 - 2000 Wolfgang Glunz, wglunz@geocities.com
6 
7     This program is free software; you can redistribute it and/or modify
8     it under the terms of the GNU General Public License as published by
9     the Free Software Foundation; either version 2 of the License, or
10     (at your option) any later version.
11 
12     This program is distributed in the hope that it will be useful,
13     but WITHOUT ANY WARRANTY; without even the implied warranty of
14     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15     GNU General Public License for more details.
16 
17     You should have received a copy of the GNU General Public License
18     along with this program; if not, write to the Free Software
19     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 
21 */
22 
23 /*
24    the struct version of DriverDescription
25    this is needed in order to allow plain old C programs to use the .dll
26 */
27 
28 struct DriverDescription_S {
29 	char *	symbolicname;
30 	char *	explanation;
31 	char *	suffix;
32 	char *	additionalInfo;
33 	int		backendSupportsSubPathes;
34 	int		backendSupportsCurveto;
35 	int 	backendSupportsMerging;
36 	int 	backendSupportsText;
37 	int 	backendSupportsImages;
38 	int		backendSupportsMultiplePages;
39 };
40 
41 static unsigned int pstoeditdllversion = 301;
42 // 301: added the clearPstoeditDriverInfo function to avoid problems with using different mallac/free in server and client.
43 
44 typedef int  (pstoedit_checkversion_func) (unsigned int callersversion );
45 
46 typedef int  (pstoedit_plainC_func) (int argc,const char * const argv[],const char * const psinterpreter );
47 /* psinterpreter can be set to 0, in which case pstoedit tries to locate one on his own. */
48 typedef struct DriverDescription_S * (getPstoeditDriverInfo_plainC_func)();
49 /* returned result must be freed via a call to clearPstoeditDriverInfo_plainC !! */
50 /* the end of the array is indicated by p->symbolicname == 0 */
51 typedef void  (clearPstoeditDriverInfo_plainC_func)(struct DriverDescription_S * ptr);
52 
53 typedef int  (write_callback_func) (void * cb_data, const char* text, unsigned long length);
54 typedef void (setPstoeditOutputFunction_func)(void * cbData,write_callback_func* cbFunction);
55 
56 
57