toc.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* toc.h -- table of contents handling.
  2. $Id: toc.h,v 1.5 2007-07-01 21:20:33 karl Exp $
  3. Copyright (C) 1999, 2007 Free Software Foundation, Inc.
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. Written by Karl Heinz Marbaise <kama@hippo.fido.de>. */
  15. #ifndef TOC_H
  16. #define TOC_H
  17. /* Structure to hold one entry for the toc. */
  18. typedef struct toc_entry_elt {
  19. char *name;
  20. char *containing_node; /* Name of node containing this section. */
  21. char *html_file; /* Name of HTML node-file in split-HTML mode */
  22. int number; /* counting number from 0...n independent from
  23. chapter/section can be used for anchors or
  24. references to it. */
  25. int level; /* level: chapter, section, subsection... */
  26. } TOC_ENTRY_ELT;
  27. /* all routines which have relationship with TOC should start with
  28. toc_ (this is a kind of name-space) */
  29. extern int toc_add_entry (char *tocname, int level,
  30. char *node_name, char *anchor); /* return the number for the toc-entry */
  31. extern void toc_free (void);
  32. extern char *toc_find_section_of_node (char *node);
  33. extern void cm_contents (int arg);
  34. #endif /* not TOC_H */