1 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
---|
2 | * |
---|
3 | * This source code is provided to you by Adobe on a non-exclusive, |
---|
4 | * royalty-free basis to facilitate your development of PostScript |
---|
5 | * language programs. You may incorporate it into your software as is |
---|
6 | * or modified, provided that you include the following copyright |
---|
7 | * notice with every copy of your software containing any portion of |
---|
8 | * this source code. |
---|
9 | * |
---|
10 | * Copyright 1991 Adobe Systems Incorporated. All Rights Reserved. |
---|
11 | * |
---|
12 | * Adobe does not warrant or guarantee that this source code will |
---|
13 | * perform in any manner. You alone assume any risks and |
---|
14 | * responsibilities associated with implementing, using or |
---|
15 | * incorporating this source code into your software. |
---|
16 | * |
---|
17 | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ |
---|
18 | |
---|
19 | extern char *PSResFontOutline, *PSResFontPrebuilt, *PSResFontAFM, |
---|
20 | *PSResFontBDF, *PSResFontFamily, *PSResFontBDFSizes, |
---|
21 | *PSResForm, *PSResPattern, *PSResEncoding, *PSResProcSet; |
---|
22 | |
---|
23 | typedef enum {PSSaveReturnValues, PSSaveByType, PSSaveEverything} |
---|
24 | PSResourceSavePolicy; |
---|
25 | |
---|
26 | #define _NO_PROTO |
---|
27 | |
---|
28 | #ifdef _NO_PROTO |
---|
29 | |
---|
30 | extern int ListPSResourceFiles(); |
---|
31 | extern int ListPSResourceTypes(); |
---|
32 | extern void FreePSResourceStorage(); |
---|
33 | extern void SetPSResourcePolicy(); |
---|
34 | typedef int (*PSResourceEnumerator)(); |
---|
35 | extern void EnumeratePSResourceFiles(); |
---|
36 | extern int CheckPSResourceTime(); |
---|
37 | typedef char *(*PSResMallocProc)(); |
---|
38 | typedef char *(*PSResReallocProc)(); |
---|
39 | typedef void (*PSResFreeProc)(); |
---|
40 | typedef void (*PSResFileWarningHandlerProc)(); |
---|
41 | |
---|
42 | #else /* _NO_PROTO */ |
---|
43 | |
---|
44 | #if defined(__cplusplus) || defined(c_plusplus) |
---|
45 | extern "C" { |
---|
46 | #endif |
---|
47 | |
---|
48 | extern int ListPSResourceFiles(char *psResourcePathOverride, |
---|
49 | char *defaultPath, |
---|
50 | char *resourceType, |
---|
51 | char *resourceName, |
---|
52 | char ***resourceNamesReturn, |
---|
53 | char ***resourceFilesReturn); |
---|
54 | |
---|
55 | extern int ListPSResourceTypes(char *psResourcePathOverride, |
---|
56 | char *defaultPath, |
---|
57 | char ***resourceTypeReturn); |
---|
58 | |
---|
59 | extern void FreePSResourceStorage(int everything); |
---|
60 | |
---|
61 | extern void SetPSResourcePolicy(PSResourceSavePolicy policy, |
---|
62 | int willList, |
---|
63 | char **resourceTypes); |
---|
64 | |
---|
65 | typedef int (*PSResourceEnumerator)(char *resourceType, |
---|
66 | char *resourceName, |
---|
67 | char *resourceFile, |
---|
68 | char *private); |
---|
69 | |
---|
70 | extern void EnumeratePSResourceFiles(char *psResourcePathOverride, |
---|
71 | char *defaultPath, |
---|
72 | char *resourceType, |
---|
73 | char *resourceName, |
---|
74 | PSResourceEnumerator enumerator, |
---|
75 | char *private); |
---|
76 | |
---|
77 | extern int CheckPSResourceTime(char *psResourcePathOverride, |
---|
78 | char *defaultPath); |
---|
79 | |
---|
80 | typedef char *(*PSResMallocProc)(int size); |
---|
81 | |
---|
82 | typedef char *(*PSResReallocProc)(char *ptr, |
---|
83 | int size); |
---|
84 | |
---|
85 | typedef void (*PSResFreeProc)(char *ptr); |
---|
86 | |
---|
87 | typedef void (*PSResFileWarningHandlerProc)(char *fileNamem, char *extraInfo); |
---|
88 | |
---|
89 | #if defined(__cplusplus) || defined(c_plusplus) |
---|
90 | } |
---|
91 | #endif |
---|
92 | |
---|
93 | #endif /* _NO_PROTO */ |
---|
94 | |
---|
95 | extern PSResMallocProc PSResMalloc; |
---|
96 | |
---|
97 | extern PSResReallocProc PSResRealloc; |
---|
98 | |
---|
99 | extern PSResFreeProc PSResFree; |
---|
100 | |
---|
101 | extern PSResFileWarningHandlerProc PSResFileWarningHandler; |
---|