4 * Copyright 1996 Ulrich Schmid
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
31 enum para_type {para_normal_text, para_debug_text, para_image};
33 typedef struct tagHlpFileParagraph
35 enum para_type cookie;
50 unsigned pos; /* 0: center, 1: left, 2: right */
56 struct tagHlpFileParagraph* next;
59 typedef struct tagHlpFilePage
62 HLPFILE_PARAGRAPH* first_paragraph;
66 struct tagHlpFilePage* next;
67 struct tagHlpFilePage* prev;
68 struct tagHlpFileFile* file;
77 typedef struct tagHlpFileMacro
80 struct tagHlpFileMacro* next;
90 typedef struct tagHlpFileFile
94 HLPFILE_PAGE* first_page;
95 HLPFILE_MACRO* first_macro;
97 HLPFILE_CONTEXT* Context;
98 struct tagHlpFileFile* prev;
99 struct tagHlpFileFile* next;
103 unsigned short version;
104 unsigned short flags;
105 unsigned hasPhrases; /* Phrases or PhrIndex/PhrImage */
111 HLPFILE *HLPFILE_ReadHlpFile(LPCSTR lpszPath);
112 HLPFILE_PAGE *HLPFILE_Contents(LPCSTR lpszPath);
113 HLPFILE_PAGE *HLPFILE_PageByHash(LPCSTR lpszPath, LONG wNum);
114 LONG HLPFILE_Hash(LPCSTR lpszContext);
115 VOID HLPFILE_FreeHlpFilePage(HLPFILE_PAGE*);
116 VOID HLPFILE_FreeHlpFile(HLPFILE*);