source: trunk/third/transcript/src/PSres.h @ 9090

Revision 9090, 3.0 KB checked in by ghudson, 28 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r9089, which included commits to RCS files with non-trunk default branches.
Line 
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
19extern char *PSResFontOutline, *PSResFontPrebuilt, *PSResFontAFM,
20        *PSResFontBDF, *PSResFontFamily, *PSResFontBDFSizes,
21         *PSResForm, *PSResPattern, *PSResEncoding, *PSResProcSet;
22
23typedef enum {PSSaveReturnValues, PSSaveByType, PSSaveEverything}
24        PSResourceSavePolicy;
25
26#define _NO_PROTO
27
28#ifdef _NO_PROTO
29
30extern int ListPSResourceFiles();
31extern int ListPSResourceTypes();
32extern void FreePSResourceStorage();
33extern void SetPSResourcePolicy();
34typedef int (*PSResourceEnumerator)();
35extern void EnumeratePSResourceFiles();
36extern int CheckPSResourceTime();
37typedef char *(*PSResMallocProc)();
38typedef char *(*PSResReallocProc)();
39typedef void (*PSResFreeProc)();
40typedef void (*PSResFileWarningHandlerProc)();
41
42#else /* _NO_PROTO */
43
44#if defined(__cplusplus) || defined(c_plusplus)
45extern "C" {
46#endif
47
48extern int ListPSResourceFiles(char *psResourcePathOverride,
49                               char *defaultPath,
50                               char *resourceType,
51                               char *resourceName,
52                               char ***resourceNamesReturn,
53                               char ***resourceFilesReturn);
54
55extern int ListPSResourceTypes(char *psResourcePathOverride,
56                               char *defaultPath,
57                               char ***resourceTypeReturn);
58
59extern void FreePSResourceStorage(int everything);
60
61extern void SetPSResourcePolicy(PSResourceSavePolicy policy,
62                                int willList,
63                                char **resourceTypes);
64
65typedef int (*PSResourceEnumerator)(char *resourceType,
66                                    char *resourceName,
67                                    char *resourceFile,
68                                    char *private);
69
70extern void EnumeratePSResourceFiles(char *psResourcePathOverride,
71                                     char *defaultPath,
72                                     char *resourceType,
73                                     char *resourceName,
74                                     PSResourceEnumerator enumerator,
75                                     char *private);
76
77extern int CheckPSResourceTime(char *psResourcePathOverride,
78                               char *defaultPath);
79
80typedef char *(*PSResMallocProc)(int size);
81
82typedef char *(*PSResReallocProc)(char *ptr,
83                                  int size);
84
85typedef void (*PSResFreeProc)(char *ptr);
86
87typedef void (*PSResFileWarningHandlerProc)(char *fileNamem, char *extraInfo);
88
89#if defined(__cplusplus) || defined(c_plusplus)
90}
91#endif
92
93#endif /* _NO_PROTO */
94
95extern PSResMallocProc PSResMalloc;
96
97extern PSResReallocProc PSResRealloc;
98
99extern PSResFreeProc PSResFree;
100
101extern PSResFileWarningHandlerProc PSResFileWarningHandler;
Note: See TracBrowser for help on using the repository browser.