PipeWire 1.6.8

Loading...
Searching...
No Matches
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#include <spa/utils/type.h>
9
10#include <spa/node/command.h>
11#include <spa/node/event.h>
12#include <spa/node/io.h>
13
14#ifdef __cplusplus
15 extern "C" {
16#endif
17
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[] = {
27 { SPA_IO_Invalid, SPA_TYPE_Int, SPA_TYPE_INFO_IO_BASE "Invalid", NULL },
28 { SPA_IO_Buffers, SPA_TYPE_Int, SPA_TYPE_INFO_IO_BASE "Buffers", NULL },
29 { SPA_IO_Range, SPA_TYPE_Int, SPA_TYPE_INFO_IO_BASE "Range", NULL },
30 { SPA_IO_Clock, SPA_TYPE_Int, SPA_TYPE_INFO_IO_BASE "Clock", NULL },
31 { SPA_IO_Latency, SPA_TYPE_Int, SPA_TYPE_INFO_IO_BASE "Latency", NULL },
32 { SPA_IO_Control, SPA_TYPE_Int, SPA_TYPE_INFO_IO_BASE "Control", NULL },
33 { SPA_IO_Notify, SPA_TYPE_Int, SPA_TYPE_INFO_IO_BASE "Notify", NULL },
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 },
36 { SPA_IO_Memory, SPA_TYPE_Int, SPA_TYPE_INFO_IO_BASE "Memory", 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[] = {
45 { SPA_NODE_EVENT_Error, SPA_TYPE_EVENT_Node, SPA_TYPE_INFO_NODE_EVENT_BASE "Error", NULL },
46 { SPA_NODE_EVENT_Buffering, SPA_TYPE_EVENT_Node, SPA_TYPE_INFO_NODE_EVENT_BASE "Buffering", NULL },
47 { SPA_NODE_EVENT_RequestRefresh, SPA_TYPE_EVENT_Node, SPA_TYPE_INFO_NODE_EVENT_BASE "RequestRefresh", NULL },
48 { SPA_NODE_EVENT_RequestProcess, SPA_TYPE_EVENT_Node, SPA_TYPE_INFO_NODE_EVENT_BASE "RequestProcess", NULL },
49 { SPA_NODE_EVENT_User, SPA_TYPE_EVENT_Node, SPA_TYPE_INFO_NODE_EVENT_BASE "User", NULL },
50 { 0, 0, NULL, NULL },
51};
52
53 static const struct spa_type_info spa_type_node_event[] = {
54 { SPA_EVENT_NODE_START, SPA_TYPE_Id, SPA_TYPE_INFO_NODE_EVENT_BASE, spa_type_node_event_id },
55
56 { SPA_EVENT_NODE_extra, SPA_TYPE_String, SPA_TYPE_INFO_NODE_EVENT_BASE "extra", NULL },
57
58 { 0, 0, NULL, NULL },
59};
60
61#define SPA_TYPE_INFO_NodeCommand SPA_TYPE_INFO_COMMAND_BASE "Node"
62#define SPA_TYPE_INFO_NODE_COMMAND_BASE SPA_TYPE_INFO_NodeCommand ":"
63
64 static const struct spa_type_info spa_type_node_command_id[] = {
65 { SPA_NODE_COMMAND_Suspend, SPA_TYPE_COMMAND_Node, SPA_TYPE_INFO_NODE_COMMAND_BASE "Suspend", NULL },
66 { SPA_NODE_COMMAND_Pause, SPA_TYPE_COMMAND_Node, SPA_TYPE_INFO_NODE_COMMAND_BASE "Pause", NULL },
67 { SPA_NODE_COMMAND_Start, SPA_TYPE_COMMAND_Node, SPA_TYPE_INFO_NODE_COMMAND_BASE "Start", NULL },
68 { SPA_NODE_COMMAND_Enable, SPA_TYPE_COMMAND_Node, SPA_TYPE_INFO_NODE_COMMAND_BASE "Enable", NULL },
69 { SPA_NODE_COMMAND_Disable, SPA_TYPE_COMMAND_Node, SPA_TYPE_INFO_NODE_COMMAND_BASE "Disable", NULL },
70 { SPA_NODE_COMMAND_Flush, SPA_TYPE_COMMAND_Node, SPA_TYPE_INFO_NODE_COMMAND_BASE "Flush", NULL },
71 { SPA_NODE_COMMAND_Drain, SPA_TYPE_COMMAND_Node, SPA_TYPE_INFO_NODE_COMMAND_BASE "Drain", NULL },
72 { SPA_NODE_COMMAND_Marker, SPA_TYPE_COMMAND_Node, SPA_TYPE_INFO_NODE_COMMAND_BASE "Marker", NULL },
73 { SPA_NODE_COMMAND_ParamBegin, SPA_TYPE_COMMAND_Node, SPA_TYPE_INFO_NODE_COMMAND_BASE "ParamBegin", NULL },
74 { SPA_NODE_COMMAND_ParamEnd, SPA_TYPE_COMMAND_Node, SPA_TYPE_INFO_NODE_COMMAND_BASE "ParamEnd", NULL },
75 { SPA_NODE_COMMAND_RequestProcess, SPA_TYPE_COMMAND_Node, SPA_TYPE_INFO_NODE_COMMAND_BASE "RequestProcess", NULL },
76 { SPA_NODE_COMMAND_User, SPA_TYPE_COMMAND_Node, SPA_TYPE_INFO_NODE_COMMAND_BASE "User", NULL },
77 { 0, 0, NULL, NULL },
78};
79
80 static const struct spa_type_info spa_type_node_command[] = {
81 { SPA_COMMAND_NODE_START, SPA_TYPE_Id, SPA_TYPE_INFO_NODE_COMMAND_BASE, spa_type_node_command_id },
82
83 { SPA_COMMAND_NODE_extra, SPA_TYPE_String, SPA_TYPE_INFO_NODE_COMMAND_BASE "extra", NULL },
84
85 { 0, 0, NULL, NULL },
86};
87
90
91
92#ifdef __cplusplus
93} /* extern "C" */
94#endif
95
96#endif /* SPA_NODE_TYPES_H */
spa_type_node_command
static const struct spa_type_info spa_type_node_command[]
Definition type-info.h:91
SPA_TYPE_INFO_NODE_EVENT_BASE
#define SPA_TYPE_INFO_NODE_EVENT_BASE
Definition type-info.h:51
spa_type_node_event
static const struct spa_type_info spa_type_node_event[]
Definition type-info.h:62
SPA_TYPE_INFO_IO_BASE
#define SPA_TYPE_INFO_IO_BASE
Definition type-info.h:31
spa_type_node_command_id
static const struct spa_type_info spa_type_node_command_id[]
Definition type-info.h:75
spa_type_node_event_id
static const struct spa_type_info spa_type_node_event_id[]
Definition type-info.h:53
SPA_TYPE_INFO_NODE_COMMAND_BASE
#define SPA_TYPE_INFO_NODE_COMMAND_BASE
Definition type-info.h:73
spa_type_io
static const struct spa_type_info spa_type_io[]
Definition type-info.h:33
SPA_IO_AsyncBuffers
@ SPA_IO_AsyncBuffers
async area to exchange buffers, struct spa_io_async_buffers
Definition io.h:48
SPA_IO_Notify
@ SPA_IO_Notify
area for notify messages, struct spa_io_sequence
Definition io.h:44
SPA_IO_Memory
@ SPA_IO_Memory
memory pointer, struct spa_io_memory (currently not used in PipeWire)
Definition io.h:47
SPA_IO_Clock
@ SPA_IO_Clock
area to update clock information, struct spa_io_clock
Definition io.h:40
SPA_IO_Control
@ SPA_IO_Control
area for control messages, struct spa_io_sequence
Definition io.h:43
SPA_IO_Latency
@ SPA_IO_Latency
latency reporting, struct spa_io_latency (currently not used in PipeWire).
Definition io.h:41
SPA_IO_Range
@ SPA_IO_Range
expected byte range, struct spa_io_range (currently not used in PipeWire)
Definition io.h:39
SPA_IO_Invalid
@ SPA_IO_Invalid
Definition io.h:37
SPA_IO_Position
@ SPA_IO_Position
position information in the graph, struct spa_io_position
Definition io.h:45
SPA_IO_Buffers
@ SPA_IO_Buffers
area to exchange buffers, struct spa_io_buffers
Definition io.h:38
SPA_IO_RateMatch
@ SPA_IO_RateMatch
rate matching between nodes, struct spa_io_rate_match
Definition io.h:46
SPA_COMMAND_NODE_START
@ SPA_COMMAND_NODE_START
Definition command.h:55
SPA_COMMAND_NODE_extra
@ SPA_COMMAND_NODE_extra
Definition command.h:58
SPA_NODE_EVENT_User
@ SPA_NODE_EVENT_User
Definition event.h:31
SPA_NODE_EVENT_RequestProcess
@ SPA_NODE_EVENT_RequestProcess
Definition event.h:29
SPA_NODE_EVENT_Error
@ SPA_NODE_EVENT_Error
Definition event.h:26
SPA_NODE_EVENT_Buffering
@ SPA_NODE_EVENT_Buffering
Definition event.h:27
SPA_NODE_EVENT_RequestRefresh
@ SPA_NODE_EVENT_RequestRefresh
Definition event.h:28
SPA_EVENT_NODE_extra
@ SPA_EVENT_NODE_extra
Definition event.h:44
SPA_EVENT_NODE_START
@ SPA_EVENT_NODE_START
Definition event.h:41
SPA_NODE_COMMAND_RequestProcess
@ SPA_NODE_COMMAND_RequestProcess
Sent to a driver when some other node emitted the RequestProcess event.
Definition command.h:42
SPA_NODE_COMMAND_Disable
@ SPA_NODE_COMMAND_Disable
Definition command.h:33
SPA_NODE_COMMAND_Flush
@ SPA_NODE_COMMAND_Flush
Definition command.h:34
SPA_NODE_COMMAND_Enable
@ SPA_NODE_COMMAND_Enable
Definition command.h:32
SPA_NODE_COMMAND_Suspend
@ SPA_NODE_COMMAND_Suspend
suspend a node, this removes all configured formats and closes any devices
Definition command.h:26
SPA_NODE_COMMAND_Pause
@ SPA_NODE_COMMAND_Pause
pause a node.
Definition command.h:28
SPA_NODE_COMMAND_Drain
@ SPA_NODE_COMMAND_Drain
Definition command.h:35
SPA_NODE_COMMAND_Marker
@ SPA_NODE_COMMAND_Marker
Definition command.h:36
SPA_NODE_COMMAND_User
@ SPA_NODE_COMMAND_User
User defined command.
Definition command.h:44
SPA_NODE_COMMAND_ParamBegin
@ SPA_NODE_COMMAND_ParamBegin
begin a set of parameter enumerations or configuration that require the device to remain opened,...
Definition command.h:37
SPA_NODE_COMMAND_Start
@ SPA_NODE_COMMAND_Start
start a node, this makes it start emitting scheduling events
Definition command.h:30
SPA_NODE_COMMAND_ParamEnd
@ SPA_NODE_COMMAND_ParamEnd
end a transaction
Definition command.h:41
SPA_TYPE_Int
@ SPA_TYPE_Int
Definition type.h:45
SPA_TYPE_Id
@ SPA_TYPE_Id
Definition type.h:44
SPA_TYPE_EVENT_Node
@ SPA_TYPE_EVENT_Node
Definition type.h:74
SPA_TYPE_String
@ SPA_TYPE_String
Definition type.h:49
SPA_TYPE_COMMAND_Node
@ SPA_TYPE_COMMAND_Node
Definition type.h:80
io.h
spa/node/io.h
command.h
spa/node/command.h
event.h
spa/node/event.h
type.h
spa/utils/type.h
spa_type_info
Definition type.h:156