Real Time Open Sound Control librtosc
|
Functions to retrieve runtime values from ports. More...
Go to the source code of this file.
Functions | |
const char * | rtosc::helpers::get_value_from_runtime (void *runtime, const struct Ports &ports, size_t loc_size, char *loc, char *buffer_with_port, std::size_t buffersize, int cols_used) |
Returns a port's value pretty-printed from a runtime object. | |
size_t | rtosc::helpers::get_value_from_runtime (void *runtime, const struct Port &port, size_t loc_size, char *loc, const char *portname_from_base, char *buffer_with_port, std::size_t buffersize, std::size_t max_args, rtosc_arg_val_t *arg_vals) |
Returns a port's current value(s) | |
Functions to retrieve runtime values from ports.
size_t rtosc::helpers::get_value_from_runtime | ( | void * | runtime, |
const struct Port & | port, | ||
size_t | loc_size, | ||
char * | loc, | ||
const char * | portname_from_base, | ||
char * | buffer_with_port, | ||
std::size_t | buffersize, | ||
std::size_t | max_args, | ||
rtosc_arg_val_t * | arg_vals | ||
) |
Returns a port's current value(s)
This function returns the value(s) of a known port object and stores them as rtosc_arg_val_t.
runtime | The runtime object |
port | the port where loc is relative to |
loc | A buffer where dispatch can write down the currently dispatched path |
loc_size | Size of loc |
portname_from_base | The name of the port, relative to its base |
buffer_with_port | A buffer which already contains the port. This buffer will be modified and must at least have space for 8 more bytes. |
buffersize | Size of buffer_with_port |
max_args | Maximum capacity of arg_vals |
arg_vals | Argument buffer for returned argument values |
arg_vals
const char * rtosc::helpers::get_value_from_runtime | ( | void * | runtime, |
const struct Ports & | ports, | ||
size_t | loc_size, | ||
char * | loc, | ||
char * | buffer_with_port, | ||
std::size_t | buffersize, | ||
int | cols_used | ||
) |
Returns a port's value pretty-printed from a runtime object.
The port object must not be known.
For the parameters, see the overloaded function