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