1 /***************************************************************************/
5 /* The FreeType position independent code services for psnames module. */
7 /* Copyright 2009, 2012 by */
8 /* Oran Agra and Mickey Gabel. */
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 */
12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
13 /* this file you indicate that you have read the license and */
14 /* understand and accept it fully. */
16 /***************************************************************************/
25 #include FT_INTERNAL_PIC_H
27 #ifndef FT_CONFIG_OPTION_PIC
29 #define PSCMAPS_SERVICES_GET pscmaps_services
30 #define PSCMAPS_INTERFACE_GET pscmaps_interface
32 #else /* FT_CONFIG_OPTION_PIC */
34 #include FT_SERVICE_POSTSCRIPT_CMAPS_H
36 typedef struct PSModulePIC_
38 FT_ServiceDescRec* pscmaps_services;
39 FT_Service_PsCMapsRec pscmaps_interface;
44 #define GET_PIC( lib ) \
45 ( (PSModulePIC*)((lib)->pic_container.psnames) )
46 #define PSCMAPS_SERVICES_GET ( GET_PIC( library )->pscmaps_services )
47 #define PSCMAPS_INTERFACE_GET ( GET_PIC( library )->pscmaps_interface )
50 /* see pspic.c for the implementation */
52 psnames_module_class_pic_free( FT_Library library );
55 psnames_module_class_pic_init( FT_Library library );
57 #endif /* FT_CONFIG_OPTION_PIC */
63 #endif /* __PSPIC_H__ */