summaryrefslogtreecommitdiffstats
path: root/src/extension/loader.cpp
diff options
context:
space:
mode:
authorMoritz Eberl <moritz@semiodesk.com>2016-04-12 09:43:56 +0000
committerMoritz Eberl <moritz@semiodesk.com>2016-04-12 09:43:56 +0000
commitd2a9d82cd79c61f44e2224dee38847d4113c7eda (patch)
treecebddd9c7afb25a43f72a73ddde21f5a427e480a /src/extension/loader.cpp
parentAdded a mechanism to load c++ extensions dynamically. (diff)
downloadinkscape-d2a9d82cd79c61f44e2224dee38847d4113c7eda.tar.gz
inkscape-d2a9d82cd79c61f44e2224dee38847d4113c7eda.zip
fixed naming of methods. External extensions can now be other module types.
(bzr r14761.1.2)
Diffstat (limited to 'src/extension/loader.cpp')
-rw-r--r--src/extension/loader.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/extension/loader.cpp b/src/extension/loader.cpp
index df193a051..8893f3f1d 100644
--- a/src/extension/loader.cpp
+++ b/src/extension/loader.cpp
@@ -20,10 +20,10 @@ namespace Extension {
typedef Implementation::Implementation *(*_getImplementation)(void);
-bool Loader::LoadDependency(Dependency *dep)
+bool Loader::load_dependency(Dependency *dep)
{
GModule *module = NULL;
- module = g_module_open(dep->getName(), (GModuleFlags)0);
+ module = g_module_open(dep->get_name(), (GModuleFlags)0);
if (module == NULL) {
return false;
}
@@ -35,7 +35,7 @@ bool Loader::LoadDependency(Dependency *dep)
* @param doc The xml representation of the INX extension configuration.
* @return The implementation of the extension loaded from the plugin.
*/
-Implementation::Implementation *Loader::LoadImplementation(Inkscape::XML::Document *doc)
+Implementation::Implementation *Loader::load_implementation(Inkscape::XML::Document *doc)
{
try {
Inkscape::XML::Node *repr = doc->root();
@@ -48,10 +48,10 @@ Implementation::Implementation *Loader::LoadImplementation(Inkscape::XML::Docume
if (!strcmp(chname, "dependency")) {
Dependency dep = Dependency(child_repr);
- bool success = LoadDependency(&dep);
+ bool success = load_dependency(&dep);
if( !success ){
const char *res = g_module_error();
- g_warning("Unable to load dependency %s of plugin %s.\nDetails: %s\n", dep.getName(), res);
+ g_warning("Unable to load dependency %s of plugin %s.\nDetails: %s\n", dep.get_name(), res);
return NULL;
}
}