[beast/devel: 13/17] BSE: provide TestObjectImpl
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast/devel: 13/17] BSE: provide TestObjectImpl
- Date: Wed, 1 May 2013 12:31:03 +0000 (UTC)
commit e4ad7088706d000dbf30941a9a2d6ba059c6993a
Author: Tim Janik <timj gnu org>
Date: Thu Mar 28 16:07:05 2013 +0000
BSE: provide TestObjectImpl
bse/Makefile.am | 2 ++
bse/testobject.cc | 20 ++++++++++++++++++++
bse/testobject.hh | 19 +++++++++++++++++++
3 files changed, 41 insertions(+), 0 deletions(-)
---
diff --git a/bse/Makefile.am b/bse/Makefile.am
index 3cba42f..591df83 100644
--- a/bse/Makefile.am
+++ b/bse/Makefile.am
@@ -56,6 +56,7 @@ bse_public_headers = $(strip \
bsecxxvalue.hh bsecxxutils.hh bsecxxbase.hh bsecxxclosure.hh \
bsecxxarg.hh bsecxxmodule.hh bsecxxplugin.hh bseloader.hh \
bseresampler.hh bseresamplerimpl.hh \
+ testobject.hh \
)
# BSE C & C++ sources
bse_sources = $(strip \
@@ -94,6 +95,7 @@ bse_sources = $(strip \
bsebusmodule.cc \
bsebasics.cc \
bseprobe.cc \
+ testobject.cc \
)
# BSE Synthesis Modules
bse_idl_sources =
diff --git a/bse/testobject.cc b/bse/testobject.cc
new file mode 100644
index 0000000..eb7b698
--- /dev/null
+++ b/bse/testobject.cc
@@ -0,0 +1,20 @@
+// Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
+#include "testobject.hh"
+
+namespace Bse {
+
+TestObjectImpl::TestObjectImpl ()
+{}
+
+TestObjectImpl::~TestObjectImpl ()
+{}
+
+int
+TestObjectImpl::echo_test (const std::string &msg)
+{
+ g_print ("ServerImpl::echo_test: %s\n", msg.c_str());
+ sig_echo_reply.emit (msg);
+ return msg.size();
+}
+
+} // Bse
diff --git a/bse/testobject.hh b/bse/testobject.hh
new file mode 100644
index 0000000..180ea59
--- /dev/null
+++ b/bse/testobject.hh
@@ -0,0 +1,19 @@
+// Licensed GNU LGPL v3 or later: http://www.gnu.org/licenses/lgpl.html
+#ifndef __BSE_TESTOBJECT_HH__
+#define __BSE_TESTOBJECT_HH__
+
+#include <bse/bseutils.hh>
+
+namespace Bse {
+
+class TestObjectImpl : public TestObjectIface {
+public:
+ explicit TestObjectImpl ();
+ virtual ~TestObjectImpl ();
+ virtual int echo_test (const std::string &msg);
+};
+typedef std::shared_ptr<TestObjectImpl> TestObjectImplP;
+
+} // Bse
+
+#endif // __BSE_TESTOBJECT_HH__
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]