[beast: 18/28] BEAST: bstmain.cc: extract method main_init_bse
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 18/28] BEAST: bstmain.cc: extract method main_init_bse
- Date: Tue, 29 Dec 2015 19:02:26 +0000 (UTC)
commit 62f1d5ca0c0e2640cc3a00fcab2b5ba7cdecf047
Author: Tim Janik <timj gnu org>
Date: Wed Dec 2 00:57:46 2015 +0100
BEAST: bstmain.cc: extract method main_init_bse
Signed-off-by: Tim Janik <timj gnu org>
beast-gtk/bstmain.cc | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/beast-gtk/bstmain.cc b/beast-gtk/bstmain.cc
index 82fdd5c..9062532 100644
--- a/beast-gtk/bstmain.cc
+++ b/beast-gtk/bstmain.cc
@@ -60,6 +60,7 @@ server_registration (SfiProxy server,
}
}
+static void main_init_bse (int *argc, char *argv[]);
static void main_init_sfi_glue();
static void main_init_gxk (int *argc, char *argv[]);
static void main_init_bst_systems();
@@ -104,11 +105,11 @@ main (int argc, char *argv[])
// early arg parsing without remote calls
bst_args_parse_early (&argc, argv);
- // startup BSE, allow remote calls
- Bse::String bseoptions = Bse::string_format ("debug-extensions=%d", bst_debug_extensions);
- Bse::init_async (&argc, argv, "BEAST", Bse::string_split (bseoptions, ":")); // initializes Bse AIDA
connection
+ main_init_bse (&argc, argv);
+
// now that the BSE thread runs, drop scheduling priorities if we have any
setpriority (PRIO_PROCESS, getpid(), 0);
+
// hook up Bse aida IDL with main loop
bst_init_aida_idl();
@@ -138,6 +139,14 @@ main (int argc, char *argv[])
}
static void
+main_init_bse (int *argc, char *argv[])
+{
+ // startup BSE, allow remote calls
+ Bse::String bseoptions = Bse::string_format ("debug-extensions=%d", bst_debug_extensions);
+ Bse::init_async (argc, argv, "BEAST", Bse::string_split (bseoptions, ":")); // initializes Bse AIDA
connection
+}
+
+static void
main_init_sfi_glue()
{
// setup SFI glue context and its wakeup
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]