Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
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 #define SFIDL_SKIPDEF__BseErrorType // replaced by Bse::Error
7 #define BseErrorType Bse::Error
8 #define SFIDL_SKIPDEF__BseMidiSignalType // replaced by Bse::MidiSignal
9 #define BseMidiSignalType Bse::MidiSignal
10 #include "bstoldbseapi.h" /* include this within extern "C" */
11 #undef BseErrorType
12 /* --- BSE utilities --- */
13 #define BSE_SERVER (1 /* HACK */ )
14 #define bse_proxy_set_property sfi_glue_proxy_set_property
15 #define bse_proxy_get_property sfi_glue_proxy_get_property
16 #define bse_proxy_set sfi_glue_proxy_set
17 #define bse_proxy_get sfi_glue_proxy_get
18 #define bse_proxy_get_pspec sfi_glue_proxy_get_pspec
19 #define bse_proxy_list_properties sfi_glue_proxy_list_properties
20 #define bse_proxy_disconnect sfi_glue_proxy_disconnect
21 #define bse_proxy_connect sfi_glue_proxy_connect
22 #define bse_proxy_pending sfi_glue_proxy_pending
23 #define bse_proxy_is_a sfi_glue_proxy_is_a
24 #define bse_proxy_get_qdata sfi_glue_proxy_get_qdata
25 #define bse_proxy_set_qdata_full sfi_glue_proxy_set_qdata_full
26 #define bse_proxy_steal_qdata sfi_glue_proxy_steal_qdata
27 #define bse_proxy_set_qdata(p,q,d) bse_proxy_set_qdata_full ((p), (q), (d), NULL)
28 #define bse_proxy_set_data(p,n,d) bse_proxy_set_qdata ((p), g_quark_from_string (n), (d))
29 #define bse_proxy_get_data(p,n) bse_proxy_get_qdata ((p), g_quark_try_string (n))
30 #define bse_proxy_steal_data(p,n) bse_proxy_steal_qdata ((p), g_quark_try_string (n))
31 #define bse_proxy_set_data_full(p,n,d,f) bse_proxy_set_qdata_full ((p), g_quark_from_string (n), (d), (f))
32 
33 /* --- BEAST utilities --- */
34 Bse::Error bst_project_restore_from_file (Bse::ProjectH project,
35  const gchar *file_name,
36  bool apply_project_file_name,
37  bool preserve_non_dirty);
38 Bse::Error bst_project_import_midi_file (Bse::ProjectH project,
39  const gchar *file_name);
40 const gchar* bst_procedure_get_title (const gchar *procedure);
41 uint bst_path_leaf_index (const String &path, char separator = '/');
42 Bse::Category bst_category_find (const String &pattern);
43 
44 
45 namespace Bse {
46 const char* error_blurb (Bse::Error error_value);
47 } // Bse
48 
49 #endif /* __BST_BSE_UTILS_H__ */
The Bse namespace contains all functions of the synthesis engine.
Definition: bstbseutils.cc:91
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:84
STL class.
Categories describe useful type entities.
Definition: bseapi.idl:893
const char * error_blurb(Bse::Error error_value)
Retrieve the description of an error value.
Definition: bstbseutils.cc:94