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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
/* Copyright (C) 2013 Kevin W. Hamlen
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
* The latest version of this program can be obtained from
* http://songs.sourceforge.net.
*/
#ifndef SONGIDX_H
#define SONGIDX_H
#if HAVE_CONFIG_H
# include "config.h"
#else
# include "vsconfig.h"
#endif
#include "chars.h"
#include "fileio.h"
/* A SONGENTRY struct consists of three fields:
* title: a string representing the title of the song
* num: a string representing the song's number in the book (might be
* something like "H10")
* linkname: a string denoting the internal hyperlink label for this song
* idx: a unique integer key that should be used to sort songs with
* identical titles */
typedef struct
{
WCHAR *title;
WCHAR *num;
WCHAR *linkname;
int idx;
}
SONGENTRY;
/* The following functions are in songsort.c */
extern void skipesc(const WCHAR **p, int stop_on_space, int skipover_groups);
extern int songcmp(const void *s1, const void *s2);
/* The following function is in titleidx.c */
extern int gentitleindex(FSTATE *fs, const char *outname);
/* The following function is in scripidx.c */
extern int genscriptureindex(FSTATE *fs, const char *outname,
const char *biblename);
/* The following function is in authidx.c */
extern int genauthorindex(FSTATE *fs, const char *outname);
#endif
|