Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
bseprocedure.cc File Reference
#include "bseprocedure.hh"
#include "bsemain.hh"
#include <gobject/gvaluecollector.h>
#include "bseobject.hh"
#include "bseserver.hh"
#include "bsestorage.hh"
#include "bseexports.hh"
#include <string.h>
Include dependency graph for bseprocedure.cc:

Macros

#define PDEBUG(...)
 
#define CHECK_DEBUG()
 
#define HACK_DEBUG
 
#define parse_or_return
 
#define peek_or_return
 

Functions

void bse_procedure_complete_info (const BseExportNodeProc *pnode, GTypeInfo *info)
 
const gchar * bse_procedure_type_register (const gchar *name, BsePlugin *plugin, GType *ret_type)
 
GType bse_procedure_lookup (const gchar *proc_name)
 
Bse::Error bse_procedure_marshal (GType proc_type, const GValue *ivalues, GValue *ovalues, BseProcedureMarshal marshal, gpointer marshal_data)
 
Bse::Error bse_procedure_marshal_valist (GType proc_type, const GValue *first_value, BseProcedureMarshal marshal, gpointer marshal_data, gboolean skip_ovalues, va_list var_args)
 
Bse::Error bse_procedure_collect_input_args (BseProcedureClass *proc, const GValue *first_value, va_list var_args, GValue ivalues[BSE_PROCEDURE_MAX_IN_PARAMS])
 
Bse::Error bse_procedure_exec (const gchar *proc_name,...)
 
Bse::Error bse_procedure_exec_void (const gchar *proc_name,...)
 
Bse::Error bse_procedure_execvl (BseProcedureClass *proc, GSList *in_value_list, GSList *out_value_list, BseProcedureMarshal marshal, gpointer marshal_data)
 
void bse_type_register_procedure_info (GTypeInfo *info)
 

Function Documentation

Bse::Error bse_procedure_collect_input_args ( BseProcedureClass *  proc,
const GValue *  first_value,
va_list  var_args,
GValue  ivalues[BSE_PROCEDURE_MAX_IN_PARAMS] 
)
Parameters
procvalid BseProcedureClass
first_valuethe first input argument if not to be collected
var_argsva_list to collect input args from
ivaluesuninitialized GValue array with at least proc->n_in_pspecs members
Returns
Bse::Error value of error if any occoured during collection

Collect input arguments for a procedure call from a va_list. The first value may be supplied as first_value and will then not be collected. ivalues must be at least proc->n_in_pspecs elements long and all elements will be initialized after the function returns (even in error cases). first_value may be the same adress as ivalues, in whic hcase the first argument is entirely ignored and collection simply starts out with the second argument.

Referenced by bse_item_current_musical_tuning().

Here is the call graph for this function:

Here is the caller graph for this function:

Bse::Error bse_procedure_marshal_valist ( GType  proc_type,
const GValue *  first_value,
BseProcedureMarshal  marshal,
gpointer  marshal_data,
gboolean  skip_ovalues,
va_list  var_args 
)
Parameters
proc_typea type derived from BSE_TYPE_PROCEDURE
first_valuethe first input argument if not to be collected
marshalfunction marshalling the procedure call or NULL
marshal_datadata passed in to marshal
skip_ovalueswhether return value locations should be collected and filled in
var_argsva_list to collect input args from
Returns
Bse::Error value of error if any occoured

Collect input arguments for a procedure call from a va_list and call the procedure, optionally via marshal. If skip_ovalues is FALSE, the procedure return values will be stored in return value locations also collected from var_args.

Referenced by bse_item_current_musical_tuning(), and bse_procedure_collect_input_args().

Here is the caller graph for this function: