PipeWire  0.1.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/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 *
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 const struct spa_handle_factory *
136 pw_get_support_factory(const char *factory_name);
137 
138 const struct spa_support *
139 pw_get_support(uint32_t *n_support);
140 
141 #ifdef __cplusplus
142 }
143 #endif
144 #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:262
const struct spa_handle_factory * pw_get_support_factory(const char *factory_name)
Definition: pipewire.c:158
the core PipeWire object
const char * pw_get_user_name(void)
Get the user name.
Definition: pipewire.c:251
void * pw_get_support_interface(const char *type)
Get a support interface.
Definition: pipewire.c:147
char * pw_get_client_name(void)
Get the client name.
Definition: pipewire.c:279
void pw_fill_remote_properties(struct pw_core *core, struct pw_properties *properties)
Fill remote properties.
Definition: pipewire.c:302
const char * pw_get_prgname(void)
Get the program name.
Definition: pipewire.c:239
const struct spa_support * pw_get_support(uint32_t *n_support)
Definition: pipewire.c:176
void pw_init(int *argc, char **argv[])
Initialize PipeWire.
Definition: pipewire.c:194
const char * pw_get_application_name(void)
Get the application name.
Definition: pipewire.c:233
enum pw_direction pw_direction_reverse(enum pw_direction direction)
Reverse the direction.
Definition: pipewire.c:347
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:218
void pw_fill_stream_properties(struct pw_core *core, struct pw_properties *properties)
Fill stream properties.
Definition: pipewire.c:342