PipeWire  0.2.0
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 *
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 
138 const struct spa_handle_factory *
139 pw_get_support_factory(const char *factory_name);
140 
141 const struct spa_support *
142 pw_get_support(uint32_t *n_support);
143 
144 #ifdef __cplusplus
145 }
146 #endif
147 
148 #endif /* __PIPEWIRE_H__ */
A collection of key/value pairs.
Definition: properties.h:38
const char * pw_get_host_name(void)
Get the host name.
Definition: pipewire.c:289
const struct spa_handle_factory * pw_get_support_factory(const char *factory_name)
Definition: pipewire.c:163
PipeWire loop object provides an implementation of the spa loop interfaces.
Definition: loop.h:37
the core PipeWire object
const char * pw_get_user_name(void)
Get the user name.
Definition: pipewire.c:278
void * pw_get_support_interface(const char *type)
Get a support interface.
Definition: pipewire.c:152
char * pw_get_client_name(void)
Get the client name.
Definition: pipewire.c:306
void pw_fill_remote_properties(struct pw_core *core, struct pw_properties *properties)
Fill remote properties.
Definition: pipewire.c:329
const char * pw_get_prgname(void)
Get the program name.
Definition: pipewire.c:266
const struct spa_support * pw_get_support(uint32_t *n_support)
Definition: pipewire.c:168
void pw_init(int *argc, char **argv[])
Initialize PipeWire.
Definition: pipewire.c:207
const char * pw_get_application_name(void)
Get the application name.
Definition: pipewire.c:260
enum pw_direction pw_direction_reverse(enum pw_direction direction)
Reverse the direction.
Definition: pipewire.c:374
void * pw_get_spa_dbus(struct pw_loop *loop)
Definition: pipewire.c:174
pw_direction
The direction of a port.
Definition: introspect.h:47
bool pw_debug_is_category_enabled(const char *name)
Check if a debug category is enabled.
Definition: pipewire.c:245
void pw_fill_stream_properties(struct pw_core *core, struct pw_properties *properties)
Fill stream properties.
Definition: pipewire.c:369