OLD | NEW |
1 /***************************************************************************/ | 1 /***************************************************************************/ |
2 /* */ | 2 /* */ |
3 /* pspic.h */ | 3 /* pspic.h */ |
4 /* */ | 4 /* */ |
5 /* The FreeType position independent code services for psnames module. */ | 5 /* The FreeType position independent code services for psnames module. */ |
6 /* */ | 6 /* */ |
7 /* Copyright 2009, 2012 by */ | 7 /* Copyright 2009-2015 by */ |
8 /* Oran Agra and Mickey Gabel. */ | 8 /* Oran Agra and Mickey Gabel. */ |
9 /* */ | 9 /* */ |
10 /* This file is part of the FreeType project, and may only be used, */ | 10 /* This file is part of the FreeType project, and may only be used, */ |
11 /* modified, and distributed under the terms of the FreeType project */ | 11 /* modified, and distributed under the terms of the FreeType project */ |
12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ | 12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
13 /* this file you indicate that you have read the license and */ | 13 /* this file you indicate that you have read the license and */ |
14 /* understand and accept it fully. */ | 14 /* understand and accept it fully. */ |
15 /* */ | 15 /* */ |
16 /***************************************************************************/ | 16 /***************************************************************************/ |
17 | 17 |
18 | 18 |
19 #ifndef __PSPIC_H__ | 19 #ifndef __PSPIC_H__ |
20 #define __PSPIC_H__ | 20 #define __PSPIC_H__ |
21 | 21 |
22 | 22 |
23 FT_BEGIN_HEADER | 23 #include FT_INTERNAL_PIC_H |
24 | 24 |
25 #include FT_INTERNAL_PIC_H | |
26 | 25 |
27 #ifndef FT_CONFIG_OPTION_PIC | 26 #ifndef FT_CONFIG_OPTION_PIC |
28 | 27 |
29 #define PSCMAPS_SERVICES_GET pscmaps_services | 28 #define PSCMAPS_SERVICES_GET pscmaps_services |
30 #define PSCMAPS_INTERFACE_GET pscmaps_interface | 29 #define PSCMAPS_INTERFACE_GET pscmaps_interface |
31 | 30 |
32 #else /* FT_CONFIG_OPTION_PIC */ | 31 #else /* FT_CONFIG_OPTION_PIC */ |
33 | 32 |
34 #include FT_SERVICE_POSTSCRIPT_CMAPS_H | 33 #include FT_SERVICE_POSTSCRIPT_CMAPS_H |
35 | 34 |
| 35 |
| 36 FT_BEGIN_HEADER |
| 37 |
36 typedef struct PSModulePIC_ | 38 typedef struct PSModulePIC_ |
37 { | 39 { |
38 FT_ServiceDescRec* pscmaps_services; | 40 FT_ServiceDescRec* pscmaps_services; |
39 FT_Service_PsCMapsRec pscmaps_interface; | 41 FT_Service_PsCMapsRec pscmaps_interface; |
40 | 42 |
41 } PSModulePIC; | 43 } PSModulePIC; |
42 | 44 |
43 | 45 |
44 #define GET_PIC( lib ) \ | 46 #define GET_PIC( lib ) \ |
45 ( (PSModulePIC*)((lib)->pic_container.psnames) ) | 47 ( (PSModulePIC*)((lib)->pic_container.psnames) ) |
46 #define PSCMAPS_SERVICES_GET ( GET_PIC( library )->pscmaps_services ) | 48 #define PSCMAPS_SERVICES_GET ( GET_PIC( library )->pscmaps_services ) |
47 #define PSCMAPS_INTERFACE_GET ( GET_PIC( library )->pscmaps_interface ) | 49 #define PSCMAPS_INTERFACE_GET ( GET_PIC( library )->pscmaps_interface ) |
48 | 50 |
49 | 51 |
50 /* see pspic.c for the implementation */ | 52 /* see pspic.c for the implementation */ |
51 void | 53 void |
52 psnames_module_class_pic_free( FT_Library library ); | 54 psnames_module_class_pic_free( FT_Library library ); |
53 | 55 |
54 FT_Error | 56 FT_Error |
55 psnames_module_class_pic_init( FT_Library library ); | 57 psnames_module_class_pic_init( FT_Library library ); |
56 | 58 |
| 59 FT_END_HEADER |
| 60 |
57 #endif /* FT_CONFIG_OPTION_PIC */ | 61 #endif /* FT_CONFIG_OPTION_PIC */ |
58 | 62 |
59 /* */ | 63 /* */ |
60 | 64 |
61 FT_END_HEADER | |
62 | |
63 #endif /* __PSPIC_H__ */ | 65 #endif /* __PSPIC_H__ */ |
64 | 66 |
65 | 67 |
66 /* END */ | 68 /* END */ |
OLD | NEW |