PipeWire: type.h Source File

PipeWire 0.2.6

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 int pw_type_get(struct pw_type *type, const char *id, void *data);
85
86 #ifdef __cplusplus
87 }
88 #endif
89
90 #endif /* __PIPEWIRE_TYPE_H__ */
pw_type_get
int pw_type_get(struct pw_type *type, const char *id, void *data)
Definition: type.c:79
pw_type::spa_props
uint32_t spa_props
Definition: type.h:68
pw_type::spa_monitor
uint32_t spa_monitor
Definition: type.h:66
pw_type::pw_type_init
int pw_type_init(struct pw_type *type)
Initializes the type system.
Definition: type.c:44
pw_type::spa_log
uint32_t spa_log
Definition: type.h:63
pw_type::node
uint32_t node
Definition: type.h:56
pw_type::map
struct spa_type_map * map
the type mapper
Definition: type.h:52
pw_type::core
uint32_t core
Definition: type.h:54
pw_type::spa_clock
uint32_t spa_clock
Definition: type.h:65
pw_type::client
uint32_t client
Definition: type.h:60
pw_type::param_buffers
struct spa_type_param_buffers param_buffers
Definition: type.h:77
pw_type::io
struct spa_type_io io
Definition: type.h:70
pw_type::command_node
struct spa_type_command_node command_node
Definition: type.h:75
pw_type
PipeWire type support struct.
Definition: type.h:51
pw_type::param_meta
struct spa_type_param_meta param_meta
Definition: type.h:78
pw_type::param_io
struct spa_type_param_io param_io
Definition: type.h:79
pw_type::factory
uint32_t factory
Definition: type.h:58
pw_type::registry
uint32_t registry
Definition: type.h:55
pw_type::monitor
struct spa_type_monitor monitor
Definition: type.h:76
pw_type::link
uint32_t link
Definition: type.h:59
pw_type::spa_node
uint32_t spa_node
Definition: type.h:64
pw_type::module
uint32_t module
Definition: type.h:61
pw_type::meta
struct spa_type_meta meta
Definition: type.h:72
pw_type::event_node
struct spa_type_event_node event_node
Definition: type.h:74
map.h
pw_type::data
struct spa_type_data data
Definition: type.h:73
pw_type::port
uint32_t port
Definition: type.h:57
pw_type::param
struct spa_type_param param
Definition: type.h:71
pw_type::spa_format
uint32_t spa_format
Definition: type.h:67