/usr/include/bse/bsemain.hh is in libbse-dev 0.7.8-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
#ifndef __BSE_MAIN_H__
#define __BSE_MAIN_H__
#include <bse/bse.hh> /* initialization */
#include <bse/bsetype.hh>
G_BEGIN_DECLS
/* --- initialization --- */
void bse_init_textdomain_only (void);
#if 0 // prototyped in bse.hh */
void bse_init_async (gint *argc,
gchar ***argv,
const char *app_name,
SfiInitValue values[]);
SfiGlueContext* bse_init_glue_context (const gchar *client);
const char* bse_check_version (guint required_major,
guint required_minor,
guint required_micro);
#endif
/* initialization for internal utilities */
void bse_init_inprocess (gint *argc,
gchar ***argv,
const char *app_name,
SfiInitValue values[]);
void bse_init_test (gint *argc,
gchar ***argv,
SfiInitValue values[]);
/* BSE thread pid (or 0) */
guint bse_main_getpid (void);
/* messaging */
void bse_message_setup_thread_handler (void);
void bse_message_to_default_handler (const BseMessage *msg);
/* --- global macros --- */
#define BSE_THREADS_ENTER() // bse_main_global_lock ()
#define BSE_THREADS_LEAVE() // bse_main_global_unlock ()
#define BSE_SEQUENCER_LOCK() sfi_mutex_lock (&bse_main_sequencer_mutex)
#define BSE_SEQUENCER_UNLOCK() sfi_mutex_unlock (&bse_main_sequencer_mutex)
#define BSE_DBG_EXT (bse_main_args->debug_extensions != FALSE)
#define BSE_CONFIG(field) (bse_main_args->field)
/* --- argc/argv overide settings --- */
typedef struct {
BirnetInitSettings birnet;
guint n_processors;
/* # values to pad around wave chunk blocks per channel */
guint wave_chunk_padding;
guint wave_chunk_big_pad;
/* data (file) cache block size (aligned to power of 2) */
guint dcache_block_size;
/* amount of bytes to spare for memory cache */
guint dcache_cache_memory;
guint midi_kammer_note;
/* kammer frequency, normally 440Hz, historically 435Hz */
gfloat kammer_freq;
const gchar *path_binaries;
const gchar *bse_rcfile;
const gchar *override_plugin_globs;
const gchar *override_script_path;
const gchar *override_sample_path;
bool allow_randomization; /* init-value "allow-randomization" - enables non-deterministic behavior */
bool force_fpu; /* init-value "force-fpu" */
bool load_core_plugins; /* init-value "load-core-plugins" */
bool load_core_scripts; /* init-value "load-core-scripts" */
bool debug_extensions; /* init-value "debug-extensions" */
bool load_drivers_early;
bool dump_driver_list;
int latency;
int mixing_freq;
int control_freq;
SfiRing *pcm_drivers;
SfiRing *midi_drivers;
} BseMainArgs;
/* --- debuging channels --- */
typedef struct {
SfiDebugChannel *sequencer; /* --bse-trace-sequencer */
} BseTraceArgs;
/* --- internal --- */
void _bse_init_c_wrappers ();
extern BseMainArgs *bse_main_args;
extern BseTraceArgs bse_trace_args;
extern GMainContext *bse_main_context;
extern BirnetMutex bse_main_sequencer_mutex;
extern BirnetThread *bse_main_thread;
G_END_DECLS
#endif /* __BSE_MAIN_H__ */
|