PipeWire 0.3.77
Loading...
Searching...
No Matches
utils/type-info.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_TYPE_INFO_H
6#define SPA_TYPE_INFO_H
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12#include <spa/utils/defs.h>
13
19#ifndef SPA_TYPE_ROOT
20#define SPA_TYPE_ROOT spa_types
21#endif
22
23static inline bool spa_type_is_a(const char *type, const char *parent)
24{
25 return type != NULL && parent != NULL && strncmp(type, parent, strlen(parent)) == 0;
27
28#include <spa/utils/type.h>
29#include <spa/utils/enum-types.h>
30
32#include <spa/node/type-info.h>
33#include <spa/param/type-info.h>
35
36static const struct spa_type_info spa_types[] = {
37 /* Basic types */
59
64
68
72
86
87 { 0, 0, NULL, NULL }
88};
89
94#ifdef __cplusplus
95} /* extern "C" */
96#endif
97
98#endif /* SPA_TYPE_INFO_H */
spa/control/type-info.h
spa/utils/defs.h
static const struct spa_type_info spa_type_device_event[]
Definition: monitor/type-info.h:41
static const struct spa_type_info spa_type_node_command[]
Definition: node/type-info.h:85
static const struct spa_type_info spa_type_node_event[]
Definition: node/type-info.h:60
static const struct spa_type_info spa_type_param_profile[]
Definition: profile-types.h:31
static const struct spa_type_info spa_type_prop_info[]
Definition: props-types.h:93
#define SPA_TYPE_INFO_PARAM_Meta
Definition: buffers-types.h:28
static const struct spa_type_info spa_type_param_io[]
Definition: buffers-types.h:47
static const struct spa_type_info spa_type_param_port_config[]
Definition: port-config-types.h:44
#define SPA_TYPE_INFO_PARAM_Profile
Definition: profile-types.h:27
static const struct spa_type_info spa_type_param_latency[]
Definition: latency-types.h:31
#define SPA_TYPE_INFO_PARAM_IO
Base for parameters that describe IO areas to exchange data, control and properties with a node.
Definition: buffers-types.h:43
static const struct spa_type_info spa_type_format[]
Definition: format-types.h:129
static const struct spa_type_info spa_type_param_meta[]
Definition: buffers-types.h:32
static const struct spa_type_info spa_type_props[]
Definition: props-types.h:32
static const struct spa_type_info spa_type_param_buffers[]
Definition: buffers-types.h:64
#define SPA_TYPE_INFO_PropInfo
Enum Property info.
Definition: props-types.h:89
#define SPA_TYPE_INFO_PARAM_Buffers
Definition: buffers-types.h:55
#define SPA_TYPE_INFO_PARAM_Latency
Definition: latency-types.h:27
#define SPA_TYPE_INFO_Format
Definition: format-types.h:29
#define SPA_TYPE_INFO_Profiler
Definition: profiler-types.h:26
static const struct spa_type_info spa_type_param_process_latency[]
Definition: latency-types.h:48
#define SPA_TYPE_INFO_PARAM_ProcessLatency
Definition: latency-types.h:44
#define SPA_TYPE_INFO_PARAM_Route
Definition: route-types.h:28
#define SPA_TYPE_INFO_Props
Props Param.
Definition: props-types.h:28
static const struct spa_type_info spa_type_profiler[]
Definition: profiler-types.h:30
static const struct spa_type_info spa_type_param_route[]
Definition: route-types.h:32
#define SPA_TYPE_INFO_PARAM_PortConfig
Definition: port-config-types.h:40
#define SPA_TYPE_INFO_EVENT_BASE
Definition: spa/include/spa/utils/type.h:135
#define SPA_TYPE_INFO_BASE
Definition: spa/include/spa/utils/type.h:95
static bool spa_type_is_a(const char *type, const char *parent)
Definition: utils/type-info.h:29
#define SPA_TYPE_INFO_POD_BASE
Definition: spa/include/spa/utils/type.h:110
#define SPA_TYPE_INFO_Struct
Definition: spa/include/spa/utils/type.h:113
#define SPA_TYPE_INFO_Event
Definition: spa/include/spa/utils/type.h:133
#define SPA_TYPE_INFO_Pointer
Definition: spa/include/spa/utils/type.h:123
#define SPA_TYPE_INFO_Pod
Definition: spa/include/spa/utils/type.h:108
#define SPA_TYPE_INFO_Command
Definition: spa/include/spa/utils/type.h:138
#define SPA_TYPE_INFO_POINTER_BASE
Definition: spa/include/spa/utils/type.h:125
#define SPA_TYPE_INFO_Object
Definition: spa/include/spa/utils/type.h:118
static const struct spa_type_info spa_types[]
Definition: utils/type-info.h:42
#define SPA_TYPE_INFO_COMMAND_BASE
Definition: spa/include/spa/utils/type.h:140
@ SPA_TYPE_POINTER_Buffer
Definition: spa/include/spa/utils/type.h:55
@ SPA_TYPE_OBJECT_ParamPortConfig
Definition: spa/include/spa/utils/type.h:81
@ SPA_TYPE_Int
Definition: spa/include/spa/utils/type.h:34
@ SPA_TYPE_OBJECT_ParamProfile
Definition: spa/include/spa/utils/type.h:80
@ SPA_TYPE_COMMAND_START
Definition: spa/include/spa/utils/type.h:67
@ SPA_TYPE_POINTER_START
Definition: spa/include/spa/utils/type.h:54
@ SPA_TYPE_Rectangle
Definition: spa/include/spa/utils/type.h:40
@ SPA_TYPE_Long
Definition: spa/include/spa/utils/type.h:35
@ SPA_TYPE_Bool
Definition: spa/include/spa/utils/type.h:32
@ SPA_TYPE_Bytes
Definition: spa/include/spa/utils/type.h:39
@ SPA_TYPE_EVENT_Device
Definition: spa/include/spa/utils/type.h:62
@ SPA_TYPE_Pod
Definition: spa/include/spa/utils/type.h:50
@ SPA_TYPE_OBJECT_PropInfo
Definition: spa/include/spa/utils/type.h:74
@ SPA_TYPE_OBJECT_START
Definition: spa/include/spa/utils/type.h:73
@ SPA_TYPE_Bitmap
Definition: spa/include/spa/utils/type.h:42
@ SPA_TYPE_Object
Definition: spa/include/spa/utils/type.h:45
@ SPA_TYPE_POINTER_Dict
Definition: spa/include/spa/utils/type.h:57
@ SPA_TYPE_Float
Definition: spa/include/spa/utils/type.h:36
@ SPA_TYPE_COMMAND_Device
Definition: spa/include/spa/utils/type.h:68
@ SPA_TYPE_OBJECT_ParamBuffers
Definition: spa/include/spa/utils/type.h:77
@ SPA_TYPE_Fraction
Definition: spa/include/spa/utils/type.h:41
@ SPA_TYPE_None
Definition: spa/include/spa/utils/type.h:31
@ SPA_TYPE_OBJECT_ParamIO
Definition: spa/include/spa/utils/type.h:79
@ SPA_TYPE_OBJECT_Props
Definition: spa/include/spa/utils/type.h:75
@ SPA_TYPE_Sequence
Definition: spa/include/spa/utils/type.h:46
@ SPA_TYPE_Double
Definition: spa/include/spa/utils/type.h:37
@ SPA_TYPE_OBJECT_Profiler
Definition: spa/include/spa/utils/type.h:83
@ SPA_TYPE_OBJECT_ParamLatency
Definition: spa/include/spa/utils/type.h:84
@ SPA_TYPE_Id
Definition: spa/include/spa/utils/type.h:33
@ SPA_TYPE_EVENT_START
Definition: spa/include/spa/utils/type.h:61
@ SPA_TYPE_Choice
Definition: spa/include/spa/utils/type.h:49
@ SPA_TYPE_EVENT_Node
Definition: spa/include/spa/utils/type.h:63
@ SPA_TYPE_Pointer
Definition: spa/include/spa/utils/type.h:47
@ SPA_TYPE_Array
Definition: spa/include/spa/utils/type.h:43
@ SPA_TYPE_String
Definition: spa/include/spa/utils/type.h:38
@ SPA_TYPE_POINTER_Meta
Definition: spa/include/spa/utils/type.h:56
@ SPA_TYPE_COMMAND_Node
Definition: spa/include/spa/utils/type.h:69
@ SPA_TYPE_OBJECT_ParamProcessLatency
Definition: spa/include/spa/utils/type.h:85
@ SPA_TYPE_Fd
Definition: spa/include/spa/utils/type.h:48
@ SPA_TYPE_OBJECT_ParamMeta
Definition: spa/include/spa/utils/type.h:78
@ SPA_TYPE_OBJECT_ParamRoute
Definition: spa/include/spa/utils/type.h:82
@ SPA_TYPE_Struct
Definition: spa/include/spa/utils/type.h:44
@ SPA_TYPE_OBJECT_Format
Definition: spa/include/spa/utils/type.h:76
@ SPA_TYPE_START
Definition: spa/include/spa/utils/type.h:30
spa/monitor/type-info.h
spa/node/type-info.h
spa/utils/type.h
Definition: spa/include/spa/utils/type.h:142