Real Time Open Sound Control librtosc
Loading...
Searching...
No Matches
rtosc-0.3.1
include
rtosc
ports-runtime.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2017 Johannes Lorenz
3
*
4
* Permission is hereby granted, free of charge, to any person obtaining a
5
* copy of this software and associated documentation files (the "Software"),
6
* to deal in the Software without restriction, including without limitation
7
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
8
* and/or sell copies of the Software, and to permit persons to whom the
9
* Software is furnished to do so, subject to the following conditions:
10
*
11
* The above copyright notice and this permission notice (including the next
12
* paragraph) shall be included in all copies or substantial portions of the
13
* Software.
14
*
15
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22
* DEALINGS IN THE SOFTWARE.
23
*/
24
29
#ifndef PORTS_RUNTIME
30
#define PORTS_RUNTIME
31
32
#include <cstddef>
33
#include <
rtosc/rtosc.h
>
34
35
namespace
rtosc {
36
namespace
helpers {
37
45
const
char
*
get_value_from_runtime
(
void
* runtime,
const
struct
Ports
& ports,
46
size_t
loc_size,
char
* loc,
47
char
* buffer_with_port,
48
std::size_t buffersize,
49
int
cols_used);
50
69
size_t
get_value_from_runtime
(
void
* runtime,
const
struct
Port
& port,
70
size_t
loc_size,
char
* loc,
71
const
char
* portname_from_base,
72
char
* buffer_with_port, std::size_t buffersize,
73
std::size_t max_args,
rtosc_arg_val_t
* arg_vals);
74
75
// TODO: loc should probably not be passed,
76
// since it can be allocated in constant time?
77
// TODO: clean up those funcs:
78
// * use dispatch instead of cb
79
// * don't pass loc etc
80
81
}
82
}
83
84
#endif
// PORTS_RUNTIME
rtosc::helpers::get_value_from_runtime
const char * 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.
rtosc.h
Functions handling messages and arguments.
rtosc::Port
Port in rtosc dispatching hierarchy.
Definition:
ports.h:97
rtosc::Ports
Ports - a dispatchable collection of Port entries.
Definition:
ports.h:159
rtosc_arg_val_t
Definition:
rtosc.h:86
Generated on Mon Jun 12 2023 08:11:37 for Real Time Open Sound Control librtosc by
1.9.6