/src/freetype/src/base/ftpic.c

https://bitbucket.org/cabalistic/ogredeps/ · C · 54 lines · 22 code · 13 blank · 19 comment · 1 complexity · 6f3e3abda73708be9bdbb0ea43324dac MD5 · raw file

  1. /***************************************************************************/
  2. /* */
  3. /* ftpic.c */
  4. /* */
  5. /* The FreeType position independent code services (body). */
  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. #include <ft2build.h>
  18. #include FT_FREETYPE_H
  19. #include FT_INTERNAL_OBJECTS_H
  20. #include "basepic.h"
  21. #ifdef FT_CONFIG_OPTION_PIC
  22. /* documentation is in ftpic.h */
  23. FT_BASE_DEF( FT_Error )
  24. ft_pic_container_init( FT_Library library )
  25. {
  26. FT_PIC_Container* pic_container = &library->pic_container;
  27. FT_Error error = FT_Err_Ok;
  28. FT_MEM_SET( pic_container, 0, sizeof ( *pic_container ) );
  29. error = ft_base_pic_init( library );
  30. if ( error )
  31. return error;
  32. return FT_Err_Ok;
  33. }
  34. /* Destroy the contents of the container. */
  35. FT_BASE_DEF( void )
  36. ft_pic_container_destroy( FT_Library library )
  37. {
  38. ft_base_pic_free( library );
  39. }
  40. #endif /* FT_CONFIG_OPTION_PIC */
  41. /* END */