[beast: 4/10] BEAST: use Aida::ObjectBroker::connect<> to establish a ServerHandle IPC connection
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 4/10] BEAST: use Aida::ObjectBroker::connect<> to establish a ServerHandle IPC connection
- Date: Fri, 19 Jun 2015 16:23:05 +0000 (UTC)
commit 1cf0d9759aa0602897955b780251a2a2ea494be6
Author: Tim Janik <timj gnu org>
Date: Thu May 28 01:33:08 2015 +0200
BEAST: use Aida::ObjectBroker::connect<> to establish a ServerHandle IPC connection
beast-gtk/bstmain.cc | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/beast-gtk/bstmain.cc b/beast-gtk/bstmain.cc
index ba8032d..034c74b 100644
--- a/beast-gtk/bstmain.cc
+++ b/beast-gtk/bstmain.cc
@@ -437,15 +437,13 @@ static void
bst_init_aida_idl()
{
assert (bse_server == NULL);
+ // connect to BSE thread and fetch server handle
+ bse_server = Rapicorn::Aida::ObjectBroker::connect<Bse::ServerH> ("inproc://BSE-" BST_VERSION);
+ assert (bse_server != NULL);
// hook Aida connection into our main loop
Bse::AidaGlibSource *source = Bse::AidaGlibSource::create (Bse::ServerH::__aida_connection__());
g_source_set_priority (source, G_PRIORITY_DEFAULT);
g_source_attach (source, g_main_context_default());
- // fetch initial remote object reference
- auto aidabsekeys = Rapicorn::string_split ("CxxStub:AidaServerConnection:idl_file=\\bbse/bseapi.idl", ":");
- Rapicorn::Aida::RemoteHandle smh = Bse::ServerH::__aida_connection__()->remote_origin (aidabsekeys);
- bse_server = Rapicorn::Aida::RemoteHandle::__aida_reinterpret_down_cast__<Bse::ServerH> (smh);
- assert (bse_server != NULL);
// performa Bse Aida test
if (0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]