+ +
2da5fe7 OpenAVX v0.2.0 - High-performance open-standard IP audio and video transport suite
saifmukhtar · 2026-11-24
main
| 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 | |
| 14 | /** |
| 15 | * \addtogroup spa_node |
| 16 | * \{ |
| 17 | */ |
| 18 | |
| 19 | /* object id of SPA_TYPE_COMMAND_Node */ |
| 20 | enum spa_node_command { |
| 21 | SPA_NODE_COMMAND_Suspend, /**< suspend a node, this removes all configured |
| 22 | * formats and closes any devices */ |
| 23 | SPA_NODE_COMMAND_Pause, /**< pause a node. this makes it stop emitting |
| 24 | * scheduling events */ |
| 25 | SPA_NODE_COMMAND_Start, /**< start a node, this makes it start emitting |
| 26 | * scheduling events */ |
| 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, /**< begin a set of parameter enumerations or |
| 33 | * configuration that require the device to |
| 34 | * remain opened, like query formats and then |
| 35 | * set a format */ |
| 36 | SPA_NODE_COMMAND_ParamEnd, /**< end a transaction */ |
| 37 | SPA_NODE_COMMAND_RequestProcess,/**< Sent to a driver when some other node emitted |
| 38 | * the RequestProcess event. */ |
| 39 | SPA_NODE_COMMAND_User, /**< User defined command */ |
| 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, /** extra info (String) */ |
| 52 | |
| 53 | SPA_COMMAND_NODE_START_CUSTOM = 0x1000000, |
| 54 | }; |
| 55 | |
| 56 | |
| 57 | /** |
| 58 | * \} |
| 59 | */ |
| 60 | |
| 61 | #ifdef __cplusplus |
| 62 | } /* extern "C" */ |
| 63 | #endif |
| 64 | |
| 65 | #endif /* SPA_COMMAND_NODE_H */ |