PipeWire: pipewire.h Source File

PipeWire 0.2.5

pipewire.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_H__
21 #define __PIPEWIRE_H__
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 #include <spa/support/plugin.h>
28
29 #include <pipewire/client.h>
30 #include <pipewire/core.h>
31 #include <pipewire/interfaces.h>
32 #include <pipewire/introspect.h>
33 #include <pipewire/link.h>
34 #include <pipewire/log.h>
35 #include <pipewire/loop.h>
36 #include <pipewire/main-loop.h>
37 #include <pipewire/module.h>
38 #include <pipewire/factory.h>
39 #include <pipewire/node.h>
40 #include <pipewire/port.h>
41 #include <pipewire/properties.h>
42 #include <pipewire/proxy.h>
43 #include <pipewire/remote.h>
44 #include <pipewire/resource.h>
45 #include <pipewire/stream.h>
46 #include <pipewire/thread-loop.h>
47 #include <pipewire/type.h>
48 #include <pipewire/utils.h>
49 #include <pipewire/version.h>
50
103 void
104 pw_init(int *argc, char **argv[]);
105
106 bool
107 pw_debug_is_category_enabled(const char *name);
108
109 const char *
110 pw_get_application_name(void);
111
112 const char *
113 pw_get_prgname(void);
114
115 const char *
116 pw_get_user_name(void);
117
118 const char *
119 pw_get_host_name(void);
120
121 char *
122 pw_get_client_name(void);
123
124 void
125 pw_fill_remote_properties(struct pw_core *core, struct pw_properties *properties);
126
127 void
128 pw_fill_stream_properties(struct pw_core *core, struct pw_properties *properties);
129
130 enum pw_direction
131 pw_direction_reverse(enum pw_direction direction);
132
133 void *
134 pw_get_support_interface(const char *type);
135
136 void *pw_get_spa_dbus(struct pw_loop *loop);
137 int pw_release_spa_dbus(void *dbus);
138
139 const struct spa_handle_factory *
140 pw_get_support_factory(const char *factory_name);
141
142 const struct spa_support *
143 pw_get_support(uint32_t *n_support);
144
145 #ifdef __cplusplus
146 }
147 #endif
148
149 #endif /* __PIPEWIRE_H__ */
pw_properties
A collection of key/value pairs.
Definition: properties.h:38
node.h
pw_release_spa_dbus
int pw_release_spa_dbus(void *dbus)
Definition: pipewire.c:231
pw_pipewire::pw_get_host_name
const char * pw_get_host_name(void)
Get the host name.
Definition: pipewire.c:342
pw_get_support_factory
const struct spa_handle_factory * pw_get_support_factory(const char *factory_name)
Definition: pipewire.c:187
introspect.h
pw_loop
PipeWire loop object provides an implementation of the spa loop interfaces.
Definition: loop.h:37
core.h
pw_core
the core PipeWire object
pw_pipewire::pw_get_user_name
const char * pw_get_user_name(void)
Get the user name.
Definition: pipewire.c:331
stream.h
utils.h
loop.h
pw_get_support_interface
void * pw_get_support_interface(const char *type)
Get a support interface.
Definition: pipewire.c:176
interfaces.h
pw_pipewire::pw_get_client_name
char * pw_get_client_name(void)
Get the client name.
Definition: pipewire.c:359
thread-loop.h
pw_pipewire::pw_fill_remote_properties
void pw_fill_remote_properties(struct pw_core *core, struct pw_properties *properties)
Fill remote properties.
Definition: pipewire.c:382
pw_pipewire::pw_get_prgname
const char * pw_get_prgname(void)
Get the program name.
Definition: pipewire.c:319
resource.h
factory.h
pw_get_support
const struct spa_support * pw_get_support(uint32_t *n_support)
Definition: pipewire.c:192
properties.h
proxy.h
port.h
main-loop.h
remote.h
pw_pipewire::pw_init
void pw_init(int *argc, char **argv[])
Initialize PipeWire.
Definition: pipewire.c:257
link.h
client.h
pw_pipewire::pw_get_application_name
const char * pw_get_application_name(void)
Get the application name.
Definition: pipewire.c:313
log.h
module.h
pw_pipewire::pw_direction_reverse
enum pw_direction pw_direction_reverse(enum pw_direction direction)
Reverse the direction.
Definition: pipewire.c:427
pw_get_spa_dbus
void * pw_get_spa_dbus(struct pw_loop *loop)
Definition: pipewire.c:198
pw_direction
pw_direction
The direction of a port.
Definition: introspect.h:47
type.h
pw_pipewire::pw_debug_is_category_enabled
bool pw_debug_is_category_enabled(const char *name)
Check if a debug category is enabled.
Definition: pipewire.c:298
pw_pipewire::pw_fill_stream_properties
void pw_fill_stream_properties(struct pw_core *core, struct pw_properties *properties)
Fill stream properties.
Definition: pipewire.c:422