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