cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1 | /* |
| 2 | Copyright 1999-2009 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. |
| 6 | obtain a copy of the License at |
| 7 | |
| 8 | http://www.imagemagick.org/MagicksToolkit/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 | #if defined(__cplusplus) || defined(c_plusplus) |
| 22 | extern "C" { |
| 23 | #endif |
| 24 | |
| 25 | #include <magick/exception.h> |
| 26 | #include <magick/splay-tree.h> |
| 27 | |
| 28 | typedef struct _XMLTreeInfo |
| 29 | 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 |