/* This file is part of Patchage. * Copyright 2007-2021 David Robillard * * Patchage 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 3 of the License, or (at your option) * any later version. * * Patchage 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 Patchage. If not, see . */ #ifndef PATCHAGE_EVENT_HPP #define PATCHAGE_EVENT_HPP #include "ClientID.hpp" #include "ClientInfo.hpp" #include "ClientType.hpp" #include "PortID.hpp" #include "PortInfo.hpp" #include namespace patchage { namespace event { struct Cleared {}; struct ClientCreated { ClientID id; ClientInfo info; }; struct ClientDestroyed { ClientID id; }; struct DriverAttached { ClientType type; }; struct DriverDetached { ClientType type; }; struct PortCreated { PortID id; PortInfo info; }; struct PortDestroyed { PortID id; }; struct PortsConnected { PortID tail; PortID head; }; struct PortsDisconnected { PortID tail; PortID head; }; } // namespace event /// An event from drivers that represents a change to the system using Event = boost::variant; } // namespace patchage #endif // PATCHAGE_EVENT_HPP