diff options
Diffstat (limited to 'src/module')
-rw-r--r-- | src/module/World.cpp | 14 | ||||
-rw-r--r-- | src/module/World.hpp | 14 | ||||
-rw-r--r-- | src/module/ingen_module.cpp | 35 | ||||
-rw-r--r-- | src/module/ingen_module.hpp | 33 | ||||
-rw-r--r-- | src/module/wscript | 1 |
5 files changed, 7 insertions, 90 deletions
diff --git a/src/module/World.cpp b/src/module/World.cpp index 48fe7753..6667cb9f 100644 --- a/src/module/World.cpp +++ b/src/module/World.cpp @@ -106,6 +106,8 @@ public: , uris(new Shared::LV2URIMap()) #ifdef HAVE_SLV2 , slv2_world(slv2_world_new()) +#else + , slv2_world(NULL) #endif { #ifdef HAVE_SLV2 @@ -140,10 +142,10 @@ public: interface_factories.clear(); script_runners.clear(); - #ifdef HAVE_SLV2 +#ifdef HAVE_SLV2 slv2_world_free(slv2_world); slv2_world = NULL; - #endif +#endif delete rdf_world; rdf_world = NULL; @@ -175,12 +177,8 @@ public: SharedPtr<Serialisation::Serialiser> serialiser; SharedPtr<Serialisation::Parser> parser; SharedPtr<Store> store; -#ifdef HAVE_SLV2 SLV2World slv2_world; -#endif -#ifdef INGEN_JACK_SESSION std::string jack_uuid; -#endif }; @@ -286,8 +284,6 @@ World::add_interface_factory(const std::string& scheme, InterfaceFactory factory } -#ifdef INGEN_JACK_SESSION - void World::set_jack_uuid(const std::string& uuid) { @@ -301,8 +297,6 @@ World::jack_uuid() return _impl->jack_uuid; } -#endif // INGEN_JACK_SESSION - } // namespace Shared } // namespace Ingen diff --git a/src/module/World.hpp b/src/module/World.hpp index dededc44..29d904b2 100644 --- a/src/module/World.hpp +++ b/src/module/World.hpp @@ -30,7 +30,6 @@ #include "raul/SharedPtr.hpp" #include "ingen-config.h" -#include "module/ingen_module.hpp" #ifdef HAVE_SLV2 typedef struct _SLV2World* SLV2World; @@ -64,6 +63,9 @@ class WorldImpl; */ class World : public boost::noncopyable { public: + World(Raul::Configuration* conf, int& argc, char**& argv); + virtual ~World(); + virtual bool load(const char* name); virtual void unload_all(); @@ -102,22 +104,12 @@ public: virtual LV2Features* lv2_features(); -#ifdef HAVE_SLV2 virtual SLV2World slv2_world(); -#endif -#ifdef INGEN_JACK_SESSION virtual void set_jack_uuid(const std::string& uuid); virtual std::string jack_uuid(); -#endif private: - friend Ingen::Shared::World* ::ingen_world_new(Raul::Configuration*, int&, char**&); - World(Raul::Configuration* conf, int& argc, char**& argv); - - friend void ::ingen_world_free(Ingen::Shared::World* world); - virtual ~World(); - WorldImpl* _impl; }; diff --git a/src/module/ingen_module.cpp b/src/module/ingen_module.cpp deleted file mode 100644 index 8bebeab4..00000000 --- a/src/module/ingen_module.cpp +++ /dev/null @@ -1,35 +0,0 @@ -/* This file is part of Ingen. - * Copyright (C) 2007-2009 David Robillard <http://drobilla.net> - * - * Ingen is free software; you can redistribute it and/or modify it under the - * terms of the GNU General Public License as published by the Free Software - * Foundation; either version 2 of the License, or (at your option) any later - * version. - * - * Ingen is distributed in the hope that it will be useful, but WITHOUT ANY - * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include "World.hpp" -#include "ingen_module.hpp" - -extern "C" { - -Ingen::Shared::World* -ingen_world_new(Raul::Configuration* conf, int& argc, char**& argv) -{ - return new Ingen::Shared::World(conf, argc, argv); -} - -void -ingen_world_free(Ingen::Shared::World* world) -{ - delete world; -} - -} // extern "C" diff --git a/src/module/ingen_module.hpp b/src/module/ingen_module.hpp deleted file mode 100644 index eff0d8ea..00000000 --- a/src/module/ingen_module.hpp +++ /dev/null @@ -1,33 +0,0 @@ -/* This file is part of Ingen. - * Copyright (C) 2007-2009 David Robillard <http://drobilla.net> - * - * Ingen is free software; you can redistribute it and/or modify it under the - * terms of the GNU General Public License as published by the Free Software - * Foundation; either version 2 of the License, or (at your option) any later - * version. - * - * Ingen is distributed in the hope that it will be useful, but WITHOUT ANY - * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef INGEN_MODULE_HPP -#define INGEN_MODULE_HPP - -namespace Raul { class Configuration; } - -namespace Ingen { namespace Shared { class World; } } - -extern "C" { - -Ingen::Shared::World* ingen_world_new(Raul::Configuration* conf, int& argc, char**& argv); -void ingen_world_free(Ingen::Shared::World* world); - -} // extern "C" - -#endif // INGEN_MODULE_HPP - diff --git a/src/module/wscript b/src/module/wscript index c15f17b7..a904c806 100644 --- a/src/module/wscript +++ b/src/module/wscript @@ -8,7 +8,6 @@ def build(bld): obj = bld(features = 'cxx cxxshlib') obj.source = ''' World.cpp - ingen_module.cpp ''' obj.export_includes = ['.'] obj.includes = ['.', '..', '../..', '../../include'] |