~ubuntu-branches/debian/squeeze/sword/squeeze

« back to all changes in this revision

Viewing changes to include/flatapi.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Glassey
  • Date: 2004-01-15 15:50:07 UTC
  • Revision ID: james.westby@ubuntu.com-20040115155007-n9mz4x0zxrs1isd3
Tags: upstream-1.5.7
ImportĀ upstreamĀ versionĀ 1.5.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef SWORDAPI_H
 
2
#define SWORDAPI_H
 
3
 
 
4
//#include <swmodule.h>
 
5
//#include <swkey.h>
 
6
//#include <versekey.h>
 
7
//#include <swmgr.h>
 
8
#include <defs.h>
 
9
#ifdef __cplusplus
 
10
#endif
 
11
 
 
12
extern "C" {
 
13
 
 
14
#define SWHANDLE int
 
15
 
 
16
//using namespace sword;
 
17
 
 
18
//-----------------------------------------------------------------
 
19
// stringlist_iterator methods
 
20
 
 
21
void SWDLLEXPORT stringlist_iterator_next(SWHANDLE hsli);
 
22
const char * SWDLLEXPORT stringlist_iterator_val(SWHANDLE hsli);
 
23
 
 
24
 
 
25
//-----------------------------------------------------------------
 
26
// modmap methods
 
27
//
 
28
void SWDLLEXPORT ModList_iterator_next(SWHANDLE hmmi);
 
29
SWHANDLE SWDLLEXPORT ModList_iterator_val(SWHANDLE hmmi);
 
30
 
 
31
 
 
32
//-----------------------------------------------------------------
 
33
// SWMgr methods
 
34
//
 
35
SWHANDLE SWDLLEXPORT SWMgr_new();
 
36
// SWConfig *, SWConfig *, bool, SWFilterMgr *
 
37
SWHANDLE SWDLLEXPORT SWMgr_newEx(SWHANDLE hiconfig, SWHANDLE hisysconfig, char autoload, SWHANDLE hfilterMgr);
 
38
void     SWDLLEXPORT SWMgr_delete(SWHANDLE hmgr);
 
39
SWHANDLE SWDLLEXPORT SWMgr_getConfig(SWHANDLE hmgr);
 
40
SWHANDLE SWDLLEXPORT SWMgr_getModulesIterator(SWHANDLE hmgr);
 
41
SWHANDLE SWDLLEXPORT SWMgr_getModuleByName(SWHANDLE hmgr, const char *name);
 
42
const char *   SWDLLEXPORT SWMgr_getPrefixPath(SWHANDLE hmgr);
 
43
const char *   SWDLLEXPORT SWMgr_getConfigPath(SWHANDLE hmgr);
 
44
void     SWDLLEXPORT SWMgr_setGlobalOption(SWHANDLE hmgr, const char *option, const char *value);
 
45
const char *   SWDLLEXPORT SWMgr_getGlobalOption(SWHANDLE hmgr, const char *option);
 
46
const char *   SWDLLEXPORT SWMgr_getGlobalOptionTip(SWHANDLE hmgr, const char *option);
 
47
// ret: forward_iterator
 
48
SWHANDLE SWDLLEXPORT SWMgr_getGlobalOptionsIterator(SWHANDLE hmgr);
 
49
// ret: forward_iterator
 
50
SWHANDLE SWDLLEXPORT SWMgr_getGlobalOptionValuesIterator(SWHANDLE hmgr, const char *option);
 
51
void     SWDLLEXPORT SWMgr_setCipherKey(SWHANDLE hmgr, const char *modName, const char *key);
 
52
 
 
53
 
 
54
//-----------------------------------------------------------------
 
55
// SWModule methods
 
56
 
 
57
void  SWDLLEXPORT SWModule_terminateSearch(SWHANDLE hmodule);
 
58
char  SWDLLEXPORT SWModule_error(SWHANDLE hmodule);
 
59
int   SWDLLEXPORT SWModule_getEntrySize(SWHANDLE hmodule);
 
60
void  SWDLLEXPORT SWModule_setKeyText(SWHANDLE hmodule, const char *key);
 
61
const char * SWDLLEXPORT SWModule_getKeyText(SWHANDLE hmodule);
 
62
const char * SWDLLEXPORT SWModule_getName(SWHANDLE hmodule);
 
63
const char * SWDLLEXPORT SWModule_getDescription(SWHANDLE hmodule);
 
64
const char * SWDLLEXPORT SWModule_getType(SWHANDLE hmodule);
 
65
void  SWDLLEXPORT SWModule_previous(SWHANDLE hmodule);
 
66
void  SWDLLEXPORT SWModule_next(SWHANDLE hmodule);
 
67
void  SWDLLEXPORT SWModule_begin(SWHANDLE hmodule);
 
68
const char * SWDLLEXPORT SWModule_getStripText(SWHANDLE hmodule);
 
69
const char * SWDLLEXPORT SWModule_getRenderText(SWHANDLE hmodule);
 
70
 
 
71
}
 
72
#ifdef __cplusplus
 
73
#endif
 
74
 
 
75
#endif