PipeWire 0.3.65
pipewire.h
Go to the documentation of this file.
1/* PipeWire
2 *
3 * Copyright © 2018 Wim Taymans
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 * and/or sell copies of the Software, and to permit persons to whom the
10 * Software is furnished to do so, subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice (including the next
13 * paragraph) shall be included in all copies or substantial portions of the
14 * Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 * DEALINGS IN THE SOFTWARE.
23 */
24
25#ifndef PIPEWIRE_H
26#define PIPEWIRE_H
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32#include <spa/support/plugin.h>
33
34#include <pipewire/array.h>
35#include <pipewire/client.h>
36#include <pipewire/conf.h>
37#include <pipewire/context.h>
38#include <pipewire/device.h>
39#include <pipewire/buffers.h>
40#include <pipewire/core.h>
41#include <pipewire/factory.h>
42#include <pipewire/keys.h>
43#include <pipewire/log.h>
44#include <pipewire/loop.h>
45#include <pipewire/link.h>
46#include <pipewire/main-loop.h>
47#include <pipewire/map.h>
48#include <pipewire/mem.h>
49#include <pipewire/module.h>
50#include <pipewire/node.h>
51#include <pipewire/properties.h>
52#include <pipewire/proxy.h>
53#include <pipewire/permission.h>
54#include <pipewire/protocol.h>
55#include <pipewire/port.h>
56#include <pipewire/stream.h>
57#include <pipewire/filter.h>
59#include <pipewire/data-loop.h>
60#include <pipewire/type.h>
61#include <pipewire/utils.h>
62#include <pipewire/version.h>
63
72void
73pw_init(int *argc, char **argv[]);
74
75void pw_deinit(void);
76
77bool
78pw_debug_is_category_enabled(const char *name);
79
80const char *
82
83const char *
84pw_get_prgname(void);
85
86const char *
88
89const char *
91
92const char *
94
95bool pw_in_valgrind(void);
96
97bool pw_check_option(const char *option, const char *value);
98
99enum pw_direction
100pw_direction_reverse(enum pw_direction direction);
101
102int pw_set_domain(const char *domain);
103const char *pw_get_domain(void);
104
105uint32_t pw_get_support(struct spa_support *support, uint32_t max_support);
106
107struct spa_handle *pw_load_spa_handle(const char *lib,
108 const char *factory_name,
109 const struct spa_dict *info,
110 uint32_t n_support,
111 const struct spa_support support[]);
112
113int pw_unload_spa_handle(struct spa_handle *handle);
114
119#ifdef __cplusplus
120}
121#endif
122
123#endif /* PIPEWIRE_H */
pipewire/array.h
pipewire/client.h
pipewire/conf.h
pipewire/core.h
pipewire/data-loop.h
pipewire/factory.h
void pw_init(int *argc, char **argv[])
Initialize PipeWire.
Definition: pipewire.c:578
uint32_t pw_get_support(struct spa_support *support, uint32_t max_support)
Definition: pipewire.c:219
const char * pw_get_prgname(void)
Get the program name.
Definition: pipewire.c:773
bool pw_in_valgrind(void)
Definition: pipewire.c:807
const char * pw_get_domain(void)
Definition: pipewire.c:392
enum pw_direction pw_direction_reverse(enum pw_direction direction)
Reverse the direction.
Definition: pipewire.c:846
bool pw_check_option(const char *option, const char *value)
Definition: pipewire.c:813
const char * pw_get_host_name(void)
Get the host name.
Definition: pipewire.c:795
const char * pw_get_application_name(void)
Get the application name.
Definition: pipewire.c:730
int pw_set_domain(const char *domain)
Definition: pipewire.c:380
struct spa_handle * pw_load_spa_handle(const char *lib, const char *factory_name, const struct spa_dict *info, uint32_t n_support, const struct spa_support support[])
Definition: pipewire.c:307
bool pw_debug_is_category_enabled(const char *name)
Check if a debug category is enabled.
Definition: pipewire.c:721
const char * pw_get_user_name(void)
Get the user name.
Definition: pipewire.c:783
int pw_unload_spa_handle(struct spa_handle *handle)
Definition: pipewire.c:334
void pw_deinit(void)
Deinitialize PipeWire.
Definition: pipewire.c:686
const char * pw_get_client_name(void)
Get the client name.
Definition: pipewire.c:832
#define pw_direction
The direction of a port.
Definition: port.h:63
pipewire/main-loop.h
pipewire/map.h
pipewire/module.h
pipewire/permission.h
spa/support/plugin.h
pipewire/port.h
pipewire/properties.h
pipewire/protocol.h
pipewire/proxy.h
pipewire/buffers.h
pipewire/context.h
pipewire/device.h
pipewire/filter.h
pipewire/keys.h
pipewire/log.h
pipewire/loop.h
pipewire/mem.h
pipewire/node.h
pipewire/type.h
pipewire/stream.h
Definition: utils/dict.h:59
Definition: plugin.h:50
Extra supporting infrastructure passed to the init() function of a factory.
Definition: plugin.h:96
pipewire/thread-loop.h