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
|
#ifndef SWORDAPI_H
#define SWORDAPI_H
#include <swmodule.h>
#include <swkey.h>
#include <versekey.h>
#ifdef __cplusplus
extern "C" {
#endif
void _export PASCAL YoYo(int x, int y);
int _export PASCAL NewModule(char FAR *type, void *iparams);
void _export PASCAL DeleteModule(SWModule FAR *mod);
char _export PASCAL ModSetKeyText(SWModule FAR *mod, char FAR *key);
char _export PASCAL ModSetKeyKey(SWModule FAR *mod, SWKey FAR *key);
int _export PASCAL ModGetTextLen(SWModule FAR *mod);
void _export PASCAL ModGetText(SWModule FAR *mod, char FAR *buf, int size);
void _export PASCAL ModGetKeyText(SWModule FAR *mod, char FAR *buf, int size);
int _export PASCAL ModGetKey(SWModule FAR *mod);
void _export PASCAL ModInc(SWModule FAR *mod);
void _export PASCAL ModDec(SWModule FAR *mod);
int _export PASCAL ModSearch(SWModule FAR *mod, char FAR *stext);
int _export PASCAL ModError(SWModule FAR *mod);
/******************************************************************************
* Key routines
*/
int _export PASCAL NewKey(char FAR *type);
void _export PASCAL DeleteKey(SWKey FAR *hkey);
void _export PASCAL KeySetPersist(SWKey *hkey, int ipersist);
int _export PASCAL KeyGetPersist(SWKey *hkey);
int _export PASCAL KeyError(SWKey *hkey);
void _export PASCAL KeyGetText(SWKey FAR *hkey, char FAR *buf, int size);
void _export PASCAL KeySetText(SWKey FAR *hkey, char FAR *buf);
void _export PASCAL KeySetKey(SWKey FAR *hkey, SWKey FAR *skey);
void _export PASCAL KeyInc(SWKey FAR *hkey);
void _export PASCAL KeyDec(SWKey FAR *hkey);
//-------- VerseKey specifics ----------------
int _export PASCAL VerseKeyGetTestament(VerseKey *hkey);
int _export PASCAL VerseKeyGetBook(VerseKey *hkey);
int _export PASCAL VerseKeyGetChapter(VerseKey *hkey);
int _export PASCAL VerseKeyGetVerse(VerseKey *hkey);
void _export PASCAL VerseKeySetTestament(VerseKey *hkey, int val);
void _export PASCAL VerseKeySetBook(VerseKey *hkey, int val);
void _export PASCAL VerseKeySetChapter(VerseKey *hkey, int val);
void _export PASCAL VerseKeySetVerse(VerseKey *hkey, int val);
void _export PASCAL VerseKeyNormalize(VerseKey *hkey);
void _export PASCAL VerseKeySetAutoNormalize(VerseKey *hkey, int val);
int _export PASCAL VerseKeyGetAutoNormalize(VerseKey *hkey);
#ifdef __cplusplus
}
#endif
#endif
|