+ +
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_ENUM_TYPES_H |
| 6 | #define SPA_ENUM_TYPES_H |
| 7 | |
| 8 | #include <spa/utils/type.h> |
| 9 | #include <spa/pod/pod.h> |
| 10 | |
| 11 | #ifdef __cplusplus |
| 12 | extern "C" { |
| 13 | #endif |
| 14 | |
| 15 | /** |
| 16 | * \addtogroup spa_types |
| 17 | * \{ |
| 18 | */ |
| 19 | |
| 20 | #define SPA_TYPE_INFO_Direction SPA_TYPE_INFO_ENUM_BASE "Direction" |
| 21 | #define SPA_TYPE_INFO_DIRECTION_BASE SPA_TYPE_INFO_Direction ":" |
| 22 | |
| 23 | static const struct spa_type_info spa_type_direction[] = { |
| 24 | { SPA_DIRECTION_INPUT, SPA_TYPE_Int, SPA_TYPE_INFO_DIRECTION_BASE "Input", NULL }, |
| 25 | { SPA_DIRECTION_OUTPUT, SPA_TYPE_Int, SPA_TYPE_INFO_DIRECTION_BASE "Output", NULL }, |
| 26 | { 0, 0, NULL, NULL } |
| 27 | }; |
| 28 | |
| 29 | #define SPA_TYPE_INFO_Choice SPA_TYPE_INFO_ENUM_BASE "Choice" |
| 30 | #define SPA_TYPE_INFO_CHOICE_BASE SPA_TYPE_INFO_Choice ":" |
| 31 | |
| 32 | static const struct spa_type_info spa_type_choice[] = { |
| 33 | { SPA_CHOICE_None, SPA_TYPE_Int, SPA_TYPE_INFO_CHOICE_BASE "None", NULL }, |
| 34 | { SPA_CHOICE_Range, SPA_TYPE_Int, SPA_TYPE_INFO_CHOICE_BASE "Range", NULL }, |
| 35 | { SPA_CHOICE_Step, SPA_TYPE_Int, SPA_TYPE_INFO_CHOICE_BASE "Step", NULL }, |
| 36 | { SPA_CHOICE_Enum, SPA_TYPE_Int, SPA_TYPE_INFO_CHOICE_BASE "Enum", NULL }, |
| 37 | { SPA_CHOICE_Flags, SPA_TYPE_Int, SPA_TYPE_INFO_CHOICE_BASE "Flags", NULL }, |
| 38 | { 0, 0, NULL, NULL } |
| 39 | }; |
| 40 | |
| 41 | /** |
| 42 | * \} |
| 43 | */ |
| 44 | |
| 45 | #ifdef __cplusplus |
| 46 | } /* extern "C" */ |
| 47 | #endif |
| 48 | |
| 49 | #endif /* SPA_TYPE_INFO_H */ |