BEAST/BSE - Better Audio System and Sound Engine  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 G_BEGIN_DECLS
6 #include "bstoldbseapi.h" /* include this within extern "C" */
7 /* --- BSE utilities --- */
8 #define BSE_SERVER (1 /* HACK */ )
9 #define bse_proxy_set_property sfi_glue_proxy_set_property
10 #define bse_proxy_get_property sfi_glue_proxy_get_property
11 #define bse_proxy_set sfi_glue_proxy_set
12 #define bse_proxy_get sfi_glue_proxy_get
13 #define bse_proxy_get_pspec sfi_glue_proxy_get_pspec
14 #define bse_proxy_list_properties sfi_glue_proxy_list_properties
15 #define bse_proxy_disconnect sfi_glue_proxy_disconnect
16 #define bse_proxy_connect sfi_glue_proxy_connect
17 #define bse_proxy_pending sfi_glue_proxy_pending
18 #define bse_proxy_is_a sfi_glue_proxy_is_a
19 #define bse_proxy_get_qdata sfi_glue_proxy_get_qdata
20 #define bse_proxy_set_qdata_full sfi_glue_proxy_set_qdata_full
21 #define bse_proxy_steal_qdata sfi_glue_proxy_steal_qdata
22 #define bse_proxy_set_qdata(p,q,d) bse_proxy_set_qdata_full ((p), (q), (d), NULL)
23 #define bse_proxy_set_data(p,n,d) bse_proxy_set_qdata ((p), g_quark_from_string (n), (d))
24 #define bse_proxy_get_data(p,n) bse_proxy_get_qdata ((p), g_quark_try_string (n))
25 #define bse_proxy_steal_data(p,n) bse_proxy_steal_qdata ((p), g_quark_try_string (n))
26 #define bse_proxy_set_data_full(p,n,d,f) bse_proxy_set_qdata_full ((p), g_quark_from_string (n), (d), (f))
27 
28 /* --- BEAST utilities --- */
29 BseErrorType bst_project_restore_from_file (SfiProxy project,
30  const gchar *file_name,
31  bool apply_project_file_name,
32  bool preserve_non_dirty);
33 BseErrorType bst_project_import_midi_file (SfiProxy project,
34  const gchar *file_name);
35 const gchar* bst_procedure_get_title (const gchar *procedure);
36 
37 G_END_DECLS
38 
39 #endif /* __BST_BSE_UTILS_H__ */