summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-23 23:23:10 +0000
committerDavid Robillard <d@drobilla.net>2012-05-23 23:23:10 +0000
commite8e446c2b4863a0ff8f9a4a835dd34e2159c93d9 (patch)
tree773d68af260db6d90f4eb45039ed9987273cd600 /src/server
parent38c38e5ad6b8cf1983edcaec478cf1c1f13b50d6 (diff)
downloadingen-e8e446c2b4863a0ff8f9a4a835dd34e2159c93d9.tar.gz
ingen-e8e446c2b4863a0ff8f9a4a835dd34e2159c93d9.tar.bz2
ingen-e8e446c2b4863a0ff8f9a4a835dd34e2159c93d9.zip
Trim unnecessary includes.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4455 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server')
-rw-r--r--src/server/AudioBuffer.cpp7
-rw-r--r--src/server/Broadcaster.cpp8
-rw-r--r--src/server/Buffer.cpp4
-rw-r--r--src/server/BufferFactory.cpp3
-rw-r--r--src/server/ControlBindings.cpp2
-rw-r--r--src/server/DuplexPort.cpp6
-rw-r--r--src/server/EdgeImpl.cpp7
-rw-r--r--src/server/Engine.cpp4
-rw-r--r--src/server/EngineStore.cpp2
-rw-r--r--src/server/EventWriter.cpp6
-rw-r--r--src/server/GraphObjectImpl.cpp1
-rw-r--r--src/server/InputPort.cpp3
-rw-r--r--src/server/LV2Info.cpp1
-rw-r--r--src/server/LV2Node.cpp2
-rw-r--r--src/server/LV2Plugin.cpp5
-rw-r--r--src/server/MessageContext.cpp7
-rw-r--r--src/server/NodeFactory.cpp9
-rw-r--r--src/server/NodeImpl.cpp4
-rw-r--r--src/server/OutputPort.cpp1
-rw-r--r--src/server/PatchImpl.cpp2
-rw-r--r--src/server/PortImpl.cpp1
-rw-r--r--src/server/PostProcessor.cpp4
-rw-r--r--src/server/ProcessContext.cpp1
-rw-r--r--src/server/ProcessContext.hpp1
-rw-r--r--src/server/ProcessSlave.cpp5
-rw-r--r--src/server/ProcessSlave.hpp12
-rw-r--r--src/server/events/Connect.cpp5
-rw-r--r--src/server/events/Connect.hpp3
-rw-r--r--src/server/events/CreateNode.cpp2
-rw-r--r--src/server/events/CreatePatch.cpp2
-rw-r--r--src/server/events/Delete.hpp2
-rw-r--r--src/server/events/Delta.cpp6
-rw-r--r--src/server/events/Delta.hpp9
33 files changed, 25 insertions, 112 deletions
diff --git a/src/server/AudioBuffer.cpp b/src/server/AudioBuffer.cpp
index a3c87fea..740e780c 100644
--- a/src/server/AudioBuffer.cpp
+++ b/src/server/AudioBuffer.cpp
@@ -14,16 +14,13 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stdlib.h>
#include <assert.h>
+#include <stddef.h>
+#include <stdint.h>
-#include "ingen/shared/LV2Features.hpp"
#include "lv2/lv2plug.in/ns/ext/atom/atom.h"
-#include "raul/SharedPtr.hpp"
-#include "raul/log.hpp"
#include "AudioBuffer.hpp"
-#include "ProcessContext.hpp"
using namespace std;
diff --git a/src/server/Broadcaster.cpp b/src/server/Broadcaster.cpp
index d65c48ac..aa7b7aae 100644
--- a/src/server/Broadcaster.cpp
+++ b/src/server/Broadcaster.cpp
@@ -14,17 +14,15 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <cassert>
-#include <unistd.h>
+#include <utility>
+#include <glibmm/thread.h>
#include "ingen/Interface.hpp"
#include "raul/log.hpp"
#include "Broadcaster.hpp"
-#include "EdgeImpl.hpp"
-#include "EngineStore.hpp"
#include "PluginImpl.hpp"
-#include "util.hpp"
+#include "NodeFactory.hpp"
#define LOG(s) (s("[Broadcaster] "))
diff --git a/src/server/Buffer.cpp b/src/server/Buffer.cpp
index 30a0781c..85fe727c 100644
--- a/src/server/Buffer.cpp
+++ b/src/server/Buffer.cpp
@@ -16,12 +16,12 @@
#define __STDC_LIMIT_MACROS 1
+#include <assert.h>
#include <stdint.h>
#include <string.h>
-#include <algorithm>
+#include <new>
-#include "ingen/shared/LV2Features.hpp"
#include "ingen/shared/URIMap.hpp"
#include "ingen/shared/URIs.hpp"
#include "ingen/shared/World.hpp"
diff --git a/src/server/BufferFactory.cpp b/src/server/BufferFactory.cpp
index a11f1c35..2bcf8201 100644
--- a/src/server/BufferFactory.cpp
+++ b/src/server/BufferFactory.cpp
@@ -14,8 +14,6 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <algorithm>
-
#include "ingen/shared/URIs.hpp"
#include "raul/log.hpp"
@@ -23,7 +21,6 @@
#include "BufferFactory.hpp"
#include "Driver.hpp"
#include "Engine.hpp"
-#include "ThreadManager.hpp"
namespace Ingen {
namespace Server {
diff --git a/src/server/ControlBindings.cpp b/src/server/ControlBindings.cpp
index a9c0c546..82b15408 100644
--- a/src/server/ControlBindings.cpp
+++ b/src/server/ControlBindings.cpp
@@ -16,8 +16,6 @@
#include <math.h>
-#include <algorithm>
-
#include "ingen/shared/URIs.hpp"
#include "ingen/shared/World.hpp"
#include "lv2/lv2plug.in/ns/ext/atom/util.h"
diff --git a/src/server/DuplexPort.cpp b/src/server/DuplexPort.cpp
index ca555e60..6d332ad6 100644
--- a/src/server/DuplexPort.cpp
+++ b/src/server/DuplexPort.cpp
@@ -14,18 +14,13 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <cstdlib>
-#include <cassert>
#include <string>
#include "ingen/shared/URIs.hpp"
#include "Buffer.hpp"
#include "DuplexPort.hpp"
-#include "NodeImpl.hpp"
#include "OutputPort.hpp"
-#include "ProcessContext.hpp"
-#include "util.hpp"
using namespace std;
@@ -48,7 +43,6 @@ DuplexPort::DuplexPort(BufferFactory& bufs,
, OutputPort(bufs, parent, name, index, poly, type, buffer_type, value, buffer_size)
, _is_output(is_output)
{
- assert(PortImpl::_parent == parent);
set_property(bufs.uris().ingen_polyphonic,
bufs.forge().make(polyphonic));
}
diff --git a/src/server/EdgeImpl.cpp b/src/server/EdgeImpl.cpp
index 50e69ec9..46d45f27 100644
--- a/src/server/EdgeImpl.cpp
+++ b/src/server/EdgeImpl.cpp
@@ -14,14 +14,10 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <algorithm>
-
#include "ingen/shared/URIs.hpp"
#include "lv2/lv2plug.in/ns/ext/atom/util.h"
-#include "raul/Maid.hpp"
#include "raul/log.hpp"
-#include "AudioBuffer.hpp"
#include "BufferFactory.hpp"
#include "EdgeImpl.hpp"
#include "Engine.hpp"
@@ -30,9 +26,6 @@
#include "NodeImpl.hpp"
#include "OutputPort.hpp"
#include "PortImpl.hpp"
-#include "ProcessContext.hpp"
-#include "mix.hpp"
-#include "util.hpp"
namespace Ingen {
namespace Server {
diff --git a/src/server/Engine.cpp b/src/server/Engine.cpp
index ead11895..c5a7bddd 100644
--- a/src/server/Engine.cpp
+++ b/src/server/Engine.cpp
@@ -15,18 +15,14 @@
*/
#include <sys/mman.h>
-#include <unistd.h>
#include "events/CreatePort.hpp"
#include "ingen/shared/Configuration.hpp"
-#include "ingen/shared/LV2Features.hpp"
#include "ingen/shared/Store.hpp"
#include "ingen/shared/URIs.hpp"
#include "ingen/shared/World.hpp"
-#include "raul/Deletable.hpp"
#include "raul/Maid.hpp"
#include "raul/SharedPtr.hpp"
-#include "raul/log.hpp"
#include "Broadcaster.hpp"
#include "BufferFactory.hpp"
diff --git a/src/server/EngineStore.cpp b/src/server/EngineStore.cpp
index a492c471..35ae6d83 100644
--- a/src/server/EngineStore.cpp
+++ b/src/server/EngineStore.cpp
@@ -15,9 +15,7 @@
*/
#include <utility>
-#include <vector>
#include "raul/log.hpp"
-#include "raul/List.hpp"
#include "raul/PathTable.hpp"
#include "raul/TableImpl.hpp"
#include "EngineStore.hpp"
diff --git a/src/server/EventWriter.cpp b/src/server/EventWriter.cpp
index a6482a38..f0a2f100 100644
--- a/src/server/EventWriter.cpp
+++ b/src/server/EventWriter.cpp
@@ -14,14 +14,8 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <string>
-
-#include "raul/log.hpp"
-
#include "ingen/shared/URIs.hpp"
-#include "Broadcaster.hpp"
-#include "Driver.hpp"
#include "Engine.hpp"
#include "EventWriter.hpp"
#include "events.hpp"
diff --git a/src/server/GraphObjectImpl.cpp b/src/server/GraphObjectImpl.cpp
index 8310b670..901be3eb 100644
--- a/src/server/GraphObjectImpl.cpp
+++ b/src/server/GraphObjectImpl.cpp
@@ -18,7 +18,6 @@
#include "GraphObjectImpl.hpp"
#include "PatchImpl.hpp"
-#include "EngineStore.hpp"
#include "ThreadManager.hpp"
using namespace std;
diff --git a/src/server/InputPort.cpp b/src/server/InputPort.cpp
index 8cb6415b..2510edfa 100644
--- a/src/server/InputPort.cpp
+++ b/src/server/InputPort.cpp
@@ -19,7 +19,6 @@
#include "ingen/Patch.hpp"
-#include "AudioBuffer.hpp"
#include "BufferFactory.hpp"
#include "EdgeImpl.hpp"
#include "Engine.hpp"
@@ -28,10 +27,8 @@
#include "Notification.hpp"
#include "OutputPort.hpp"
#include "ProcessContext.hpp"
-#include "ThreadManager.hpp"
#include "ingen/shared/URIs.hpp"
#include "mix.hpp"
-#include "util.hpp"
using namespace std;
diff --git a/src/server/LV2Info.cpp b/src/server/LV2Info.cpp
index 5355b11b..6e5d046a 100644
--- a/src/server/LV2Info.cpp
+++ b/src/server/LV2Info.cpp
@@ -17,7 +17,6 @@
#define __STDC_LIMIT_MACROS 1
#include <assert.h>
-#include <stdint.h>
#include "lv2/lv2plug.in/ns/ext/atom/atom.h"
diff --git a/src/server/LV2Node.cpp b/src/server/LV2Node.cpp
index 2e2631ac..91c1d2d1 100644
--- a/src/server/LV2Node.cpp
+++ b/src/server/LV2Node.cpp
@@ -14,7 +14,6 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <float.h>
#include <stdint.h>
#include <cassert>
@@ -35,7 +34,6 @@
#include "InputPort.hpp"
#include "LV2Node.hpp"
#include "LV2Plugin.hpp"
-#include "MessageContext.hpp"
#include "OutputPort.hpp"
#include "ProcessContext.hpp"
diff --git a/src/server/LV2Plugin.cpp b/src/server/LV2Plugin.cpp
index d05690b9..9280d520 100644
--- a/src/server/LV2Plugin.cpp
+++ b/src/server/LV2Plugin.cpp
@@ -14,19 +14,14 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <cassert>
#include <string>
-#include <glibmm.h>
#include "ingen/shared/URIs.hpp"
-#include "raul/log.hpp"
-#include "sord/sordmm.hpp"
#include "Driver.hpp"
#include "Engine.hpp"
#include "LV2Node.hpp"
#include "LV2Plugin.hpp"
-#include "NodeImpl.hpp"
using namespace std;
diff --git a/src/server/MessageContext.cpp b/src/server/MessageContext.cpp
index d67437ca..3a4f9742 100644
--- a/src/server/MessageContext.cpp
+++ b/src/server/MessageContext.cpp
@@ -15,15 +15,12 @@
*/
#include <algorithm>
-#include "lv2/lv2plug.in/ns/ext/worker/worker.h"
+
#include "raul/log.hpp"
-#include "EdgeImpl.hpp"
+
#include "Engine.hpp"
#include "MessageContext.hpp"
#include "NodeImpl.hpp"
-#include "PatchImpl.hpp"
-#include "PortImpl.hpp"
-#include "ProcessContext.hpp"
#include "ThreadManager.hpp"
using namespace std;
diff --git a/src/server/NodeFactory.cpp b/src/server/NodeFactory.cpp
index 7bcb4088..c0b4d1e9 100644
--- a/src/server/NodeFactory.cpp
+++ b/src/server/NodeFactory.cpp
@@ -14,17 +14,11 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <float.h>
-#include <math.h>
#include <stdlib.h>
#include <string>
-#include <glibmm/miscutils.h>
-
#include "lilv/lilv.h"
-#include "raul/log.hpp"
-#include "sord/sordmm.hpp"
#include "internals/Controller.hpp"
#include "internals/Delay.hpp"
@@ -32,12 +26,9 @@
#include "internals/Trigger.hpp"
#include "ingen/shared/World.hpp"
-#include "Engine.hpp"
#include "InternalPlugin.hpp"
-#include "LV2Node.hpp"
#include "LV2Plugin.hpp"
#include "NodeFactory.hpp"
-#include "PatchImpl.hpp"
#include "ThreadManager.hpp"
using namespace std;
diff --git a/src/server/NodeImpl.cpp b/src/server/NodeImpl.cpp
index 25a51565..a260f6ca 100644
--- a/src/server/NodeImpl.cpp
+++ b/src/server/NodeImpl.cpp
@@ -17,20 +17,16 @@
#include <assert.h>
#include <stdint.h>
-#include "lv2/lv2plug.in/ns/ext/worker/worker.h"
#include "raul/Array.hpp"
-#include "raul/List.hpp"
#include "AudioBuffer.hpp"
#include "Engine.hpp"
-#include "EngineStore.hpp"
#include "NodeImpl.hpp"
#include "PatchImpl.hpp"
#include "PluginImpl.hpp"
#include "PortImpl.hpp"
#include "ProcessContext.hpp"
#include "ThreadManager.hpp"
-#include "util.hpp"
using namespace std;
diff --git a/src/server/OutputPort.cpp b/src/server/OutputPort.cpp
index f1f3dfd7..56da75d9 100644
--- a/src/server/OutputPort.cpp
+++ b/src/server/OutputPort.cpp
@@ -21,7 +21,6 @@
#include "Engine.hpp"
#include "NodeImpl.hpp"
#include "OutputPort.hpp"
-#include "ProcessContext.hpp"
#include "ingen/shared/URIs.hpp"
using namespace std;
diff --git a/src/server/PatchImpl.cpp b/src/server/PatchImpl.cpp
index bd12f78a..de1fe43f 100644
--- a/src/server/PatchImpl.cpp
+++ b/src/server/PatchImpl.cpp
@@ -15,7 +15,6 @@
*/
#include <cassert>
-#include <cmath>
#include <string>
#include "ingen/shared/URIs.hpp"
@@ -23,7 +22,6 @@
#include "raul/log.hpp"
#include "EdgeImpl.hpp"
-#include "Driver.hpp"
#include "DuplexPort.hpp"
#include "Engine.hpp"
#include "NodeImpl.hpp"
diff --git a/src/server/PortImpl.cpp b/src/server/PortImpl.cpp
index 27d56bfc..ce4a0b5a 100644
--- a/src/server/PortImpl.cpp
+++ b/src/server/PortImpl.cpp
@@ -15,7 +15,6 @@
*/
#include "ingen/shared/URIs.hpp"
-#include "lv2/lv2plug.in/ns/ext/worker/worker.h"
#include "raul/Array.hpp"
#include "raul/Maid.hpp"
diff --git a/src/server/PostProcessor.cpp b/src/server/PostProcessor.cpp
index cb8566d5..3604ace1 100644
--- a/src/server/PostProcessor.cpp
+++ b/src/server/PostProcessor.cpp
@@ -16,15 +16,11 @@
#include <assert.h>
-#include "raul/log.hpp"
-
-#include "Driver.hpp"
#include "Engine.hpp"
#include "Event.hpp"
#include "Notification.hpp"
#include "PostProcessor.hpp"
#include "ProcessContext.hpp"
-#include "ThreadManager.hpp"
using namespace std;
diff --git a/src/server/ProcessContext.cpp b/src/server/ProcessContext.cpp
index 78f6d50e..66dbcb19 100644
--- a/src/server/ProcessContext.cpp
+++ b/src/server/ProcessContext.cpp
@@ -14,6 +14,7 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "Engine.hpp"
#include "ProcessContext.hpp"
#include "ProcessSlave.hpp"
diff --git a/src/server/ProcessContext.hpp b/src/server/ProcessContext.hpp
index e10bbce8..9e0115e6 100644
--- a/src/server/ProcessContext.hpp
+++ b/src/server/ProcessContext.hpp
@@ -20,7 +20,6 @@
#include <vector>
#include "Context.hpp"
-#include "types.hpp"
namespace Ingen {
namespace Server {
diff --git a/src/server/ProcessSlave.cpp b/src/server/ProcessSlave.cpp
index 5be40bb5..83a8956f 100644
--- a/src/server/ProcessSlave.cpp
+++ b/src/server/ProcessSlave.cpp
@@ -14,9 +14,10 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "ProcessSlave.hpp"
-#include "NodeImpl.hpp"
#include "CompiledPatch.hpp"
+#include "NodeImpl.hpp"
+#include "ProcessSlave.hpp"
+#include "ThreadManager.hpp"
using namespace std;
diff --git a/src/server/ProcessSlave.hpp b/src/server/ProcessSlave.hpp
index f3b514ca..742e9141 100644
--- a/src/server/ProcessSlave.hpp
+++ b/src/server/ProcessSlave.hpp
@@ -17,20 +17,18 @@
#ifndef INGEN_ENGINE_PROCESSSLAVE_HPP
#define INGEN_ENGINE_PROCESSSLAVE_HPP
-#include "raul/Array.hpp"
+#include <stdint.h>
+
#include "raul/AtomicInt.hpp"
#include "raul/Slave.hpp"
-
-#include "Driver.hpp"
-#include "Engine.hpp"
-#include "ProcessContext.hpp"
-#include "ThreadManager.hpp"
+#include "raul/log.hpp"
namespace Ingen {
namespace Server {
-class NodeImpl;
class CompiledPatch;
+class Engine;
+class ProcessContext;
class ProcessSlave : protected Raul::Slave {
public:
diff --git a/src/server/events/Connect.cpp b/src/server/events/Connect.cpp
index 92d89d35..d4df3e68 100644
--- a/src/server/events/Connect.cpp
+++ b/src/server/events/Connect.cpp
@@ -14,9 +14,6 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <string>
-
-#include <boost/format.hpp>
#include <glibmm/thread.h>
#include "raul/Maid.hpp"
@@ -25,14 +22,12 @@
#include "Broadcaster.hpp"
#include "Connect.hpp"
#include "EdgeImpl.hpp"
-#include "DuplexPort.hpp"
#include "Engine.hpp"
#include "EngineStore.hpp"
#include "InputPort.hpp"
#include "OutputPort.hpp"
#include "PatchImpl.hpp"
#include "PortImpl.hpp"
-#include "ProcessContext.hpp"
#include "types.hpp"
namespace Ingen {
diff --git a/src/server/events/Connect.hpp b/src/server/events/Connect.hpp
index a5799f77..a4bad5e8 100644
--- a/src/server/events/Connect.hpp
+++ b/src/server/events/Connect.hpp
@@ -20,9 +20,8 @@
#include "raul/Path.hpp"
#include "Event.hpp"
-#include "InputPort.hpp"
-#include "PatchImpl.hpp"
#include "types.hpp"
+#include "BufferRef.hpp"
namespace Raul {
template <typename T> class Array;
diff --git a/src/server/events/CreateNode.cpp b/src/server/events/CreateNode.cpp
index f52e20a1..9b3cdd89 100644
--- a/src/server/events/CreateNode.cpp
+++ b/src/server/events/CreateNode.cpp
@@ -17,8 +17,6 @@
#include "ingen/shared/URIs.hpp"
#include "raul/Maid.hpp"
#include "raul/Path.hpp"
-#include "raul/log.hpp"
-#include "sord/sordmm.hpp"
#include "Broadcaster.hpp"
#include "CreateNode.hpp"
diff --git a/src/server/events/CreatePatch.cpp b/src/server/events/CreatePatch.cpp
index b802d066..9d1280e1 100644
--- a/src/server/events/CreatePatch.cpp
+++ b/src/server/events/CreatePatch.cpp
@@ -23,9 +23,7 @@
#include "Driver.hpp"
#include "Engine.hpp"
#include "EngineStore.hpp"
-#include "NodeImpl.hpp"
#include "PatchImpl.hpp"
-#include "PluginImpl.hpp"
namespace Ingen {
namespace Server {
diff --git a/src/server/events/Delete.hpp b/src/server/events/Delete.hpp
index 4316763f..80051336 100644
--- a/src/server/events/Delete.hpp
+++ b/src/server/events/Delete.hpp
@@ -24,13 +24,11 @@
namespace Raul {
template<typename T> class Array;
-template<typename T> class ListNode;
}
namespace Ingen {
namespace Server {
-class GraphObjectImpl;
class NodeImpl;
class PortImpl;
class EnginePort;
diff --git a/src/server/events/Delta.cpp b/src/server/events/Delta.cpp
index 34e9d63d..5f6af4a4 100644
--- a/src/server/events/Delta.cpp
+++ b/src/server/events/Delta.cpp
@@ -14,17 +14,12 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <string>
#include <vector>
#include <glibmm/thread.h>
-#include <boost/format.hpp>
-
-#include "raul/log.hpp"
#include "raul/Maid.hpp"
-#include "ingen/shared/URIMap.hpp"
#include "ingen/shared/URIs.hpp"
#include "Broadcaster.hpp"
@@ -33,7 +28,6 @@
#include "CreatePatch.hpp"
#include "CreatePort.hpp"
#include "Delta.hpp"
-#include "Driver.hpp"
#include "Engine.hpp"
#include "EngineStore.hpp"
#include "GraphObjectImpl.hpp"
diff --git a/src/server/events/Delta.hpp b/src/server/events/Delta.hpp
index 935dcfac..bedba5ca 100644
--- a/src/server/events/Delta.hpp
+++ b/src/server/events/Delta.hpp
@@ -23,14 +23,17 @@
#include "ControlBindings.hpp"
#include "Event.hpp"
-#include "ingen/shared/ResourceImpl.hpp"
namespace Ingen {
+
+namespace Shared { class ResourceImpl; }
+
namespace Server {
-class GraphObjectImpl;
-class PatchImpl;
class CompiledPatch;
+class Engine;
+class PatchImpl;
+class ProcessContext;
namespace Events {