#ifndef _GNOME_HELP_TOC_H_ #define _GNOME_HELP_TOC_H_ #include #include #define TOC_MAN_TYPE 0 #define TOC_INFO_TYPE 1 #define TOC_GHELP_TYPE 2 struct _toc_config { char *path; int type; }; struct _big_table_entry { gchar *name; /* g_malloc() */ gint type; gint expanded; /* Only used for info */ gint indirect; /* Only used for info */ gchar *section; /* Only used for info */ gchar ext; /* Only used for man */ gchar *filename; }; typedef struct _toc *Toc; Toc newToc(gchar *manPath, gchar *infoPath, gchar *ghelpPath); GString *genManTocHTML(Toc res); GString *genInfoTocHTML(Toc res); GString *genGhelpTocHTML(Toc res); gchar *tocLookupInfo(Toc toc, gchar *name, gchar *anchor); gchar *tocLookupMan(Toc toc, gchar *name, gchar ext); gchar *tocLookupGhelp(Toc toc, gchar *name); GString *findMatchesBySubstr(Toc toc, gchar *substr); #endif