PipeWire  0.3.67
node/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  { 0, 0, NULL, NULL },
38 };
39 
40 #define SPA_TYPE_INFO_NodeEvent SPA_TYPE_INFO_EVENT_BASE "Node"
41 #define SPA_TYPE_INFO_NODE_EVENT_BASE SPA_TYPE_INFO_NodeEvent ":"
42 
43 static const struct spa_type_info spa_type_node_event_id[] = {
48  { 0, 0, NULL, NULL },
49 };
50 
51 static const struct spa_type_info spa_type_node_event[] = {
53  { 0, 0, NULL, NULL },
54 };
55 
56 #define SPA_TYPE_INFO_NodeCommand SPA_TYPE_INFO_COMMAND_BASE "Node"
57 #define SPA_TYPE_INFO_NODE_COMMAND_BASE SPA_TYPE_INFO_NodeCommand ":"
58 
59 static const struct spa_type_info spa_type_node_command_id[] = {
71  { 0, 0, NULL, NULL },
72 };
73 
74 static const struct spa_type_info spa_type_node_command[] = {
76  { 0, 0, NULL, NULL },
77 };
78 
83 #ifdef __cplusplus
84 } /* extern "C" */
85 #endif
86 
87 #endif /* SPA_NODE_TYPES_H */
static const struct spa_type_info spa_type_node_command[]
Definition: node/type-info.h:85
#define SPA_TYPE_INFO_NODE_EVENT_BASE
Definition: node/type-info.h:50
static const struct spa_type_info spa_type_node_event[]
Definition: node/type-info.h:60
#define SPA_TYPE_INFO_IO_BASE
Definition: node/type-info.h:31
static const struct spa_type_info spa_type_node_command_id[]
Definition: node/type-info.h:70
static const struct spa_type_info spa_type_node_event_id[]
Definition: node/type-info.h:52
#define SPA_TYPE_INFO_NODE_COMMAND_BASE
Definition: node/type-info.h:68
static const struct spa_type_info spa_type_io[]
Definition: node/type-info.h:33
@ SPA_IO_Notify
area for notify messages, struct spa_io_sequence
Definition: io.h:43
@ SPA_IO_Memory
memory pointer, struct spa_io_memory
Definition: io.h:46
@ SPA_IO_Clock
area to update clock information, struct spa_io_clock
Definition: io.h:40
@ SPA_IO_Control
area for control messages, struct spa_io_sequence
Definition: io.h:42
@ SPA_IO_Latency
latency reporting, struct spa_io_latency
Definition: io.h:41
@ SPA_IO_Range
expected byte range, struct spa_io_range
Definition: io.h:39
@ SPA_IO_Invalid
Definition: io.h:37
@ SPA_IO_Position
position information in the graph, struct spa_io_position
Definition: io.h:44
@ SPA_IO_Buffers
area to exchange buffers, struct spa_io_buffers
Definition: io.h:38
@ SPA_IO_RateMatch
rate matching between nodes, struct spa_io_rate_match
Definition: io.h:45
@ SPA_NODE_EVENT_RequestProcess
Definition: node/event.h:29
@ SPA_NODE_EVENT_Error
Definition: node/event.h:26
@ SPA_NODE_EVENT_Buffering
Definition: node/event.h:27
@ SPA_NODE_EVENT_RequestRefresh
Definition: node/event.h:28
@ SPA_EVENT_NODE_START
Definition: node/event.h:40
@ SPA_NODE_COMMAND_RequestProcess
Sent to a driver when some other node emitted the RequestProcess event.
Definition: node/command.h:42
@ SPA_NODE_COMMAND_Disable
Definition: node/command.h:33
@ SPA_NODE_COMMAND_Flush
Definition: node/command.h:34
@ SPA_NODE_COMMAND_Enable
Definition: node/command.h:32
@ SPA_NODE_COMMAND_Suspend
suspend a node, this removes all configured formats and closes any devices
Definition: node/command.h:26
@ SPA_NODE_COMMAND_Pause
pause a node.
Definition: node/command.h:28
@ SPA_NODE_COMMAND_Drain
Definition: node/command.h:35
@ SPA_NODE_COMMAND_Marker
Definition: node/command.h:36
@ SPA_NODE_COMMAND_ParamBegin
begin a set of parameter enumerations or configuration that require the device to remain opened,...
Definition: node/command.h:37
@ SPA_NODE_COMMAND_Start
start a node, this makes it start emitting scheduling events
Definition: node/command.h:30
@ SPA_NODE_COMMAND_ParamEnd
end a transaction
Definition: node/command.h:41
@ SPA_TYPE_Int
Definition: spa/include/spa/utils/type.h:34
@ SPA_TYPE_Id
Definition: spa/include/spa/utils/type.h:33
@ SPA_TYPE_EVENT_Node
Definition: spa/include/spa/utils/type.h:63
@ SPA_TYPE_COMMAND_Node
Definition: spa/include/spa/utils/type.h:69
spa/node/io.h
spa/node/command.h
spa/node/event.h
spa/utils/type.h
Definition: spa/include/spa/utils/type.h:142