summaryrefslogtreecommitdiffstats
path: root/src/common/interface/CommonInterface.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-08-16 22:45:35 +0000
committerDavid Robillard <d@drobilla.net>2008-08-16 22:45:35 +0000
commite9ea28e1efb241619606b937ecd2e97f7e23d897 (patch)
tree88ead187b63945d61837d075e10be9b105b870cd /src/common/interface/CommonInterface.hpp
parent491762bb487e1007f11cdc4dc7c01b03e3bd0d9d (diff)
downloadingen-e9ea28e1efb241619606b937ecd2e97f7e23d897.tar.gz
ingen-e9ea28e1efb241619606b937ecd2e97f7e23d897.tar.bz2
ingen-e9ea28e1efb241619606b937ecd2e97f7e23d897.zip
Begin factoring out common elements of EngineInterface and ClientInterface.
git-svn-id: http://svn.drobilla.net/lad/ingen@1406 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/common/interface/CommonInterface.hpp')
-rw-r--r--src/common/interface/CommonInterface.hpp65
1 files changed, 65 insertions, 0 deletions
diff --git a/src/common/interface/CommonInterface.hpp b/src/common/interface/CommonInterface.hpp
new file mode 100644
index 00000000..da147e9f
--- /dev/null
+++ b/src/common/interface/CommonInterface.hpp
@@ -0,0 +1,65 @@
+/* This file is part of Ingen.
+ * Copyright (C) 2008 Dave 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 COMMONINTERFACE_H
+#define COMMONINTERFACE_H
+
+#include <inttypes.h>
+#include <string>
+#include <raul/SharedPtr.hpp>
+#include "interface/ClientInterface.hpp"
+#include "interface/CommonInterface.hpp"
+
+namespace Ingen {
+namespace Shared {
+
+
+/** Abstract interface common to both engine and clients.
+ * Purely virtual (except for the destructor).
+ *
+ * \ingroup interface
+ */
+class CommonInterface
+{
+public:
+ virtual ~CommonInterface() {}
+
+ // Bundles
+ virtual void bundle_begin() = 0;
+ virtual void bundle_end() = 0;
+
+ // Object commands
+
+ virtual void new_patch(const std::string& path,
+ uint32_t poly) = 0;
+
+ virtual void connect(const std::string& src_port_path,
+ const std::string& dst_port_path) = 0;
+
+ virtual void disconnect(const std::string& src_port_path,
+ const std::string& dst_port_path) = 0;
+
+protected:
+ CommonInterface() {}
+};
+
+
+} // namespace Shared
+} // namespace Ingen
+
+#endif // COMMONINTERFACE_H
+