/* ** (c) COPYRIGHT MIT 1995. ** Please first read the full copyright statement in the file COPYRIGH. */This module is the private part of the anchor object. It has the functions declarations that are private to the Library and that shouldn't be used by applications. See also the public part of the declarition in the HTAnchorModule.
#ifndef HTANCMAN_H #define HTANCMAN_H #include "HTAnchor.h" #include "HTList.h" #include "HTAtom.h" #include "HTMethod.h"
struct _HTLink { HTAnchor * dest; /* The anchor to which this leads */ HTLinkType type; /* Semantics of this link */ HTMethod method; /* Method for this link, e.g. PUT */ HTLinkResult result; /* Result of any attempt to get this link */ };
struct _HTAnchor { HTLink mainLink; /* Main (or default) destination of this */ HTList * links; /* List of extra links from this, if any */ HTParentAnchor * parent; /* Parent of this anchor (self for adults) */ };
struct _HTParentAnchor { /* Common part from the generic anchor structure */ HTLink mainLink; /* Main (or default) destination of this */ HTList * links; /* List of extra links from this, if any */ HTParentAnchor * parent; /* Parent of this anchor (self) */ /* ParentAnchor-specific information */ HTList * children; /* Subanchors of this, if any */ HTList * sources; /* List of anchors pointing to this, if any */ void * document; /* The document within this is an anchor */ char * physical; /* Physical address */ BOOL cacheHit; /* Yes, if cached object found */ char * address; /* Absolute address of this node */ BOOL isIndex; /* Acceptance of a keyword search */ /* Entity header fields */ BOOL header_parsed; /* Are we done parsing? */ char * title; HTMethod methods; /* Allowed methods (bit-flag) */ HTList * content_encoding; HTList * content_language; long int content_length; HTEncoding transfer; /* Content-Transfer-Encoding */ HTFormat content_type; HTCharset charset; /* Parameter to content-type */ HTLevel level; /* Parameter to content-type `text/html' */ time_t date; /* When was the request issued */ time_t expires; /* When does the copy expire */ time_t last_modified; char * derived_from; /* Opaque string */ char * version; /* Opaque string */ /* List of unknown headers coming in from the network. Use the field in the request structure for sending test headers. */ HTList * extra_headers; };
struct _HTChildAnchor { /* Common part from the generic anchor structure */ HTLink mainLink; /* Main (or default) destination of this */ HTList * links; /* List of extra links from this, if any */ HTParentAnchor * parent; /* Parent of this anchor */ /* ChildAnchor-specific information */ char * tag; /* Address of this anchor relative to parent */ };
#endif /* HTANCMAN_H */