diff options
Diffstat (limited to 'tclxml/include/tclxml-libxml2/docObj.h')
-rw-r--r-- | tclxml/include/tclxml-libxml2/docObj.h | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/tclxml/include/tclxml-libxml2/docObj.h b/tclxml/include/tclxml-libxml2/docObj.h deleted file mode 100644 index aaffb2e..0000000 --- a/tclxml/include/tclxml-libxml2/docObj.h +++ /dev/null @@ -1,60 +0,0 @@ -/* docObj.h -- - * - * This module manages libxml2 xmlDocPtr Tcl objects. - * - * Copyright (c) 2003 Zveno Pty Ltd - * http://www.zveno.com/ - * - * Zveno Pty Ltd makes this software and associated documentation - * available free of charge for any purpose. You may make copies - * of the software but you must include all of this notice on any copy. - * - * Zveno Pty Ltd does not warrant that this software is error free - * or fit for any purpose. Zveno Pty Ltd disclaims any liability for - * all claims, expenses, losses, damages and costs any user may incur - * as a result of using, copying or modifying the software. - * - * $Id: docObj.h,v 1.1.1.1 2009/01/16 22:11:49 joye Exp $ - */ - -#ifndef TCLXML_LIBXML2_DOCOBJ_H -#define TCLXML_LIBXML2_DOCOBJ_H - -#ifdef TCLXML_BUILD_AS_FRAMEWORK -#include <Tcl/tcl.h> -#else -#include <tcl.h> -#endif /* TCLXML_BUILD_AS_FRAMEWORK */ -#include <libxml/tree.h> - -typedef void (TclXML_libxml2Doc_FreeHookProc) _ANSI_ARGS_((ClientData clientData)); - -/* - * Values that define how documents are handled: - * KEEP means that documents must be explicitly destroyed, - * IMPLICIT means that documents will be destroyed when there are no longer - * any references to it. - */ - -typedef enum TclXML_libxml2_DocumentHandling { - TCLXML_LIBXML2_DOCUMENT_KEEP, - TCLXML_LIBXML2_DOCUMENT_IMPLICIT -} TclXML_libxml2_DocumentHandling; - -typedef struct TclXML_libxml2_Document { - xmlDocPtr docPtr; - - char *token; /* string rep of this document */ - - TclXML_libxml2_DocumentHandling keep; - /* how to handle document destruction */ - - void *objs; /* List of Tcl_Obj's that reference this document */ - - ClientData dom; /* Hook for TclDOM data */ - TclXML_libxml2Doc_FreeHookProc *domfree; - ClientData apphook; /* Application hook - not used by TclXML or TclDOM */ - TclXML_libxml2Doc_FreeHookProc *appfree; -} TclXML_libxml2_Document; - -#endif /* TCLXML_LIBXML2_DOCOBJ_H */ |