-
Notifications
You must be signed in to change notification settings - Fork 0
/
ftoh.h
37 lines (32 loc) · 1.38 KB
/
ftoh.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// ftoh.h by Joseph Ayo-Vaughan; files to HTML generator
#include "fgfile.h"
/**
** create a .html file
** parameter fileName: name of the html file minus ".html"
** parameter folder: directory to store html file. set to NULL to save in current directory
** returns non-absolute save location of file
**/
char* createHtmlFile(char *fileName, char *folder);
/**
** markup file with html
** parameter fgfile: FGFile to write html markup in
** parameter fileArr: FGFile array to use for generated anchor tags
** returns 0 on success, non-zero on failure
**/
int markupFile(FGFile *fgfile, FGFile **fileArr);
/**
** create an html file with links to all generated html files
** parameter filesListStr: a file with a list of generated html files save locations
** returns 0 on success, non-zero on failure
**/
int createPortalFromFilesList(char *filesListStr);
/**
** create, save html files to directories given and write save locations to a file
** markup files when done
** parameter fileArr: an array of FGFiles
** parameter per: number of files to save in each directory
** parameter dirListStr: name of the file containing a directories list
** parameter filesListStr: name of the file to write save locations of the generated html files
** returns 0 on success, non-zero on failure
**/
int organizeWithDirectoriesFile(FGFile **fileArr, int per, char *dirListStr, char *filesListStr);