PipeWire  0.3.47
type.h
Go to the documentation of this file.
1 /* Simple Plugin API
2  *
3  * Copyright © 2018 Wim Taymans
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a
6  * copy of this software and associated documentation files (the "Software"),
7  * to deal in the Software without restriction, including without limitation
8  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9  * and/or sell copies of the Software, and to permit persons to whom the
10  * Software is furnished to do so, subject to the following conditions:
11  *
12  * The above copyright notice and this permission notice (including the next
13  * paragraph) shall be included in all copies or substantial portions of the
14  * Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  * DEALINGS IN THE SOFTWARE.
23  */
24 
25 #ifndef SPA_TYPE_H
26 #define SPA_TYPE_H
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 #include <spa/utils/defs.h>
33 
43 enum {
44  /* Basic types */
45  SPA_TYPE_START = 0x00000,
68  /* Pointers */
75  /* Events */
81  /* Commands */
87  /* Objects */
103  /* vendor extensions */
106  SPA_TYPE_VENDOR_Other = 0x7f000000,
107 };
108 
109 #define SPA_TYPE_INFO_BASE "Spa:"
110 
111 #define SPA_TYPE_INFO_Flags SPA_TYPE_INFO_BASE "Flags"
112 #define SPA_TYPE_INFO_FLAGS_BASE SPA_TYPE_INFO_Flags ":"
113 
114 #define SPA_TYPE_INFO_Enum SPA_TYPE_INFO_BASE "Enum"
115 #define SPA_TYPE_INFO_ENUM_BASE SPA_TYPE_INFO_Enum ":"
116 
117 #define SPA_TYPE_INFO_Pod SPA_TYPE_INFO_BASE "Pod"
118 #define SPA_TYPE_INFO_POD_BASE SPA_TYPE_INFO_Pod ":"
119 
120 #define SPA_TYPE_INFO_Struct SPA_TYPE_INFO_POD_BASE "Struct"
121 #define SPA_TYPE_INFO_STRUCT_BASE SPA_TYPE_INFO_Struct ":"
122 
123 #define SPA_TYPE_INFO_Object SPA_TYPE_INFO_POD_BASE "Object"
124 #define SPA_TYPE_INFO_OBJECT_BASE SPA_TYPE_INFO_Object ":"
126 #define SPA_TYPE_INFO_Pointer SPA_TYPE_INFO_BASE "Pointer"
127 #define SPA_TYPE_INFO_POINTER_BASE SPA_TYPE_INFO_Pointer ":"
129 #define SPA_TYPE_INFO_Interface SPA_TYPE_INFO_POINTER_BASE "Interface"
130 #define SPA_TYPE_INFO_INTERFACE_BASE SPA_TYPE_INFO_Interface ":"
131 
132 #define SPA_TYPE_INFO_Event SPA_TYPE_INFO_OBJECT_BASE "Event"
133 #define SPA_TYPE_INFO_EVENT_BASE SPA_TYPE_INFO_Event ":"
134 
135 #define SPA_TYPE_INFO_Command SPA_TYPE_INFO_OBJECT_BASE "Command"
136 #define SPA_TYPE_INFO_COMMAND_BASE SPA_TYPE_INFO_Command ":"
137 
139  uint32_t type;
140  uint32_t parent;
141  const char *name;
142  const struct spa_type_info *values;
143 };
144 
149 #ifdef __cplusplus
150 } /* extern "C" */
151 #endif
152 
153 #endif /* SPA_TYPE_H */
Definition: type.h:93
uint32_t type
Definition: type.h:163
Definition: type.h:87
Definition: type.h:50
not part of ABI
Definition: type.h:90
Definition: type.h:67
Definition: type.h:76
Definition: type.h:61
Definition: type.h:89
Definition: type.h:104
Definition: type.h:59
Definition: type.h:66
Definition: type.h:58
Definition: type.h:83
spa/utils/defs.h
Definition: type.h:99
not part of ABI
Definition: type.h:106
Definition: type.h:162
Definition: type.h:109
Definition: type.h:62
not part of ABI
Definition: type.h:84
Definition: type.h:103
Definition: type.h:102
Definition: type.h:63
Definition: type.h:52
Definition: type.h:95
not part of ABI
Definition: type.h:71
not part of ABI
Definition: type.h:78
Definition: type.h:97
uint32_t parent
Definition: type.h:164
Definition: type.h:56
Definition: type.h:75
Definition: type.h:77
Definition: type.h:57
Definition: type.h:96
Definition: type.h:98
Definition: type.h:70
Definition: type.h:53
Definition: type.h:65
Definition: type.h:111
Definition: type.h:54
Definition: type.h:88
Definition: type.h:74
Definition: type.h:94
Definition: type.h:100
const struct spa_type_info * values
Definition: type.h:166
Definition: type.h:101
Definition: type.h:64
Definition: type.h:82
Definition: type.h:69
Definition: type.h:55
Definition: type.h:51
Definition: type.h:68
Definition: type.h:81
Definition: type.h:60