Debian Codegraph @

lib/wp/wp.h

raw
1 /* WirePlumber
2 *
3 * Copyright © 2019 Collabora Ltd.
4 * @author George Kiagiadakis <[email protected]>
5 *
6 * SPDX-License-Identifier: MIT
7 */
8
9 #ifndef __WIREPLUMBER_WP_H__
10 #define __WIREPLUMBER_WP_H__
11
12 #include "base-dirs.h"
13 #include "client.h"
14 #include "component-loader.h"
15 #include "conf.h"
16 #include "core.h"
17 #include "device.h"
18 #include "error.h"
19 #include "event-dispatcher.h"
20 #include "event-hook.h"
21 #include "global-proxy.h"
22 #include "iterator.h"
23 #include "json-utils.h"
24 #include "link.h"
25 #include "log.h"
26 #include "metadata.h"
27 #include "module.h"
28 #include "node.h"
29 #include "object-interest.h"
30 #include "object-manager.h"
31 #include "object.h"
32 #include "plugin.h"
33 #include "port.h"
34 #include "proc-utils.h"
35 #include "properties.h"
36 #include "proxy.h"
37 #include "proxy-interfaces.h"
38 #include "session-item.h"
39 #include "si-factory.h"
40 #include "si-interfaces.h"
41 #include "spa-json.h"
42 #include "spa-pod.h"
43 #include "spa-type.h"
44 #include "state.h"
45 #include "transition.h"
46 #include "wpenums.h"
47 #include "wpversion.h"
48 #include "factory.h"
49 #include "settings.h"
50
51 G_BEGIN_DECLS
52
53 /*!
54 * \ingroup wp
55 * Flags for wp_init()
56 */
57 typedef enum {
58 /*! Initialize PipeWire by calling pw_init() */
59 WP_INIT_PIPEWIRE = (1<<0),
60 /*! Initialize support for dynamic spa types.
61 * See wp_spa_dynamic_type_init() */
62 WP_INIT_SPA_TYPES = (1<<1),
63 /*! Override PipeWire's logging system with WirePlumber's one */
64 WP_INIT_SET_PW_LOG = (1<<2),
65 /*! Set wp_log_writer_default() as GLib's default log writer function */
66 WP_INIT_SET_GLIB_LOG = (1<<3),
67 /*! Initialize all of the above */
68 WP_INIT_ALL = 0xf,
69 } WpInitFlags;
70
71 WP_API
72 void wp_init (WpInitFlags flags);
73
74 WP_API
75 const char * wp_get_library_version (void);
76
77 WP_API
78 const char * wp_get_library_api_version (void);
79
80 G_END_DECLS
81
82 #endif