[sword-svn] r3506 - trunk/bindings/swig

scribe at crosswire.org scribe at crosswire.org
Wed Nov 1 03:36:30 MST 2017


Author: scribe
Date: 2017-11-01 03:36:29 -0700 (Wed, 01 Nov 2017)
New Revision: 3506

Modified:
   trunk/bindings/swig/deprecations.i
   trunk/bindings/swig/swconfig.i
Log:
Updated swig bindings for current API

Modified: trunk/bindings/swig/deprecations.i
===================================================================
--- trunk/bindings/swig/deprecations.i	2017-11-01 10:36:23 UTC (rev 3505)
+++ trunk/bindings/swig/deprecations.i	2017-11-01 10:36:29 UTC (rev 3506)
@@ -10,10 +10,11 @@
 %ignore sword::VerseTreeKey::operator const char *;
 %ignore sword::XMLTag::operator const char *;
 
-%ignore sword::StatusReporter::statusUpdate;
 
 %ignore sword::SWDisplay::Display(SWModule&);
 
+%ignore sword::StatusReporter::statusUpdate(double ,double);
+
 %ignore sword::SWKey::Error();
 %ignore sword::SWKey::Persist() const;
 %ignore sword::SWKey::Persist(signed char);
@@ -60,3 +61,20 @@
 %ignore sword::VerseKey::TestamentIndex() const;
 %ignore sword::VerseKey::UpperBound;
 %ignore sword::VerseKey::Verse;
+
+%ignore sword::SWMgr::CreateMods(bool);
+%ignore sword::SWMgr::DeleteMods();
+%ignore sword::SWMgr::AddGlobalOptions(SWModule *, ConfigEntMap &, ConfigEntMap::iterator, ConfigEntMap::iterator);
+%ignore sword::SWMgr::AddLocalOptions(SWModule *, ConfigEntMap &, ConfigEntMap::iterator, ConfigEntMap::iterator);
+%ignore sword::SWMgr::AddEncodingFilters(SWModule *, ConfigEntMap &);
+%ignore sword::SWMgr::AddRenderFilters(SWModule *, ConfigEntMap &);
+%ignore sword::SWMgr::AddStripFilters(SWModule *, ConfigEntMap &);
+%ignore sword::SWMgr::AddStripFilters(SWModule *, ConfigEntMap &, ConfigEntMap::iterator, ConfigEntMap::iterator);
+%ignore sword::SWMgr::AddRawFilters(SWModule *, ConfigEntMap &);
+%ignore sword::SWMgr::getHomeDir();
+%ignore sword::SWMgr::Load();
+
+%ignore sword::SWConfig::Sections;
+%ignore sword::SWConfig::filename;
+%ignore sword::SWConfig::Load();
+%ignore sword::SWConfig::Save();

Modified: trunk/bindings/swig/swconfig.i
===================================================================
--- trunk/bindings/swig/swconfig.i	2017-11-01 10:36:23 UTC (rev 3505)
+++ trunk/bindings/swig/swconfig.i	2017-11-01 10:36:29 UTC (rev 3506)
@@ -5,21 +5,21 @@
 %ignore sword::SWConfig::operator[];
 %ignore sword::SWConfig::operator+=;
 %ignore sword::SWConfig::sections;
-%ignore sword::SWConfig::Sections;
+%ignore sword::SWConfig::getSections();
 
 %include "swconfig.h"
 
 
 %extend sword::SWConfig {
   void set(const char* group, const char* entry, const char* value) {
-	self->Sections[group][entry] = value;
+	self->getSection(group)[entry] = value;
   };
   const char* get(const char* group, const char* entry) {
-	return self->Sections[group][entry].c_str();
+	return self->getSection(group)[entry].c_str();
   };
   PySectionMap /*std::map < sword::SWBuf, std::multimap <sword::SWBuf, sword::SWBuf> > */
   *getSections() {
-    return (PySectionMap* /*std::map < sword::SWBuf, std::multimap < sword::SWBuf, sword::SWBuf > > * */) &self->Sections;
+    return (PySectionMap* /*std::map < sword::SWBuf, std::multimap < sword::SWBuf, sword::SWBuf > > * */) &self->getSections();
   }
 }
 




More information about the sword-cvs mailing list