/src/freetype/src/psnames/pspic.h

https://bitbucket.org/cabalistic/ogredeps/ · C++ Header · 61 lines · 24 code · 18 blank · 19 comment · 0 complexity · de5e594326e617b065838efae224efd0 MD5 · raw file

  1. /***************************************************************************/
  2. /* */
  3. /* pspic.h */
  4. /* */
  5. /* The FreeType position independent code services for psnames module. */
  6. /* */
  7. /* Copyright 2009 by */
  8. /* Oran Agra and Mickey Gabel. */
  9. /* */
  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. */
  15. /* */
  16. /***************************************************************************/
  17. #ifndef __PSPIC_H__
  18. #define __PSPIC_H__
  19. FT_BEGIN_HEADER
  20. #include FT_INTERNAL_PIC_H
  21. #ifndef FT_CONFIG_OPTION_PIC
  22. #define FT_PSCMAPS_SERVICES_GET pscmaps_services
  23. #define FT_PSCMAPS_INTERFACE_GET pscmaps_interface
  24. #else /* FT_CONFIG_OPTION_PIC */
  25. #include FT_SERVICE_POSTSCRIPT_CMAPS_H
  26. typedef struct PSModulePIC_
  27. {
  28. FT_ServiceDescRec* pscmaps_services;
  29. FT_Service_PsCMapsRec pscmaps_interface;
  30. } PSModulePIC;
  31. #define GET_PIC(lib) ((PSModulePIC*)((lib)->pic_container.psnames))
  32. #define FT_PSCMAPS_SERVICES_GET (GET_PIC(library)->pscmaps_services)
  33. #define FT_PSCMAPS_INTERFACE_GET (GET_PIC(library)->pscmaps_interface)
  34. /* see pspic.c for the implementation */
  35. void
  36. psnames_module_class_pic_free( FT_Library library );
  37. FT_Error
  38. psnames_module_class_pic_init( FT_Library library );
  39. #endif /* FT_CONFIG_OPTION_PIC */
  40. /* */
  41. FT_END_HEADER
  42. #endif /* __PSPIC_H__ */
  43. /* END */