PipeWire 0.1.9

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
102 void
103 pw_init(int *argc, char **argv[]);
104
105 bool
106 pw_debug_is_category_enabled(const char *name);
107
108 const char *
109 pw_get_application_name(void);
110
111 const char *
112 pw_get_prgname(void);
113
114 const char *
115 pw_get_user_name(void);
116
117 const char *
118 pw_get_host_name(void);
119
120 char *
121 pw_get_client_name(void);
122
123 void
124 pw_fill_remote_properties(struct pw_core *core, struct pw_properties *properties);
125
126 void
127 pw_fill_stream_properties(struct pw_core *core, struct pw_properties *properties);
128
129 enum pw_direction
130 pw_direction_reverse(enum pw_direction direction);
131
132 void *
133 pw_get_support_interface(const char *type);
134
135 void *pw_get_spa_dbus(struct pw_loop *loop);
136
137 const struct spa_handle_factory *
138 pw_get_support_factory(const char *factory_name);
139
140 const struct spa_support *
141 pw_get_support(uint32_t *n_support);
142
143 #ifdef __cplusplus
144 }
145 #endif
146
147 #endif /* __PIPEWIRE_H__ */
pw_properties
A collection of key/value pairs.
Definition: properties.h:38
node.h
pw_pipewire::pw_get_host_name
const char * pw_get_host_name(void)
Get the host name.
Definition: pipewire.c:288
pw_get_support_factory
const struct spa_handle_factory * pw_get_support_factory(const char *factory_name)
Definition: pipewire.c:162
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:277
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:151
interfaces.h
pw_pipewire::pw_get_client_name
char * pw_get_client_name(void)
Get the client name.
Definition: pipewire.c:305
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:328
pw_pipewire::pw_get_prgname
const char * pw_get_prgname(void)
Get the program name.
Definition: pipewire.c:265
resource.h
factory.h
pw_get_support
const struct spa_support * pw_get_support(uint32_t *n_support)
Definition: pipewire.c:167
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:206
link.h
client.h
pw_pipewire::pw_get_application_name
const char * pw_get_application_name(void)
Get the application name.
Definition: pipewire.c:259
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:373
pw_get_spa_dbus
void * pw_get_spa_dbus(struct pw_loop *loop)
Definition: pipewire.c:173
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:244
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:368