PipeWire 1.6.5

Loading...
Searching...
No Matches
command.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_COMMAND_NODE_H
6#define SPA_COMMAND_NODE_H
7
8#include <spa/pod/command.h>
9
10#ifdef __cplusplus
11 extern "C" {
12#endif
13
18
19/* object id of SPA_TYPE_COMMAND_Node */
20 enum spa_node_command {
21 SPA_NODE_COMMAND_Suspend,
23 SPA_NODE_COMMAND_Pause,
25 SPA_NODE_COMMAND_Start,
27 SPA_NODE_COMMAND_Enable,
28 SPA_NODE_COMMAND_Disable,
29 SPA_NODE_COMMAND_Flush,
30 SPA_NODE_COMMAND_Drain,
31 SPA_NODE_COMMAND_Marker,
32 SPA_NODE_COMMAND_ParamBegin,
36 SPA_NODE_COMMAND_ParamEnd,
37 SPA_NODE_COMMAND_RequestProcess,
39 SPA_NODE_COMMAND_User,
40};
41
42#define SPA_NODE_COMMAND_ID(cmd) SPA_COMMAND_ID(cmd, SPA_TYPE_COMMAND_Node)
43#define SPA_NODE_COMMAND_INIT(id) SPA_COMMAND_INIT(SPA_TYPE_COMMAND_Node, id)
44
45
46/* properties for SPA_TYPE_COMMAND_Node */
47 enum spa_command_node {
48 SPA_COMMAND_NODE_START,
49
50 SPA_COMMAND_NODE_START_User = 0x1000,
51 SPA_COMMAND_NODE_extra,
52
53 SPA_COMMAND_NODE_START_CUSTOM = 0x1000000,
54};
55
56
60
61#ifdef __cplusplus
62} /* extern "C" */
63#endif
64
65#endif /* SPA_COMMAND_NODE_H */
spa_command_node
spa_command_node
Definition command.h:54
spa_node_command
spa_node_command
Definition command.h:25
SPA_COMMAND_NODE_START_User
@ SPA_COMMAND_NODE_START_User
Definition command.h:57
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_COMMAND_NODE_START_CUSTOM
@ SPA_COMMAND_NODE_START_CUSTOM
extra info (String)
Definition command.h:60
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
command.h
spa/pod/command.h