The SWORD Project  1.9.0.svnversion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
flatapi.h
Go to the documentation of this file.
1 /******************************************************************************
2  *
3  * flatapi.h - This file contains an api usable by non-C++ environments
4  *
5  * $Id: flatapi.h 3765 2020-07-26 10:31:09Z scribe $
6  *
7  * Copyright 2002-2014 CrossWire Bible Society (http://www.crosswire.org)
8  * CrossWire Bible Society
9  * P. O. Box 2528
10  * Tempe, AZ 85280-2528
11  *
12  * This program is free software; you can redistribute it and/or modify it
13  * under the terms of the GNU General Public License as published by the
14  * Free Software Foundation version 2.
15  *
16  * This program is distributed in the hope that it will be useful, but
17  * WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  * General Public License for more details.
20  *
21  */
22 
23 #ifndef SWORDFLATAPI_H
24 #define SWORDFLATAPI_H
25 
26 #include <inttypes.h>
27 #include "defs.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 #define SWHANDLE intptr_t
34 
36  char *name;
37  char *description;
38  char *category;
39  char *language;
40  char *version;
41  char *delta;
42  char *cipherKey;
43  const char **features;
44 };
45 
46 
48  const char *modName;
49  char *key;
50  long score;
51 };
52 
53 
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
64 
76 // for backward compat. Remove
78 
84 
85 
86 
87 
88 /*
89  * Class: org_crosswire_sword_SWModule
90  * Method: terminateSearch
91  * Signature: ()V
92  */
94  (SWHANDLE hSWModule);
95 
97 
98 typedef void (*org_biblesync_MessageReceivedCallback)(char, const char *, const char *);
99 
100 /*
101  * Class: org_crosswire_sword_SWModule
102  * Method: search
103  * Signature: (Ljava/lang/String;IJLjava/lang/String;Lorg/crosswire/android/sword/SWModule/SearchProgressReporter;)[Lorg/crosswire/android/sword/SWModule/SearchHit;
104  */
106  (SWHANDLE hSWModule, const char *searchString, int searchType, long flags, const char *scope, org_crosswire_sword_SWModule_SearchCallback progressReporter);
107 
108 /*
109  * Class: org_crosswire_sword_SWModule
110  * Method: error
111  * Signature: ()C
112  */
114  (SWHANDLE hSWModule);
115 
116 /*
117  * Class: org_crosswire_sword_SWModule
118  * Method: getEntrySize
119  * Signature: ()J
120  */
122  (SWHANDLE hSWModule);
123 
124 /*
125  * Class: org_crosswire_sword_SWModule
126  * Method: getEntryAttribute
127  * Signature: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)[Ljava/lang/String;
128  */
130  (SWHANDLE hSWModule, const char *level1, const char *level2, const char *level3, char filteredBool);
131 
132 /*
133  * Class: org_crosswire_sword_SWModule
134  * Method: parseKeyList
135  * Signature: (Ljava/lang/String;)[Ljava/lang/String;
136  */
138  (SWHANDLE hSWModule, const char *keyText);
139 
140 /*
141  * Class: org_crosswire_sword_SWModule
142  * Method: setKeyText
143  * Signature: (Ljava/lang/String;)V
144  */
145 // Special values handled for VerseKey modules:
146 // [+-][book|chapter] - [de|in]crement by chapter or book
147 // (e.g. "+chapter" will increment the VerseKey 1 chapter)
148 // [=][key] - position absolutely and don't normalize
149 // (e.g. "jn.1.0" for John Chapter 1 intro; "jn.0.0" For Book of John Intro)
151  (SWHANDLE hSWModule, const char *key);
152 
153 /*
154  * Class: org_crosswire_sword_SWModule
155  * Method: getKeyText
156  * Signature: ()Ljava/lang/String;
157  */
159  (SWHANDLE hSWModule);
160 
161 /*
162  * Class: org_crosswire_sword_SWModule
163  * Method: hasKeyChildren
164  * Signature: ()Z
165  */
167  (SWHANDLE hSWModule);
168 
169 /*
170  * Class: org_crosswire_sword_SWModule
171  * Method: getKeyChildren
172  * Signature: ()[Ljava/lang/String;
173  */
174 
175 // This method returns child nodes for a genbook,
176 // but has special handling if called on a VerseKey module:
177 // [0..7] [testament, book, chapter, verse, chapterMax, verseMax, bookName, osisRef]
179  (SWHANDLE hSWModule);
180 
181 /*
182  * Class: org_crosswire_sword_SWModule
183  * Method: getName
184  * Signature: ()Ljava/lang/String;
185  */
187  (SWHANDLE hSWModule);
188 
189 /*
190  * Class: org_crosswire_sword_SWModule
191  * Method: getDescription
192  * Signature: ()Ljava/lang/String;
193  */
195  (SWHANDLE hSWModule);
196 
197 /*
198  * Class: org_crosswire_sword_SWModule
199  * Method: getCategory
200  * Signature: ()Ljava/lang/String;
201  */
203  (SWHANDLE hSWModule);
204 
205 /*
206  * Class: org_crosswire_sword_SWModule
207  * Method: getKeyParent
208  * Signature: ()Ljava/lang/String;
209  */
211  (SWHANDLE hSWModule);
212 
213 /*
214  * Class: org_crosswire_sword_SWModule
215  * Method: previous
216  * Signature: ()V
217  */
219  (SWHANDLE hSWModule);
220 
221 /*
222  * Class: org_crosswire_sword_SWModule
223  * Method: next
224  * Signature: ()V
225  */
227  (SWHANDLE hSWModule);
228 
229 /*
230  * Class: org_crosswire_sword_SWModule
231  * Method: begin
232  * Signature: ()V
233  */
235  (SWHANDLE hSWModule);
236 
237 /*
238  * Class: org_crosswire_sword_SWModule
239  * Method: getStripText
240  * Signature: ()Ljava/lang/String;
241  */
243  (SWHANDLE hSWModule);
244 
245 /*
246  * Class: org_crosswire_sword_SWModule
247  * Method: getRenderText
248  * Signature: ()Ljava/lang/String;
249  */
251  (SWHANDLE hSWModule);
252 
253 /*
254  * Class: org_crosswire_sword_SWModule
255  * Method: getRenderHeader
256  * Signature: ()Ljava/lang/String;
257  */
258 // CSS styles associated with this text
260  (SWHANDLE hSWModule);
261 
262 /*
263  * Class: org_crosswire_sword_SWModule
264  * Method: getRawEntry
265  * Signature: ()Ljava/lang/String;
266  */
268  (SWHANDLE hSWModule);
269 
270 /*
271  * Class: org_crosswire_sword_SWModule
272  * Method: setRawEntry
273  * Signature: (Ljava/lang/String;)V
274  */
276  (SWHANDLE hSWModule, const char *entryBuffer);
277 
278 /*
279  * Class: org_crosswire_sword_SWModule
280  * Method: getConfigEntry
281  * Signature: (Ljava/lang/String;)Ljava/lang/String;
282  */
284  (SWHANDLE hSWModule, const char *key);
285 
286 /*
287  * Class: org_crosswire_sword_SWModule
288  * Method: deleteSearchFramework
289  * Signature: ()V
290  */
292  (SWHANDLE hSWModule);
293 
294 /*
295  * Class: org_crosswire_sword_SWModule
296  * Method: hasSearchFramework
297  * Signature: ()Z
298  */
300  (SWHANDLE hSWModule);
301 
302 /*
303  * Class: org_crosswire_sword_SWMgr
304  * Method: new
305  * Signature: ()V
306  */
308  ();
309 
310 
311 /*
312  * Class: org_crosswire_sword_SWMgr
313  * Method: newWithPath
314  * Signature: ()V
315  * Signature: (Ljava/lang/String;)V
316  */
318  (const char *path);
319 
320 /*
321  * Class: org_crosswire_sword_SWMgr
322  * Method: delete
323  * Signature: ()V
324  */
326  (SWHANDLE hSWMgr);
327 
328 /*
329  * Class: org_crosswire_sword_SWMgr
330  * Method: version
331  * Signature: ()Ljava/lang/String;
332  */
334  (SWHANDLE hSWMgr);
335 
336 /*
337  * Class: org_crosswire_sword_SWMgr
338  * Method: getModInfoList
339  * Signature: ()[Lorg/crosswire/android/sword/SWMgr/ModInfo;
340  */
342  (SWHANDLE hSWMgr);
343 
344 /*
345  * Class: org_crosswire_sword_SWMgr
346  * Method: getModuleByName
347  * Signature: (Ljava/lang/String;)Lorg/crosswire/android/sword/SWModule;
348  */
350  (SWHANDLE hSWMgr, const char *moduleName);
351 
352 /*
353  * Class: org_crosswire_sword_SWMgr
354  * Method: getPrefixPath
355  * Signature: ()Ljava/lang/String;
356  */
358  (SWHANDLE hSWMgr);
359 
360 /*
361  * Class: org_crosswire_sword_SWMgr
362  * Method: getConfigPath
363  * Signature: ()Ljava/lang/String;
364  */
366  (SWHANDLE hSWMgr);
367 
368 /*
369  * Class: org_crosswire_sword_SWMgr
370  * Method: setGlobalOption
371  * Signature: (Ljava/lang/String;Ljava/lang/String;)V
372  */
374  (SWHANDLE hSWMgr, const char *option, const char *value);
375 
376 /*
377  * Class: org_crosswire_sword_SWMgr
378  * Method: getGlobalOption
379  * Signature: (Ljava/lang/String;)Ljava/lang/String;
380  */
382  (SWHANDLE hSWMgr, const char *option);
383 
384 /*
385  * Class: org_crosswire_sword_SWMgr
386  * Method: getGlobalOptionTip
387  * Signature: (Ljava/lang/String;)Ljava/lang/String;
388  */
390  (SWHANDLE hSWMgr, const char *option);
391 
392 /*
393  * Class: org_crosswire_sword_SWMgr
394  * Method: filterText
395  * Signature: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
396  */
398  (SWHANDLE hSWMgr, const char *filterName, const char *text);
399 
400 /*
401  * Class: org_crosswire_sword_SWMgr
402  * Method: getGlobalOptions
403  * Signature: ()[Ljava/lang/String;
404  */
406  (SWHANDLE hSWMgr);
407 
408 
409 /*
410  * Class: org_crosswire_sword_SWConfig
411  * Method: getSections
412  * Signature: ()[Ljava/lang/String;
413  */
415  (const char *confPath);
416 
417 /*
418  * Class: org_crosswire_sword_SWConfig
419  * Method: getSectionKeys
420  * Signature: (Ljava/lang/String;)[Ljava/lang/String;
421  */
423  (const char *confPath, const char *section);
424 
425 /*
426  * Class: org_crosswire_sword_SWConfig
427  * Method: getKeyValue
428  * Signature: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
429  */
431  (const char *confPath, const char *section, const char *key);
432 
433 /*
434  * Class: org_crosswire_sword_SWConfig
435  * Method: setKeyValue
436  * Signature: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
437  */
439  (const char *confPath, const char *section, const char *key, const char *value);
440 
441 /*
442  * Class: org_crosswire_sword_SWConfig
443  * Method: augmentConfig
444  * Signature: (Ljava/lang/String;)[Ljava/lang/String;
445  */
447  (const char *confPath, const char *configBlob);
448 
449 /*
450  * Class: org_crosswire_sword_SWMgr
451  * Method: getGlobalOptionValues
452  * Signature: (Ljava/lang/String;)[Ljava/lang/String;
453  */
455  (SWHANDLE hSWMgr, const char *option);
456 
457 /*
458  * Class: org_crosswire_sword_SWMgr
459  * Method: setCipherKey
460  * Signature: (Ljava/lang/String;Ljava/lang/String;)V
461  */
463  (SWHANDLE hSWMgr, const char *modName, const char *key);
464 
465 /*
466  * Class: org_crosswire_sword_SWMgr
467  * Method: setJavascript
468  * Signature: (Z)V
469  */
471  (SWHANDLE hSWMgr, char valueBool);
472 
473 /*
474  * Class: org_crosswire_sword_SWMgr
475  * Method: getAvailableLocales
476  * Signature: ()[Ljava/lang/String;
477  */
479  (SWHANDLE hSWMgr);
480 
481 /*
482  * Class: org_crosswire_sword_SWMgr
483  * Method: setDefaultLocale
484  * Signature: (Ljava/lang/String;)V
485  */
487  (SWHANDLE hSWMgr, const char *name);
488 
489 /*
490  * Class: org_crosswire_sword_SWMgr
491  * Method: translate
492  * Signature: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
493  */
495  (SWHANDLE hSWMgr, const char *text, const char *localeName);
496 
497 
498 
499 
500 
501 //
502 // InstallMgr methods
503 //
504 //
505 
506 typedef void (*org_crosswire_sword_InstallMgr_StatusCallback)(const char *, unsigned long, unsigned long);
507 typedef char * (*org_crosswire_sword_StringMgr_toUpperUTF8)(const char *, unsigned long);
508 
511 /*
512  * Class: org_crosswire_sword_InstallMgr
513  * Method: new
514  * Signature: (Ljava/lang/String;Lorg/crosswire/android/sword/SWModule/SearchProgressReporter;)V
515  */
518 
519 /*
520  * Class: org_crosswire_sword_InstallMgr
521  * Method: delete
522  * Signature: ()V
523  */
525  (SWHANDLE hInstallMgr);
526 
527 /*
528  * Class: org_crosswire_sword_InstallMgr
529  * Method: setUserDisclaimerConfirmed
530  * Signature: ()V
531  */
533  (SWHANDLE hInstallMgr);
534 
535 /*
536  * Class: org_crosswire_sword_InstallMgr
537  * Method: syncConfig
538  * Signature: ()I
539  */
541  (SWHANDLE hInstallMgr);
542 
543 /*
544  * Class: org_crosswire_sword_InstallMgr
545  * Method: uninstallModule
546  * Signature: (Lorg/crosswire/android/sword/SWMgr;Ljava/lang/String;)I
547  */
549  (SWHANDLE hInstallMgr, SWHANDLE hSWMgr_removeFrom, const char *modName);
550 
551 /*
552  * Class: org_crosswire_sword_InstallMgr
553  * Method: getRemoteSources
554  * Signature: ()[Ljava/lang/String;
555  */
557  (SWHANDLE hInstallMgr);
558 
559 /*
560  * Class: org_crosswire_sword_InstallMgr
561  * Method: refreshRemoteSource
562  * Signature: (Ljava/lang/String;)I
563  */
565  (SWHANDLE hInstallMgr, const char *sourceName);
566 
567 /*
568  * Class: org_crosswire_sword_InstallMgr
569  * Method: getRemoteModInfoList
570  * Signature: (Lorg/crosswire/android/sword/SWMgr;Ljava/lang/String;)[Lorg/crosswire/android/sword/SWMgr/ModInfo;
571  */
573  (SWHANDLE hInstallMgr, SWHANDLE hSWMgr_deltaCompareTo, const char *sourceName);
574 
575 /*
576  * Class: org_crosswire_sword_InstallMgr
577  * Method: remoteInstallModule
578  * Signature: (Lorg/crosswire/android/sword/SWMgr;Ljava/lang/String;Ljava/lang/String;)I
579  */
581  (SWHANDLE hInstallMgr_from, SWHANDLE hSWMgr_to, const char *sourceName, const char *modName);
582 
583 /*
584  * Class: org_crosswire_sword_InstallMgr
585  * Method: getRemoteModuleByName
586  * Signature: (Ljava/lang/String;Ljava/lang/String;)Lorg/crosswire/android/sword/SWModule;
587  */
589  (SWHANDLE hInstallMgr, const char *sourceName, const char *modName);
590 
591 /*
592  * NOTE: this method blocks and should be called in a new thread
593  * Class: org_crosswire_android_sword_SWMgr
594  * Method: startBibleSync
595  * Signature: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lorg/crosswire/android/sword/SWMgr/BibleSyncListener;)V
596  */
598  (SWHANDLE hMgr, const char *appNameJS, const char *userNameJS, const char *passphraseJS, org_biblesync_MessageReceivedCallback callback);
599 
600 /*
601  * Class: org_crosswire_android_sword_SWMgr
602  * Method: stopBibleSync
603  * Signature: (V;)V
604  */
606  (SWHANDLE hMgr);
607 
608 /*
609  * Class: org_crosswire_android_sword_SWMgr
610  * Method: sendBibleSyncMessage
611  * Signature: (Ljava/lang/String;)V
612  */
614  (SWHANDLE hMgr, const char *osisRefRaw);
615 
616 void SWDLLEXPORT org_crosswire_sword_SWLog_logError(const char *msg);
617 void SWDLLEXPORT org_crosswire_sword_SWLog_logDebug(const char *msg);
623 
624 #ifdef __cplusplus
625 }
626 #endif
627 #endif
const char **SWDLLEXPORT org_crosswire_sword_SWModule_getKeyChildren(SWHANDLE hSWModule)
const int org_crosswire_sword_SWLog_LOG_WARN
Definition: flatapi.h:80
const int org_crosswire_sword_SWModule_VERSEKEY_CHAPTERMAX
Definition: flatapi.h:69
const char **SWDLLEXPORT org_crosswire_sword_SWMgr_getGlobalOptions(SWHANDLE hSWMgr)
void(* org_crosswire_sword_SWModule_SearchCallback)(int)
Definition: flatapi.h:96
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)
SWBuf baseDir
Definition: installmgr.cpp:49
const char *SWDLLEXPORT org_crosswire_sword_SWModule_getRenderHeader(SWHANDLE hSWModule)
const char *SWDLLEXPORT org_crosswire_sword_SWModule_getName(SWHANDLE hSWModule)
#define SWDLLEXPORT
Definition: defs.h:171
const char *SWDLLEXPORT org_crosswire_sword_SWModule_getKeyParent(SWHANDLE hSWModule)
const int org_crosswire_sword_SWModule_VERSEKEY_BOOK
Definition: flatapi.h:66
void SWDLLEXPORT org_crosswire_sword_SWLog_logWarning(const char *msg)
void SWDLLEXPORT org_crosswire_sword_SWLog_setLogLevel(int level)
const char ** features
Definition: flatapi.h:43
const int org_crosswire_sword_SWModule_VERSEKEY_BOOKNAME
Definition: flatapi.h:71
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)
SWBuf confPath
Definition: installmgr.cpp:50
const int org_crosswire_sword_SWModule_VERSEKEY_CHAPMAX
Definition: flatapi.h:77
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
Definition: flatapi.h:65
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)
Definition: flatapi.h:507
StatusReporter * statusReporter
Definition: installmgr.cpp:48
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
Definition: flatapi.h:81
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
Definition: flatapi.h:75
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
Definition: flatapi.h:79
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
Definition: flatapi.h:83
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
Definition: flatapi.h:67
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
Definition: flatapi.h:68
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 *)
Definition: flatapi.h:98
void SWDLLEXPORT org_crosswire_sword_SWModule_previous(SWHANDLE hSWModule)
const int org_crosswire_sword_SWLog_LOG_TIMEDINFO
Definition: flatapi.h:82
const int org_crosswire_sword_SWModule_VERSEKEY_OSISREF
Definition: flatapi.h:72
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)
#define SWHANDLE
Definition: flatapi.h:33
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
Definition: flatapi.h:74
const char *SWDLLEXPORT org_crosswire_sword_SWMgr_getGlobalOptionTip(SWHANDLE hSWMgr, const char *option)
const int org_crosswire_sword_SWModule_VERSEKEY_VERSEMAX
Definition: flatapi.h:70
const int org_crosswire_sword_SWModule_VERSEKEY_SHORTTEXT
Definition: flatapi.h:73
void(* org_crosswire_sword_InstallMgr_StatusCallback)(const char *, unsigned long, unsigned long)
Definition: flatapi.h:506