Freeciv-3.3
Loading...
Searching...
No Matches
fc_manual.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
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***********************************************************************/
13#ifndef FC__FC_MANUAL_H
14#define FC__FC_MANUAL_H
15
16#ifdef __cplusplus
17extern "C" {
18#endif /* __cplusplus */
19
20#include <stdio.h> /* FILE */
21
22/* utility */
23#include "support.h"
24
25/* gen_headers/enums */
26#include "manual_enums_gen.h"
27
28struct tag_types {
29 const char *file_ext;
30 const char *header;
31 const char *title_begin;
32 const char *title_end;
33 const char *sect_title_begin;
34 const char *sect_title_end;
35 const char *image_begin;
36 const char *image_end;
37 const char *item_begin;
38 const char *item_end;
39 const char *subitem_begin;
40 const char *subitem_end;
41 const char *tail;
42 const char *hline;
43};
44
45/* Utility functions */
48 enum manuals manual);
49char *html_special_chars(char *str, size_t *len);
50
51/* Individual manual pages */
55bool manual_extras(struct tag_types *tag_info);
58bool manual_units(struct tag_types *tag_info);
60bool manual_techs(struct tag_types *tag_info);
61
62#ifdef __cplusplus
63}
64#endif /* __cplusplus */
65
66#endif /* FC__FC_MANUAL_H */
#define str
Definition astring.c:76
char * incite_cost
Definition comments.c:76
bool manual_terrain(struct tag_types *tag_info)
bool manual_units(struct tag_types *tag_info)
void manual_finalize(struct tag_types *tag_info, FILE *doc, enum manuals manual)
Definition fc_manual.c:320
bool manual_buildings(struct tag_types *tag_info)
bool manual_extras(struct tag_types *tag_info)
bool manual_settings(struct tag_types *tag_info)
bool manual_governments(struct tag_types *tag_info)
char * html_special_chars(char *str, size_t *len)
Definition fc_manual.c:168
FILE * manual_start(struct tag_types *tag_info, int manual_number)
Definition fc_manual.c:291
bool manual_commands(struct tag_types *tag_info)
bool manual_techs(struct tag_types *tag_info)
bool manual_uclasses(struct tag_types *tag_info)
int len
Definition packhand.c:127
const char * tail
Definition fc_manual.h:41
const char * subitem_begin
Definition fc_manual.h:39
const char * header
Definition fc_manual.h:30
const char * item_begin
Definition fc_manual.h:37
const char * file_ext
Definition fc_manual.h:29
const char * sect_title_end
Definition fc_manual.h:34
const char * title_begin
Definition fc_manual.h:31
const char * image_end
Definition fc_manual.h:36
const char * hline
Definition fc_manual.h:42
const char * item_end
Definition fc_manual.h:38
const char * sect_title_begin
Definition fc_manual.h:33
const char * title_end
Definition fc_manual.h:32
const char * subitem_end
Definition fc_manual.h:40
const char * image_begin
Definition fc_manual.h:35