+ +
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 © 2023 Wim Taymans */ |
| 3 | /* SPDX-License-Identifier: MIT */ |
| 4 | |
| 5 | #ifndef SPA_PARAM_TAG_H |
| 6 | #define SPA_PARAM_TAG_H |
| 7 | |
| 8 | #include <spa/param/param.h> |
| 9 | |
| 10 | #ifdef __cplusplus |
| 11 | extern "C" { |
| 12 | #endif |
| 13 | |
| 14 | /** |
| 15 | * \addtogroup spa_param |
| 16 | * \{ |
| 17 | */ |
| 18 | |
| 19 | /** properties for SPA_TYPE_OBJECT_ParamTag */ |
| 20 | enum spa_param_tag { |
| 21 | SPA_PARAM_TAG_START, |
| 22 | SPA_PARAM_TAG_direction, /**< direction, input/output (Id enum spa_direction) */ |
| 23 | SPA_PARAM_TAG_info, /**< Struct( |
| 24 | * Int: n_items |
| 25 | * (String: key |
| 26 | * String: value)* |
| 27 | * ) */ |
| 28 | }; |
| 29 | |
| 30 | /** helper structure for managing tag objects */ |
| 31 | struct spa_tag_info { |
| 32 | enum spa_direction direction; |
| 33 | const struct spa_pod *info; |
| 34 | }; |
| 35 | |
| 36 | #define SPA_TAG_INFO(dir,...) ((struct spa_tag_info) { .direction = (dir), ## __VA_ARGS__ }) |
| 37 | |
| 38 | /** |
| 39 | * \} |
| 40 | */ |
| 41 | |
| 42 | #ifdef __cplusplus |
| 43 | } /* extern "C" */ |
| 44 | #endif |
| 45 | |
| 46 | #endif /* SPA_PARAM_TAG_H */ |