Debian Codegraph @

modules/lsp-audio-pipewire-lib/include/lsp-plug.in/audio/pipewire/factory.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: 6 апр. 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_FACTORY_H_
23 #define LSP_PLUG_IN_AUDIO_PIPEWIRE_FACTORY_H_
24
25 #include <lsp-plug.in/audio/pipewire/version.h>
26
27 #include <lsp-plug.in/audio/iface/factory.h>
28
29 namespace lsp
30 {
31 namespace audio
32 {
33 namespace pipewire
34 {
35 // JACK audio backend factory
36 typedef struct LSP_HIDDEN_MODIFIER factory_t: public audio::factory_t
37 {
38 static const audio::backend_metadata_t sMetadata[];
39
40 explicit factory_t();
41 ~factory_t();
42
43 static const audio::backend_metadata_t *metadata(audio::factory_t *self, size_t id);
44 static audio::backend_t *create(audio::factory_t *self, size_t id);
45
46 } factory_t;
47 } /* namespace pipewire */
48 } /* namespace audio */
49 } /* namespace lsp */
50
51 #endif /* LSP_PLUG_IN_AUDIO_PIPEWIRE_FACTORY_H_ */