zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ftpic.c
Go to the documentation of this 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 
18 
19 #include <ft2build.h>
20 #include FT_FREETYPE_H
21 #include FT_INTERNAL_OBJECTS_H
22 #include "basepic.h"
23 
24 #ifdef FT_CONFIG_OPTION_PIC
25 
26  /* documentation is in ftpic.h */
27 
29  ft_pic_container_init( FT_Library library )
30  {
31  FT_PIC_Container* pic_container = &library->pic_container;
33 
34  FT_MEM_SET( pic_container, 0, sizeof ( *pic_container ) );
35 
36  error = ft_base_pic_init( library );
37  if ( error )
38  return error;
39 
40  return FT_Err_Ok;
41  }
42 
43 
44  /* Destroy the contents of the container. */
45  FT_BASE_DEF( void )
46  ft_pic_container_destroy( FT_Library library )
47  {
48  ft_base_pic_free( library );
49  }
50 
51 #endif /* FT_CONFIG_OPTION_PIC */
52 
53 
54 /* END */
int FT_Error
Definition: fttypes.h:296
FT_Library library
Definition: cffdrivr.c:409
return FT_Err_Ok
Definition: ftbbox.c:658
FT_Error error
Definition: cffdrivr.c:407
#define FT_BASE_DEF(x)
Definition: ftconfig.h:489
#define FT_MEM_SET(dest, byte, count)
Definition: ftmemory.h:201