Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members  

flatapi.h

00001 #ifndef SWORDAPI_H
00002 #define SWORDAPI_H
00003 
00004 //#include <swmodule.h>
00005 //#include <swkey.h>
00006 //#include <versekey.h>
00007 //#include <swmgr.h>
00008 #include <defs.h>
00009 #ifdef __cplusplus
00010 #endif
00011 
00012 extern "C" {
00013 
00014 #define SWHANDLE int
00015 
00016 //using namespace sword;
00017 
00018 //-----------------------------------------------------------------
00019 // stringlist_iterator methods
00020 
00021 void SWDLLEXPORT stringlist_iterator_next(SWHANDLE hsli);
00022 const char * SWDLLEXPORT stringlist_iterator_val(SWHANDLE hsli);
00023 
00024 
00025 //-----------------------------------------------------------------
00026 // modmap methods
00027 //
00028 void SWDLLEXPORT ModList_iterator_next(SWHANDLE hmmi);
00029 SWHANDLE SWDLLEXPORT ModList_iterator_val(SWHANDLE hmmi);
00030 
00031 
00032 //-----------------------------------------------------------------
00033 // SWMgr methods
00034 //
00035 SWHANDLE SWDLLEXPORT SWMgr_new();
00036 // SWConfig *, SWConfig *, bool, SWFilterMgr *
00037 SWHANDLE SWDLLEXPORT SWMgr_newEx(SWHANDLE hiconfig, SWHANDLE hisysconfig, char autoload, SWHANDLE hfilterMgr);
00038 void     SWDLLEXPORT SWMgr_delete(SWHANDLE hmgr);
00039 SWHANDLE SWDLLEXPORT SWMgr_getConfig(SWHANDLE hmgr);
00040 SWHANDLE SWDLLEXPORT SWMgr_getModulesIterator(SWHANDLE hmgr);
00041 SWHANDLE SWDLLEXPORT SWMgr_getModuleByName(SWHANDLE hmgr, const char *name);
00042 const char *   SWDLLEXPORT SWMgr_getPrefixPath(SWHANDLE hmgr);
00043 const char *   SWDLLEXPORT SWMgr_getConfigPath(SWHANDLE hmgr);
00044 void     SWDLLEXPORT SWMgr_setGlobalOption(SWHANDLE hmgr, const char *option, const char *value);
00045 const char *   SWDLLEXPORT SWMgr_getGlobalOption(SWHANDLE hmgr, const char *option);
00046 const char *   SWDLLEXPORT SWMgr_getGlobalOptionTip(SWHANDLE hmgr, const char *option);
00047 // ret: forward_iterator
00048 SWHANDLE SWDLLEXPORT SWMgr_getGlobalOptionsIterator(SWHANDLE hmgr);
00049 // ret: forward_iterator
00050 SWHANDLE SWDLLEXPORT SWMgr_getGlobalOptionValuesIterator(SWHANDLE hmgr, const char *option);
00051 void     SWDLLEXPORT SWMgr_setCipherKey(SWHANDLE hmgr, const char *modName, const char *key);
00052 
00053 
00054 //-----------------------------------------------------------------
00055 // SWModule methods
00056 
00057 void  SWDLLEXPORT SWModule_terminateSearch(SWHANDLE hmodule);
00058 char  SWDLLEXPORT SWModule_error(SWHANDLE hmodule);
00059 int   SWDLLEXPORT SWModule_getEntrySize(SWHANDLE hmodule);
00060 void  SWDLLEXPORT SWModule_setKeyText(SWHANDLE hmodule, const char *key);
00061 const char * SWDLLEXPORT SWModule_getKeyText(SWHANDLE hmodule);
00062 const char * SWDLLEXPORT SWModule_getName(SWHANDLE hmodule);
00063 const char * SWDLLEXPORT SWModule_getDescription(SWHANDLE hmodule);
00064 const char * SWDLLEXPORT SWModule_getType(SWHANDLE hmodule);
00065 void  SWDLLEXPORT SWModule_previous(SWHANDLE hmodule);
00066 void  SWDLLEXPORT SWModule_next(SWHANDLE hmodule);
00067 void  SWDLLEXPORT SWModule_begin(SWHANDLE hmodule);
00068 const char * SWDLLEXPORT SWModule_getStripText(SWHANDLE hmodule);
00069 const char * SWDLLEXPORT SWModule_getRenderText(SWHANDLE hmodule);
00070 
00071 }
00072 #ifdef __cplusplus
00073 #endif
00074 
00075 #endif

Generated on Thu Oct 31 12:11:28 2002 for The Sword Project by doxygen1.2.17