23 #ifndef SWORDFLATAPI_H
24 #define SWORDFLATAPI_H
33 #define SWHANDLE intptr_t
54 #undef org_crosswire_sword_SWModule_SEARCHTYPE_REGEX
55 #define org_crosswire_sword_SWModule_SEARCHTYPE_REGEX 1L
56 #undef org_crosswire_sword_SWModule_SEARCHTYPE_PHRASE
57 #define org_crosswire_sword_SWModule_SEARCHTYPE_PHRASE -1L
58 #undef org_crosswire_sword_SWModule_SEARCHTYPE_MULTIWORD
59 #define org_crosswire_sword_SWModule_SEARCHTYPE_MULTIWORD -2L
60 #undef org_crosswire_sword_SWModule_SEARCHTYPE_ENTRYATTR
61 #define org_crosswire_sword_SWModule_SEARCHTYPE_ENTRYATTR -3L
62 #undef org_crosswire_sword_SWModule_SEARCHTYPE_LUCENE
63 #define org_crosswire_sword_SWModule_SEARCHTYPE_LUCENE -4L
130 (
SWHANDLE hSWModule,
const char *level1,
const char *level2,
const char *level3,
char filteredBool);
138 (
SWHANDLE hSWModule,
const char *keyText);
276 (
SWHANDLE hSWModule,
const char *entryBuffer);
350 (
SWHANDLE hSWMgr,
const char *moduleName);
374 (
SWHANDLE hSWMgr,
const char *option,
const char *value);
382 (
SWHANDLE hSWMgr,
const char *option);
390 (
SWHANDLE hSWMgr,
const char *option);
398 (
SWHANDLE hSWMgr,
const char *filterName,
const char *text);
423 (
const char *
confPath,
const char *section);
431 (
const char *
confPath,
const char *section,
const char *key);
439 (
const char *
confPath,
const char *section,
const char *key,
const char *value);
447 (
const char *
confPath,
const char *configBlob);
455 (
SWHANDLE hSWMgr,
const char *option);
463 (
SWHANDLE hSWMgr,
const char *modName,
const char *key);
495 (
SWHANDLE hSWMgr,
const char *text,
const char *localeName);
507 typedef char * (*org_crosswire_sword_StringMgr_toUpperUTF8)(
const char *,
unsigned long);
565 (
SWHANDLE hInstallMgr,
const char *sourceName);
573 (
SWHANDLE hInstallMgr,
SWHANDLE hSWMgr_deltaCompareTo,
const char *sourceName);
581 (
SWHANDLE hInstallMgr_from,
SWHANDLE hSWMgr_to,
const char *sourceName,
const char *modName);
589 (
SWHANDLE hInstallMgr,
const char *sourceName,
const char *modName);
614 (
SWHANDLE hMgr,
const char *osisRefRaw);
const char **SWDLLEXPORT org_crosswire_sword_SWModule_getKeyChildren(SWHANDLE hSWModule)
const int org_crosswire_sword_SWLog_LOG_WARN
const int org_crosswire_sword_SWModule_VERSEKEY_CHAPTERMAX
const char **SWDLLEXPORT org_crosswire_sword_SWMgr_getGlobalOptions(SWHANDLE hSWMgr)
void(* org_crosswire_sword_SWModule_SearchCallback)(int)
void SWDLLEXPORT org_crosswire_sword_InstallMgr_delete(SWHANDLE hInstallMgr)
const char *SWDLLEXPORT org_crosswire_sword_SWMgr_translate(SWHANDLE hSWMgr, const char *text, const char *localeName)
const char *SWDLLEXPORT org_crosswire_sword_SWModule_getRenderHeader(SWHANDLE hSWModule)
const char *SWDLLEXPORT org_crosswire_sword_SWModule_getName(SWHANDLE hSWModule)
const char *SWDLLEXPORT org_crosswire_sword_SWModule_getKeyParent(SWHANDLE hSWModule)
const int org_crosswire_sword_SWModule_VERSEKEY_BOOK
void SWDLLEXPORT org_crosswire_sword_SWLog_logWarning(const char *msg)
void SWDLLEXPORT org_crosswire_sword_SWLog_setLogLevel(int level)
const int org_crosswire_sword_SWModule_VERSEKEY_BOOKNAME
void SWDLLEXPORT org_crosswire_sword_SWModule_next(SWHANDLE hSWModule)
const char **SWDLLEXPORT org_crosswire_sword_SWModule_getEntryAttribute(SWHANDLE hSWModule, const char *level1, const char *level2, const char *level3, char filteredBool)
const char *SWDLLEXPORT org_crosswire_sword_SWMgr_getGlobalOption(SWHANDLE hSWMgr, const char *option)
const char *SWDLLEXPORT org_crosswire_sword_SWModule_renderText(SWHANDLE hSWModule)
void SWDLLEXPORT org_crosswire_sword_SWMgr_setCipherKey(SWHANDLE hSWMgr, const char *modName, const char *key)
const int org_crosswire_sword_SWModule_VERSEKEY_CHAPMAX
struct org_crosswire_sword_ModInfo *SWDLLEXPORT org_crosswire_sword_InstallMgr_getRemoteModInfoList(SWHANDLE hInstallMgr, SWHANDLE hSWMgr_deltaCompareTo, const char *sourceName)
void SWDLLEXPORT org_crosswire_sword_SWConfig_setKeyValue(const char *confPath, const char *section, const char *key, const char *value)
const int org_crosswire_sword_SWModule_VERSEKEY_TESTAMENT
SWHANDLE SWDLLEXPORT org_crosswire_sword_InstallMgr_getRemoteModuleByName(SWHANDLE hInstallMgr, const char *sourceName, const char *modName)
void SWDLLEXPORT org_crosswire_sword_SWMgr_startBibleSync(SWHANDLE hMgr, const char *appNameJS, const char *userNameJS, const char *passphraseJS, org_biblesync_MessageReceivedCallback callback)
struct org_crosswire_sword_ModInfo *SWDLLEXPORT org_crosswire_sword_SWMgr_getModInfoList(SWHANDLE hSWMgr)
char *(* org_crosswire_sword_StringMgr_toUpperUTF8)(const char *, unsigned long)
StatusReporter * statusReporter
void SWDLLEXPORT org_crosswire_sword_SWLog_logTimedInformation(const char *msg)
void SWDLLEXPORT org_crosswire_sword_SWLog_logError(const char *msg)
const int org_crosswire_sword_SWLog_LOG_INFO
const char *SWDLLEXPORT org_crosswire_sword_SWModule_getDescription(SWHANDLE hSWModule)
const char **SWDLLEXPORT org_crosswire_sword_SWConfig_augmentConfig(const char *confPath, const char *configBlob)
void SWDLLEXPORT org_crosswire_sword_SWModule_setRawEntry(SWHANDLE hSWModule, const char *entryBuffer)
const char *SWDLLEXPORT org_crosswire_sword_SWMgr_getPrefixPath(SWHANDLE hSWMgr)
char SWDLLEXPORT org_crosswire_sword_SWModule_hasSearchFramework(SWHANDLE hSWModule)
const int org_crosswire_sword_SWModule_VERSEKEY_OSISBOOKNAME
const char **SWDLLEXPORT org_crosswire_sword_SWMgr_getAvailableLocales(SWHANDLE hSWMgr)
void SWDLLEXPORT org_crosswire_sword_InstallMgr_setUserDisclaimerConfirmed(SWHANDLE hInstallMgr)
const char *SWDLLEXPORT org_crosswire_sword_SWMgr_filterText(SWHANDLE hSWMgr, const char *filterName, const char *text)
void SWDLLEXPORT org_crosswire_sword_SWModule_setKeyText(SWHANDLE hSWModule, const char *key)
const int org_crosswire_sword_SWLog_LOG_ERROR
void SWDLLEXPORT org_crosswire_sword_SWMgr_delete(SWHANDLE hSWMgr)
SWHANDLE SWDLLEXPORT org_crosswire_sword_SWMgr_new()
const char *SWDLLEXPORT org_crosswire_sword_SWMgr_getConfigPath(SWHANDLE hSWMgr)
int SWDLLEXPORT org_crosswire_sword_InstallMgr_uninstallModule(SWHANDLE hInstallMgr, SWHANDLE hSWMgr_removeFrom, const char *modName)
int SWDLLEXPORT org_crosswire_sword_InstallMgr_refreshRemoteSource(SWHANDLE hInstallMgr, const char *sourceName)
int SWDLLEXPORT org_crosswire_sword_InstallMgr_remoteInstallModule(SWHANDLE hInstallMgr_from, SWHANDLE hSWMgr_to, const char *sourceName, const char *modName)
const int org_crosswire_sword_SWLog_LOG_DEBUG
const char *SWDLLEXPORT org_crosswire_sword_SWConfig_getKeyValue(const char *confPath, const char *section, const char *key)
void SWDLLEXPORT org_crosswire_sword_SWMgr_setDefaultLocale(SWHANDLE hSWMgr, const char *name)
const int org_crosswire_sword_SWModule_VERSEKEY_CHAPTER
const char **SWDLLEXPORT org_crosswire_sword_SWModule_parseKeyList(SWHANDLE hSWModule, const char *keyText)
const char *SWDLLEXPORT org_crosswire_sword_SWModule_getKeyText(SWHANDLE hSWModule)
int SWDLLEXPORT org_crosswire_sword_SWLog_getLogLevel()
const int org_crosswire_sword_SWModule_VERSEKEY_VERSE
struct org_crosswire_sword_SearchHit *SWDLLEXPORT org_crosswire_sword_SWModule_search(SWHANDLE hSWModule, const char *searchString, int searchType, long flags, const char *scope, org_crosswire_sword_SWModule_SearchCallback progressReporter)
const char **SWDLLEXPORT org_crosswire_sword_SWConfig_getSections(const char *confPath)
SWHANDLE SWDLLEXPORT org_crosswire_sword_SWMgr_newWithPath(const char *path)
int SWDLLEXPORT org_crosswire_sword_InstallMgr_syncConfig(SWHANDLE hInstallMgr)
void SWDLLEXPORT org_crosswire_sword_SWMgr_stopBibleSync(SWHANDLE hMgr)
void(* org_biblesync_MessageReceivedCallback)(char, const char *, const char *)
void SWDLLEXPORT org_crosswire_sword_SWModule_previous(SWHANDLE hSWModule)
const int org_crosswire_sword_SWLog_LOG_TIMEDINFO
const int org_crosswire_sword_SWModule_VERSEKEY_OSISREF
void SWDLLEXPORT org_crosswire_sword_SWMgr_setGlobalOption(SWHANDLE hSWMgr, const char *option, const char *value)
void SWDLLEXPORT org_crosswire_sword_SWMgr_sendBibleSyncMessage(SWHANDLE hMgr, const char *osisRefRaw)
void SWDLLEXPORT org_crosswire_sword_SWLog_logInformation(const char *msg)
SWHANDLE SWDLLEXPORT org_crosswire_sword_SWMgr_getModuleByName(SWHANDLE hSWMgr, const char *moduleName)
void SWDLLEXPORT org_crosswire_sword_SWModule_begin(SWHANDLE hSWModule)
SWHANDLE SWDLLEXPORT org_crosswire_sword_InstallMgr_new(const char *baseDir, org_crosswire_sword_InstallMgr_StatusCallback statusReporter)
const char **SWDLLEXPORT org_crosswire_sword_SWConfig_getSectionKeys(const char *confPath, const char *section)
void SWDLLEXPORT org_crosswire_sword_StringMgr_setToUpper(org_crosswire_sword_StringMgr_toUpperUTF8 toUpperUTF8)
void SWDLLEXPORT org_crosswire_sword_SWModule_deleteSearchFramework(SWHANDLE hSWModule)
const char *SWDLLEXPORT org_crosswire_sword_SWModule_getRawEntry(SWHANDLE hSWModule)
const char **SWDLLEXPORT org_crosswire_sword_SWMgr_getGlobalOptionValues(SWHANDLE hSWMgr, const char *option)
const char **SWDLLEXPORT org_crosswire_sword_InstallMgr_getRemoteSources(SWHANDLE hInstallMgr)
char SWDLLEXPORT org_crosswire_sword_SWModule_popError(SWHANDLE hSWModule)
const char *SWDLLEXPORT org_crosswire_sword_SWModule_getConfigEntry(SWHANDLE hSWModule, const char *key)
const char *SWDLLEXPORT org_crosswire_sword_SWMgr_version(SWHANDLE hSWMgr)
const char *SWDLLEXPORT org_crosswire_sword_SWModule_stripText(SWHANDLE hSWModule)
void SWDLLEXPORT org_crosswire_sword_SWMgr_setJavascript(SWHANDLE hSWMgr, char valueBool)
const char *SWDLLEXPORT org_crosswire_sword_SWModule_getCategory(SWHANDLE hSWModule)
void SWDLLEXPORT org_crosswire_sword_SWModule_terminateSearch(SWHANDLE hSWModule)
long SWDLLEXPORT org_crosswire_sword_SWModule_getEntrySize(SWHANDLE hSWModule)
void SWDLLEXPORT org_crosswire_sword_SWLog_logDebug(const char *msg)
char SWDLLEXPORT org_crosswire_sword_SWModule_hasKeyChildren(SWHANDLE hSWModule)
const int org_crosswire_sword_SWModule_VERSEKEY_BOOKABBREV
const char *SWDLLEXPORT org_crosswire_sword_SWMgr_getGlobalOptionTip(SWHANDLE hSWMgr, const char *option)
const int org_crosswire_sword_SWModule_VERSEKEY_VERSEMAX
const int org_crosswire_sword_SWModule_VERSEKEY_SHORTTEXT
void(* org_crosswire_sword_InstallMgr_StatusCallback)(const char *, unsigned long, unsigned long)