1 /*
    2  * << Haru Free PDF Library >> -- hpdf_namedict.h
    3  *
    4  * URL: http://libharu.org
    5  *
    6  * Copyright (c) 1999-2006 Takeshi Kanno <takeshi_kanno@est.hi-ho.ne.jp>
    7  * Copyright (c) 2007-2009 Antony Dovgal <tony@daylessday.org>
    8  *
    9  * Permission to use, copy, modify, distribute and sell this software
   10  * and its documentation for any purpose is hereby granted without fee,
   11  * provided that the above copyright notice appear in all copies and
   12  * that both that copyright notice and this permission notice appear
   13  * in supporting documentation.
   14  * It is provided "as is" without express or implied warranty.
   15  *
   16  */
   17 
   18 #ifndef _HPDF_NAMEDICT_H
   19 #define _HPDF_NAMEDICT_H
   20 
   21 #include "hpdf_objects.h"
   22 
   23 #ifdef __cplusplus
   24 extern "C" {
   25 #endif
   26 
   27 
   28 HPDF_NameDict
   29 HPDF_NameDict_New  (HPDF_MMgr  mmgr,
   30                     HPDF_Xref  xref);
   31 
   32 HPDF_NameTree
   33 HPDF_NameDict_GetNameTree  (HPDF_NameDict     namedict,
   34                             HPDF_NameDictKey  key);
   35 
   36 HPDF_STATUS
   37 HPDF_NameDict_SetNameTree  (HPDF_NameDict     namedict,
   38                             HPDF_NameDictKey  key,
   39                             HPDF_NameTree     tree);
   40 
   41 HPDF_BOOL
   42 HPDF_NameDict_Validate  (HPDF_NameDict  namedict);
   43 
   44 
   45 /*------- NameTree -------*/
   46 
   47 HPDF_NameTree
   48 HPDF_NameTree_New  (HPDF_MMgr  mmgr,
   49                     HPDF_Xref  xref);
   50 
   51 HPDF_STATUS
   52 HPDF_NameTree_Add  (HPDF_NameTree  tree,
   53                     HPDF_String    name,
   54                     void          *obj);
   55 
   56 HPDF_BOOL
   57 HPDF_NameTree_Validate  (HPDF_NameTree  tree);
   58 
   59 
   60 /*------- EmbeddedFile -------*/
   61 
   62 HPDF_EmbeddedFile
   63 HPDF_EmbeddedFile_New  (HPDF_MMgr  mmgr,
   64                         HPDF_Xref  xref,
   65                         const char *file);
   66 
   67 HPDF_BOOL
   68 HPDF_EmbeddedFile_Validate  (HPDF_EmbeddedFile  emfile);
   69 
   70 
   71 #ifdef __cplusplus
   72 }
   73 #endif /* __cplusplus */
   74 
   75 #endif /* _HPDF_NAMEDICT_H */
   76