PipeWire  0.1.7
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/node/io.h>
34 
35 #include <pipewire/map.h>
36 
37 #define PW_TYPE_BASE "PipeWire:"
38 
39 #define PW_TYPE__Object PW_TYPE_BASE "Object"
40 #define PW_TYPE_OBJECT_BASE PW_TYPE__Object ":"
41 
42 #define PW_TYPE__Interface PW_TYPE_BASE "Interface"
43 #define PW_TYPE_INTERFACE_BASE PW_TYPE__Interface ":"
44 
50 struct pw_type {
51  struct spa_type_map *map;
53  uint32_t core;
54  uint32_t registry;
55  uint32_t node;
56  uint32_t factory;
57  uint32_t link;
58  uint32_t client;
59  uint32_t module;
60 
61  uint32_t spa_log;
62  uint32_t spa_node;
63  uint32_t spa_clock;
64  uint32_t spa_monitor;
65  uint32_t spa_format;
66  uint32_t spa_props;
67 
68  struct spa_type_io io;
69  struct spa_type_param param;
70  struct spa_type_meta meta;
71  struct spa_type_data data;
72  struct spa_type_event_node event_node;
73  struct spa_type_command_node command_node;
74  struct spa_type_monitor monitor;
75  struct spa_type_param_buffers param_buffers;
76  struct spa_type_param_meta param_meta;
77 };
78 
79 void
80 pw_type_init(struct pw_type *type);
81 
82 #ifdef __cplusplus
83 }
84 #endif
85 
86 #endif /* __PIPEWIRE_TYPE_H__ */
uint32_t spa_props
Definition: type.h:66
uint32_t spa_monitor
Definition: type.h:64
uint32_t spa_log
Definition: type.h:61
uint32_t node
Definition: type.h:55
struct spa_type_map * map
the type mapper
Definition: type.h:51
uint32_t core
Definition: type.h:53
uint32_t spa_clock
Definition: type.h:63
uint32_t client
Definition: type.h:58
struct spa_type_param_buffers param_buffers
Definition: type.h:75
struct spa_type_io io
Definition: type.h:68
struct spa_type_command_node command_node
Definition: type.h:73
PipeWire type support struct.
Definition: type.h:50
struct spa_type_param_meta param_meta
Definition: type.h:76
uint32_t factory
Definition: type.h:56
uint32_t registry
Definition: type.h:54
struct spa_type_monitor monitor
Definition: type.h:74
void pw_type_init(struct pw_type *type)
Initializes the type system.
Definition: type.c:38
uint32_t link
Definition: type.h:57
uint32_t spa_node
Definition: type.h:62
uint32_t module
Definition: type.h:59
struct spa_type_meta meta
Definition: type.h:70
struct spa_type_event_node event_node
Definition: type.h:72
struct spa_type_data data
Definition: type.h:71
struct spa_type_param param
Definition: type.h:69
uint32_t spa_format
Definition: type.h:65