PipeWire  0.2.0
type.h
Go to the documentation of this file.
1 /* PipeWire
2  * Copyright (C) 2015 Wim Taymans <wim.taymans@gmail.com>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  */
19 
20 #ifndef __PIPEWIRE_TYPE_H__
21 #define __PIPEWIRE_TYPE_H__
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 #include <spa/support/type-map.h>
28 #include <spa/node/event.h>
29 #include <spa/node/command.h>
30 #include <spa/monitor/monitor.h>
31 #include <spa/param/buffers.h>
32 #include <spa/param/meta.h>
33 #include <spa/param/io.h>
34 #include <spa/node/io.h>
35 
36 #include <pipewire/map.h>
37 
38 #define PW_TYPE_BASE "PipeWire:"
39 
40 #define PW_TYPE__Object PW_TYPE_BASE "Object"
41 #define PW_TYPE_OBJECT_BASE PW_TYPE__Object ":"
42 
43 #define PW_TYPE__Interface PW_TYPE_BASE "Interface"
44 #define PW_TYPE_INTERFACE_BASE PW_TYPE__Interface ":"
45 
51 struct pw_type {
52  struct spa_type_map *map;
54  uint32_t core;
55  uint32_t registry;
56  uint32_t node;
57  uint32_t port;
58  uint32_t factory;
59  uint32_t link;
60  uint32_t client;
61  uint32_t module;
62 
63  uint32_t spa_log;
64  uint32_t spa_node;
65  uint32_t spa_clock;
66  uint32_t spa_monitor;
67  uint32_t spa_format;
68  uint32_t spa_props;
69 
70  struct spa_type_io io;
71  struct spa_type_param param;
72  struct spa_type_meta meta;
73  struct spa_type_data data;
74  struct spa_type_event_node event_node;
75  struct spa_type_command_node command_node;
76  struct spa_type_monitor monitor;
77  struct spa_type_param_buffers param_buffers;
78  struct spa_type_param_meta param_meta;
79  struct spa_type_param_io param_io;
80 };
81 
82 int pw_type_init(struct pw_type *type);
83 
84 #ifdef __cplusplus
85 }
86 #endif
87 
88 #endif /* __PIPEWIRE_TYPE_H__ */
uint32_t spa_props
Definition: type.h:68
uint32_t spa_monitor
Definition: type.h:66
int pw_type_init(struct pw_type *type)
Initializes the type system.
Definition: type.c:38
uint32_t spa_log
Definition: type.h:63
uint32_t node
Definition: type.h:56
struct spa_type_map * map
the type mapper
Definition: type.h:52
uint32_t core
Definition: type.h:54
uint32_t spa_clock
Definition: type.h:65
uint32_t client
Definition: type.h:60
struct spa_type_param_buffers param_buffers
Definition: type.h:77
struct spa_type_io io
Definition: type.h:70
struct spa_type_command_node command_node
Definition: type.h:75
PipeWire type support struct.
Definition: type.h:51
struct spa_type_param_meta param_meta
Definition: type.h:78
struct spa_type_param_io param_io
Definition: type.h:79
uint32_t factory
Definition: type.h:58
uint32_t registry
Definition: type.h:55
struct spa_type_monitor monitor
Definition: type.h:76
uint32_t link
Definition: type.h:59
uint32_t spa_node
Definition: type.h:64
uint32_t module
Definition: type.h:61
struct spa_type_meta meta
Definition: type.h:72
struct spa_type_event_node event_node
Definition: type.h:74
struct spa_type_data data
Definition: type.h:73
uint32_t port
Definition: type.h:57
struct spa_type_param param
Definition: type.h:71
uint32_t spa_format
Definition: type.h:67