MagickCore  6.9.12-67
Convert, Edit, Or Compose Bitmap Images
 All Data Structures
xml-tree.h
1 /*
2  Copyright 1999-2021 ImageMagick Studio LLC, a non-profit organization
3  dedicated to making software imaging solutions freely available.
4 
5  You may not use this file except in compliance with the License. You may
6  obtain a copy of the License at
7 
8  https://imagemagick.org/script/license.php
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 
16  Magick's toolkit xml-tree methods.
17 */
18 #ifndef MAGICKCORE_XML_TREE_H
19 #define MAGICKCORE_XML_TREE_H
20 
21 #include "magick/exception.h"
22 #include "magick/splay-tree.h"
23 
24 #if defined(__cplusplus) || defined(c_plusplus)
25 extern "C" {
26 #endif
27 
28 typedef struct _XMLTreeInfo
30 
31 extern MagickExport char
32  *CanonicalXMLContent(const char *,const MagickBooleanType),
33  *XMLTreeInfoToXML(XMLTreeInfo *);
34 
35 extern MagickExport const char
36  *GetXMLTreeAttribute(XMLTreeInfo *,const char *),
37  *GetXMLTreeContent(XMLTreeInfo *),
38  **GetXMLTreeProcessingInstructions(XMLTreeInfo *,const char *),
39  *GetXMLTreeTag(XMLTreeInfo *);
40 
41 extern MagickExport MagickBooleanType
42  GetXMLTreeAttributes(const XMLTreeInfo *,SplayTreeInfo *);
43 
44 extern MagickExport XMLTreeInfo
45  *AddChildToXMLTree(XMLTreeInfo *,const char *,const size_t),
46  *AddPathToXMLTree(XMLTreeInfo *,const char *,const size_t),
47  *DestroyXMLTree(XMLTreeInfo *),
48  *GetNextXMLTreeTag(XMLTreeInfo *),
49  *GetXMLTreeChild(XMLTreeInfo *,const char *),
50  *GetXMLTreeOrdered(XMLTreeInfo *),
51  *GetXMLTreePath(XMLTreeInfo *,const char *),
52  *GetXMLTreeSibling(XMLTreeInfo *),
53  *InsertTagIntoXMLTree(XMLTreeInfo *,XMLTreeInfo *,const size_t),
54  *NewXMLTree(const char *,ExceptionInfo *),
55  *NewXMLTreeTag(const char *),
56  *ParseTagFromXMLTree(XMLTreeInfo *),
57  *PruneTagFromXMLTree(XMLTreeInfo *),
58  *SetXMLTreeAttribute(XMLTreeInfo *,const char *,const char *),
59  *SetXMLTreeContent(XMLTreeInfo *,const char *);
60 
61 #if defined(__cplusplus) || defined(c_plusplus)
62 }
63 #endif
64 
65 #endif