diff options
author | David Robillard <d@drobilla.net> | 2007-07-25 06:07:42 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-07-25 06:07:42 +0000 |
commit | 75911e8ae28f011727ce303961a1adb56643689d (patch) | |
tree | ed83fcfc6bf11a6c5d48ef2337f7458fe29ea7a3 /src/libs/engine/Engine.hpp | |
parent | 68861e30d860010424112ebaacf960a7839a009a (diff) | |
download | ingen-75911e8ae28f011727ce303961a1adb56643689d.tar.gz ingen-75911e8ae28f011727ce303961a1adb56643689d.tar.bz2 ingen-75911e8ae28f011727ce303961a1adb56643689d.zip |
Fix running with ingen -eg.
Start basic framework of an Ingen "Core" system/library (in module library for now).
git-svn-id: http://svn.drobilla.net/lad/ingen@624 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/Engine.hpp')
-rw-r--r-- | src/libs/engine/Engine.hpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/libs/engine/Engine.hpp b/src/libs/engine/Engine.hpp index b9780501..fc64e024 100644 --- a/src/libs/engine/Engine.hpp +++ b/src/libs/engine/Engine.hpp @@ -18,6 +18,9 @@ #ifndef ENGINE_H #define ENGINE_H +#include "../../../config/config.h" +#include "module/module.h" + #include <cassert> #include <boost/utility.hpp> #include <raul/SharedPtr.hpp> @@ -55,7 +58,8 @@ class Driver; class Engine : boost::noncopyable { public: - Engine(); + Engine(Ingen::Shared::World* world); + virtual ~Engine(); virtual int main(); @@ -90,8 +94,13 @@ public: /** Return the active driver for the given type */ Driver* driver(DataType type); + + Ingen::Shared::World* world() { return _world; } private: + + Ingen::Shared::World* _world; + SharedPtr<EventSource> _event_source; SharedPtr<AudioDriver> _audio_driver; MidiDriver* _midi_driver; |