diff options
Diffstat (limited to 'libs/midi++2/midi++/manager.h')
-rw-r--r-- | libs/midi++2/midi++/manager.h | 30 |
1 files changed, 3 insertions, 27 deletions
diff --git a/libs/midi++2/midi++/manager.h b/libs/midi++2/midi++/manager.h index 563062aaea..2193c1eb23 100644 --- a/libs/midi++2/midi++/manager.h +++ b/libs/midi++2/midi++/manager.h @@ -21,7 +21,6 @@ #define __midi_manager_h__ #include <list> -#include <vector> #include <string> @@ -34,8 +33,6 @@ class Manager { public: ~Manager (); - void set_api_data(void* data) { api_data = data; } - /** Signal the start of an audio cycle. * This MUST be called before any reading/writing for this cycle. * Realtime safe. @@ -49,26 +46,9 @@ class Manager { */ void cycle_end(); - Port *add_port (const XMLNode& node); - int remove_port (Port*); - - Port *port (std::string name); - - size_t nports () const { return _ports.size(); } - - /* defaults for clients who are not picky */ - - Port *inputPort; - Port *outputPort; - channel_t inputChannelNumber; - channel_t outputChannelNumber; - - int set_input_port (std::string); - int set_output_port (std::string); - int set_input_channel (channel_t); - int set_output_channel (channel_t); + Port* add_port (Port *); - int foreach_port (int (*func)(const Port &, size_t n, void *), void *arg); + Port* port (std::string const &); typedef std::list<Port *> PortList; @@ -90,13 +70,9 @@ class Manager { /* This is a SINGLETON pattern */ Manager (); - static Manager *theManager; + std::list<Port*> _ports; - - void* api_data; - - void close_ports (); }; } // namespace MIDI |