Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
bsestartup.hh
Go to the documentation of this file.
1  // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
2 #ifndef __BSE_CORE_HH__
3 #define __BSE_CORE_HH__
4 
5 #include <sfi/sfi.hh>
6 #include <bse/bseconfig.h>
7 
9 namespace Bse {
10 using namespace Rapicorn;
11 
13 class TaskRegistry { // FIXME: move this to IDL
14 public:
16  static void add (const std::string &name, int pid,
17  int tid = -1);
18  static bool remove (int tid);
19  static void update ();
20  static List list ();
21 };
22 
23 // == BSE Initialization ==
24 
25 SfiGlueContext* init_glue_context (const gchar *client, const std::function<void()> &caller_wakeup);
26 void init_async (int *argc, char **argv, const char *app_name, const StringVector &args = StringVector());
27 bool init_needed ();
28 void objects_debug_leaks ();
29 
31 class AidaGlibSource : public GSource {
32 public:
33  static AidaGlibSource* create (Rapicorn::Aida::BaseConnection *connection);
34 };
35 
36 } // Bse
37 
38 #endif /* __BSE_CORE_HH__ */
SfiGlueContext * init_glue_context(const gchar *client, const std::function< void()> &caller_wakeup)
Create SFI glue layer context.
Definition: bsestartup.cc:17
The Bse namespace contains all functions of the synthesis engine.
Definition: bstbseutils.cc:91
The task registry keeps track of runtime threads for profiling and statistical purposes.
Definition: bsestartup.hh:13
STL class.
bool init_needed()
Check wether init_async() still needs to be called.
Definition: bsestartup.cc:34
A GSource implementation to attach an Aida::BaseConnection to a Glib main loop.
Definition: bsestartup.hh:31
STL class.
vector< String > StringVector
void init_async(int *argc, char **argv, const char *app_name, const StringVector &args)
Initialize and start BSE.
Definition: bsestartup.cc:27