Debian Codegraph @

modules/lsp-audio-pipewire-lib/include/lsp-plug.in/audio/pipewire/impl/pw-defs.h

raw
1 /*
2 * Copyright (C) 2026 Linux Studio Plugins Project <https://lsp-plug.in/>
3 * (C) 2026 Vladimir Sadovnikov <[email protected]>
4 *
5 * This file is part of lsp-audio-pipewire-lib
6 * Created on: 2 мая 2026 г.
7 *
8 * lsp-audio-pipewire-lib is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * any later version.
12 *
13 * lsp-audio-pipewire-lib is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with lsp-audio-pipewire-lib. If not, see <https://www.gnu.org/licenses/>.
20 */
21
22 #ifndef LSP_PLUG_IN_AUDIO_PIPEWIRE_IMPL_PW_DEFS_H_
23 #define LSP_PLUG_IN_AUDIO_PIPEWIRE_IMPL_PW_DEFS_H_
24
25 #include <lsp-plug.in/audio/pipewire/version.h>
26
27 #include <pw-headers/pipewire/version.h>
28 #include <pw-headers/pipewire/keys.h>
29 #include <pw-headers/spa/node/io.h>
30 #include <pw-headers/spa/pod/pod.h>
31
32 #ifndef SPA_KEY_THREAD_RESET_ON_FORK
33 #define SPA_KEY_THREAD_RESET_ON_FORK "thread.reset-on-fork" /* reset priority and policy for real-time threads on fork. Default true */
34 #endif /* SPA_KEY_THREAD_RESET_ON_FORK */
35
36 #ifndef PW_KEY_CONTROL_UMP
37 #define PW_KEY_CONTROL_UMP "control.ump"
38 #endif /* PW_KEY_CONTROL_UMP */
39
40 #ifndef PW_KEY_LOOP_CANCEL
41 #define PW_KEY_LOOP_CANCEL "loop.cancel"
42 #endif /* PW_KEY_LOOP_CANCEL */
43
44 #ifndef PW_KEY_DEFAULT_AUDIO_SINK
45 #define PW_KEY_DEFAULT_AUDIO_SINK "default.audio.sink"
46 #endif /* PW_KEY_DEFAULT_AUDIO_SINK */
47
48 #ifndef PW_KEY_DEFAULT_AUDIO_SOURCE
49 #define PW_KEY_DEFAULT_AUDIO_SOURCE "default.audio.source"
50 #endif /* PW_KEY_DEFAULT_AUDIO_SOURCE */
51
52 #ifndef PW_PORT_DIRECTION_IN
53 #define PW_PORT_DIRECTION_IN "in"
54 #endif /* PW_PORT_DIRECTION_IN */
55
56 #ifndef PW_PORT_DIRECTION_OUT
57 #define PW_PORT_DIRECTION_OUT "out"
58 #endif /* PW_PORT_DIRECTION_OUT */
59
60 #ifndef PW_KEY_NAME
61 #define PW_KEY_NAME "name"
62 #endif /* PW_KEY_NAME */
63
64 #ifndef PW_KEY_DEFAULT_CLOCK_QUANTUM
65 #define PW_KEY_DEFAULT_CLOCK_QUANTUM "default.clock.quantum"
66 #endif /* PW_KEY_DEFAULT_CLOCK_QUANTUM */
67
68 #ifndef PW_KEY_DEFAULT_CLOCK_QUANTUM_LIMIT
69 #define PW_KEY_DEFAULT_CLOCK_QUANTUM_LIMIT "default.clock.quantum-limit"
70 #endif /* PW_KEY_DEFAULT_CLOCK_QUANTUM_LIMIT */
71
72 #ifndef PW_KEY_DEFAULT_CLOCK_RATE
73 #define PW_KEY_DEFAULT_CLOCK_RATE "default.clock.rate"
74 #endif /* PW_KEY_DEFAULT_CLOCK_RATE */
75
76 #ifndef PW_KEY_CLIENT_RULES
77 #define PW_KEY_CLIENT_RULES "client.rules"
78 #endif /* PW_KEY_CLIENT_RULES */
79
80 #endif /* LSP_PLUG_IN_AUDIO_PIPEWIRE_IMPL_PW_DEFS_H_ */