PipeWire  1.2.5
enum-types.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_ENUM_TYPES_H
6 #define SPA_ENUM_TYPES_H
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 #include <spa/utils/type.h>
13 #include <spa/pod/pod.h>
14 
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[] = {
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[] = {
38  { 0, 0, NULL, NULL }
39 };
40 
45 #ifdef __cplusplus
46 } /* extern "C" */
47 #endif
48 
49 #endif /* SPA_TYPE_INFO_H */
SPA_CHOICE_Range
@ SPA_CHOICE_Range
range: default, min, max
Definition: pod.h:148
spa_type_choice
static const struct spa_type_info spa_type_choice[]
Definition: enum-types.h:41
spa_type_info
Definition: type.h:143
SPA_CHOICE_Enum
@ SPA_CHOICE_Enum
list: default, alternative,...
Definition: pod.h:150
SPA_CHOICE_Flags
@ SPA_CHOICE_Flags
flags: default, possible flags,...
Definition: pod.h:151
SPA_TYPE_Int
@ SPA_TYPE_Int
Definition: type.h:34
SPA_CHOICE_None
@ SPA_CHOICE_None
no choice, first value is current
Definition: pod.h:147
SPA_TYPE_INFO_DIRECTION_BASE
#define SPA_TYPE_INFO_DIRECTION_BASE
Definition: enum-types.h:28
spa_type_direction
static const struct spa_type_info spa_type_direction[]
Definition: enum-types.h:30
SPA_CHOICE_Step
@ SPA_CHOICE_Step
range with step: default, min, max, step
Definition: pod.h:149
type.h
spa/utils/type.h
SPA_DIRECTION_OUTPUT
@ SPA_DIRECTION_OUTPUT
Definition: defs.h:108
SPA_DIRECTION_INPUT
@ SPA_DIRECTION_INPUT
Definition: defs.h:107
pod.h
spa/pod/pod.h
SPA_TYPE_INFO_CHOICE_BASE
#define SPA_TYPE_INFO_CHOICE_BASE
Definition: enum-types.h:39