BEAST/BSE - Better Audio System and Sound Engine  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
bseglue.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_GLUE_H__
3 #define __BSE_GLUE_H__
4 
5 #include <bse/bsetype.hh>
6 
7 G_BEGIN_DECLS
8 
9 /* FIXME: creation of a new context source should be done
10  * by a janitor constructor
11  */
12 
13 SfiGlueContext* bse_glue_context_intern (const gchar *user);
14 
15 /* Construct a new #SfiRec from a boxed value. */
16 typedef SfiRec* (*BseGlueBoxedToRec) (gpointer boxed);
17 /* Construct a new #SfiSeq from a boxed value. */
18 typedef SfiSeq* (*BseGlueBoxedToSeq) (gpointer boxed);
19 
20 GType bse_glue_pspec_get_original_enum (GParamSpec *pspec);
21 guint bse_glue_enum_index (GType enum_type,
22  gint enum_value);
23 GValue* bse_glue_boxed_to_value (GType boxed_type,
24  gpointer boxed);
25 
26 /* convert value sto/from SFI serializable types */
27 GValue* bse_value_to_sfi (const GValue *value);
28 GValue* bse_value_from_sfi (const GValue *value,
29  GParamSpec *pspec);
30 
31 G_END_DECLS
32 
33 #endif /* __BSE_GLUE_H__ */
34 
35 /* vim:set ts=8 sts=2 sw=2: */