[beast: 3/10] BSE: use Aida::ObjectBroker::bind<> to provide an IPC connectoin to ServerIface
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 3/10] BSE: use Aida::ObjectBroker::bind<> to provide an IPC connectoin to ServerIface
- Date: Fri, 19 Jun 2015 16:23:00 +0000 (UTC)
commit 56a11131e31b6d7835702b49d13be1901959de1b
Author: Tim Janik <timj gnu org>
Date: Thu May 28 01:30:42 2015 +0200
BSE: use Aida::ObjectBroker::bind<> to provide an IPC connectoin to ServerIface
bse/bsemain.cc | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/bse/bsemain.cc b/bse/bsemain.cc
index b77ffd5..d9f4299 100644
--- a/bse/bsemain.cc
+++ b/bse/bsemain.cc
@@ -575,12 +575,13 @@ namespace Bse {
static void
init_aida_idl ()
{
- // hook Aida connection into our main loop
+ // setup Aida server connection, so ServerIface::__aida_connection__() yields non-NULL
+ Aida::ObjectBroker::bind<Bse::ServerIface> ("inproc://BSE-" BST_VERSION,
+ shared_ptr_cast<Bse::ServerIface>
(&Bse::ServerImpl::instance()));
+ // hook up server connection to main loop to process remote calls
AidaGlibSource *source = AidaGlibSource::create (Bse::ServerIface::__aida_connection__());
g_source_set_priority (source, BSE_PRIORITY_GLUE);
g_source_attach (source, bse_main_context);
- // provide initial remote object reference
- Bse::ServerIface::__aida_connection__()->remote_origin (Bse::ServerImpl::instance().shared_from_this());
}
} // Bse
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]