PipeWire  1.4.11
type-info.h
Go to the documentation of this file.
1 /* Simple Plugin API */
2 /* SPDX-FileCopyrightText: Copyright © 2018 Wim Taymans */
3 /* SPDX-License-Identifier: MIT */
4 
5 #ifndef SPA_NODE_TYPES_H
6 #define SPA_NODE_TYPES_H
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
17 #include <spa/utils/type.h>
18 
19 #include <spa/node/command.h>
20 #include <spa/node/event.h>
21 #include <spa/node/io.h>
22 
23 #define SPA_TYPE_INFO_IO SPA_TYPE_INFO_ENUM_BASE "IO"
24 #define SPA_TYPE_INFO_IO_BASE SPA_TYPE_INFO_IO ":"
25 
26 static const struct spa_type_info spa_type_io[] = {
34  { SPA_IO_Position, SPA_TYPE_Int, SPA_TYPE_INFO_IO_BASE "Position", NULL },
35  { SPA_IO_RateMatch, SPA_TYPE_Int, SPA_TYPE_INFO_IO_BASE "RateMatch", NULL },
37  { SPA_IO_AsyncBuffers, SPA_TYPE_Int, SPA_TYPE_INFO_IO_BASE "AsyncBuffers", NULL },
38  { 0, 0, NULL, NULL },
39 };
40 
41 #define SPA_TYPE_INFO_NodeEvent SPA_TYPE_INFO_EVENT_BASE "Node"
42 #define SPA_TYPE_INFO_NODE_EVENT_BASE SPA_TYPE_INFO_NodeEvent ":"
43 
44 static const struct spa_type_info spa_type_node_event_id[] = {
49  { 0, 0, NULL, NULL },
50 };
51 
52 static const struct spa_type_info spa_type_node_event[] = {
54  { 0, 0, NULL, NULL },
55 };
56 
57 #define SPA_TYPE_INFO_NodeCommand SPA_TYPE_INFO_COMMAND_BASE "Node"
58 #define SPA_TYPE_INFO_NODE_COMMAND_BASE SPA_TYPE_INFO_NodeCommand ":"
59 
60 static const struct spa_type_info spa_type_node_command_id[] = {
72  { 0, 0, NULL, NULL },
73 };
74 
75 static const struct spa_type_info spa_type_node_command[] = {
77  { 0, 0, NULL, NULL },
78 };
79 
84 #ifdef __cplusplus
85 } /* extern "C" */
86 #endif
87 
88 #endif /* SPA_NODE_TYPES_H */
area to exchange buffers, struct spa_io_buffers
Definition: io.h:38
Definition: event.h:27
Definition: event.h:29
#define SPA_TYPE_INFO_NODE_EVENT_BASE
Definition: type-info.h:51
suspend a node, this removes all configured formats and closes any devices
Definition: command.h:26
Definition: type.h:80
#define SPA_TYPE_INFO_IO_BASE
Definition: type-info.h:31
area to update clock information, struct spa_io_clock
Definition: io.h:40
Definition: event.h:28
pause a node.
Definition: command.h:28
Definition: command.h:33
latency reporting, struct spa_io_latency (currently not used in PipeWire).
Definition: io.h:41
spa/node/event.h
static const struct spa_type_info spa_type_node_command_id[]
Definition: type-info.h:71
async area to exchange buffers, struct spa_io_async_buffers
Definition: io.h:48
Definition: type.h:74
end a transaction
Definition: command.h:41
Definition: event.h:40
Definition: command.h:35
spa/node/io.h
spa/utils/type.h
area for notify messages, struct spa_io_sequence
Definition: io.h:44
Definition: command.h:36
Definition: type.h:154
static const struct spa_type_info spa_type_node_event_id[]
Definition: type-info.h:53
start a node, this makes it start emitting scheduling events
Definition: command.h:30
static const struct spa_type_info spa_type_node_command[]
Definition: type-info.h:86
Definition: event.h:26
Definition: command.h:32
begin a set of parameter enumerations or configuration that require the device to remain opened...
Definition: command.h:37
area for control messages, struct spa_io_sequence
Definition: io.h:43
spa/node/command.h
Definition: io.h:37
Definition: type.h:44
rate matching between nodes, struct spa_io_rate_match
Definition: io.h:46
#define SPA_TYPE_INFO_NODE_COMMAND_BASE
Definition: type-info.h:69
memory pointer, struct spa_io_memory (currently not used in PipeWire)
Definition: io.h:47
Definition: type.h:45
static const struct spa_type_info spa_type_node_event[]
Definition: type-info.h:61
Definition: command.h:34
static const struct spa_type_info spa_type_io[]
Definition: type-info.h:33
position information in the graph, struct spa_io_position
Definition: io.h:45
expected byte range, struct spa_io_range (currently not used in PipeWire)
Definition: io.h:39
Sent to a driver when some other node emitted the RequestProcess event.
Definition: command.h:42