aboutsummaryrefslogtreecommitdiffstats
path: root/include/flatapi.h
diff options
context:
space:
mode:
authordanglassey <danglassey>2002-08-14 09:57:17 +0000
committerdanglassey <danglassey>2002-08-14 09:57:17 +0000
commitdaa67ff1f728c07f2a116ee9a9f4505479ca6808 (patch)
treec224a537d30480002ae0560cc9104b543b4d1b5e /include/flatapi.h
parent6d6973e035aac5ec1676efccd5b8ada70c40b639 (diff)
downloadsword-sf-cvs-import-1.1.1.tar.gz
Initial import from crosswire CVS for syncingimport-1.1.1
Diffstat (limited to 'include/flatapi.h')
-rw-r--r--include/flatapi.h78
1 files changed, 78 insertions, 0 deletions
diff --git a/include/flatapi.h b/include/flatapi.h
new file mode 100644
index 0000000..029d851
--- /dev/null
+++ b/include/flatapi.h
@@ -0,0 +1,78 @@
+#ifndef SWORDAPI_H
+#define SWORDAPI_H
+
+#include <swmodule.h>
+#include <swkey.h>
+#include <versekey.h>
+#include <swmgr.h>
+
+#ifdef __cplusplus
+#endif
+
+extern "C" {
+
+#define SWHANDLE int
+
+typedef struct {
+ ModMap::iterator it;
+ ModMap::iterator end;
+} ModItType;
+
+//-----------------------------------------------------------------
+// stringlist_iterator methods
+
+void stringlist_iterator_next(SWHANDLE hsli);
+const char *stringlist_iterator_val(SWHANDLE hsli);
+
+
+//-----------------------------------------------------------------
+// modmap methods
+//
+void ModList_iterator_next(SWHANDLE hmmi);
+SWHANDLE ModList_iterator_val(SWHANDLE hmmi);
+
+
+//-----------------------------------------------------------------
+// SWMgr methods
+//
+SWHANDLE SWMgr_new();
+// SWConfig *, SWConfig *, bool, SWFilterMgr *
+SWHANDLE SWMgr_newEx(SWHANDLE hiconfig, SWHANDLE hisysconfig, char autoload, SWHANDLE hfilterMgr);
+void SWMgr_delete(SWHANDLE hmgr);
+SWHANDLE SWMgr_getConfig(SWHANDLE hmgr);
+SWHANDLE SWMgr_getModulesIterator(SWHANDLE hmgr);
+SWHANDLE SWMgr_getModuleByName(SWHANDLE hmgr, const char *name);
+const char * SWMgr_getPrefixPath(SWHANDLE hmgr);
+const char * SWMgr_getConfigPath(SWHANDLE hmgr);
+void SWMgr_setGlobalOption(SWHANDLE hmgr, const char *option, const char *value);
+const char * SWMgr_getGlobalOption(SWHANDLE hmgr, const char *option);
+const char * SWMgr_getGlobalOptionTip(SWHANDLE hmgr, const char *option);
+// ret: forward_iterator
+SWHANDLE SWMgr_getGlobalOptionsIterator(SWHANDLE hmgr);
+// ret: forward_iterator
+SWHANDLE SWMgr_getGlobalOptionValuesIterator(SWHANDLE hmgr, const char *option);
+void SWMgr_setCipherKey(SWHANDLE hmgr, const char *modName, const char *key);
+
+
+//-----------------------------------------------------------------
+// SWModule methods
+
+void SWModule_terminateSearch(SWHANDLE hmodule);
+char SWModule_error(SWHANDLE hmodule);
+int SWModule_getEntrySize(SWHANDLE hmodule);
+void SWModule_setKeyText(SWHANDLE hmodule, const char *key);
+const char *SWModule_getKeyText(SWHANDLE hmodule);
+const char *SWModule_getName(SWHANDLE hmodule);
+const char *SWModule_getDescription(SWHANDLE hmodule);
+const char *SWModule_getType(SWHANDLE hmodule);
+void SWModule_previous(SWHANDLE hmodule);
+void SWModule_next(SWHANDLE hmodule);
+void SWModule_begin(SWHANDLE hmodule);
+const char *SWModule_getStripText(SWHANDLE hmodule);
+const char *SWModule_getRenderText(SWHANDLE hmodule);
+
+}
+#ifdef __cplusplus
+#endif
+
+#endif