BEAST - Free Software Audio Synthesizer and Tracker  0.10.0
bstbseutils.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 __BST_BSE_UTILS_H__
3 #define __BST_BSE_UTILS_H__
4 #include <sfi/sfi.hh> /* needed by bstoldbseapi.h */
5 #include "bstdefs.hh"
6 G_BEGIN_DECLS
7 #define SFIDL_SKIPDEF__BseErrorType // replaced by Bse::Error
8 #define BseErrorType Bse::Error
9 #define SFIDL_SKIPDEF__BseMidiSignalType // replaced by Bse::MidiSignal
10 #define BseMidiSignalType Bse::MidiSignal
11 #include "bstoldbseapi.h" /* include this within extern "C" */
12 #undef BseErrorType
13 /* --- BSE utilities --- */
14 #define BSE_SERVER (1 /* HACK */ )
15 #define bse_proxy_set_property sfi_glue_proxy_set_property
16 #define bse_proxy_get_property sfi_glue_proxy_get_property
17 #define bse_proxy_set sfi_glue_proxy_set
18 #define bse_proxy_get sfi_glue_proxy_get
19 #define bse_proxy_get_pspec sfi_glue_proxy_get_pspec
20 #define bse_proxy_list_properties sfi_glue_proxy_list_properties
21 #define bse_proxy_disconnect sfi_glue_proxy_disconnect
22 #define bse_proxy_connect sfi_glue_proxy_connect
23 #define bse_proxy_pending sfi_glue_proxy_pending
24 #define bse_proxy_is_a sfi_glue_proxy_is_a
25 #define bse_proxy_get_qdata sfi_glue_proxy_get_qdata
26 #define bse_proxy_set_qdata_full sfi_glue_proxy_set_qdata_full
27 #define bse_proxy_steal_qdata sfi_glue_proxy_steal_qdata
28 #define bse_proxy_set_qdata(p,q,d) bse_proxy_set_qdata_full ((p), (q), (d), NULL)
29 #define bse_proxy_set_data(p,n,d) bse_proxy_set_qdata ((p), g_quark_from_string (n), (d))
30 #define bse_proxy_get_data(p,n) bse_proxy_get_qdata ((p), g_quark_try_string (n))
31 #define bse_proxy_steal_data(p,n) bse_proxy_steal_qdata ((p), g_quark_try_string (n))
32 #define bse_proxy_set_data_full(p,n,d,f) bse_proxy_set_qdata_full ((p), g_quark_from_string (n), (d), (f))
33 
34 /* --- BEAST utilities --- */
35 Bse::Error bst_project_restore_from_file (Bse::ProjectH project,
36  const gchar *file_name,
37  bool apply_project_file_name,
38  bool preserve_non_dirty);
39 Bse::Error bst_project_import_midi_file (Bse::ProjectH project,
40  const gchar *file_name);
41 const gchar* bst_procedure_get_title (const gchar *procedure);
42 uint bst_path_leaf_index (const String &path, char separator = '/');
43 BseCategory* bse_category_find (const gchar* pattern);
44 
45 
46 G_END_DECLS
47 
48 namespace Bse {
49 const char* error_blurb (Bse::Error error_value);
50 } // Bse
51 
52 #endif /* __BST_BSE_UTILS_H__ */
The Bse namespace contains all functions of the synthesis engine.
Definition: bstbseutils.cc:88
uint bst_path_leaf_index(const String &path, char separator= '/')
Return the character index of the last string segment not containing separator.
Definition: bstbseutils.cc:81
STL class.
See also the corresponding IDL class Project.
Definition: bseclientapi.hh:1283
const char * error_blurb(Bse::Error error_value)
Retrieve the description of an error value.
Definition: bstbseutils.cc:91