Debian Codegraph @

lib/wp/device.h

raw
1 /* WirePlumber
2 *
3 * Copyright © 2019 Collabora Ltd.
4 * @author Julian Bouzas <[email protected]>
5 *
6 * SPDX-License-Identifier: MIT
7 */
8
9 #ifndef __WIREPLUMBER_DEVICE_H__
10 #define __WIREPLUMBER_DEVICE_H__
11
12 #include "global-proxy.h"
13
14 G_BEGIN_DECLS
15
16 /* WpDevice */
17
18 /*!
19 * \brief The WpDevice GType
20 * \ingroup wpdevice
21 */
22 #define WP_TYPE_DEVICE (wp_device_get_type ())
23 WP_API
24 G_DECLARE_FINAL_TYPE (WpDevice, wp_device, WP, DEVICE, WpGlobalProxy)
25
26 WP_API
27 WpDevice * wp_device_new_from_factory (WpCore * core,
28 const gchar * factory_name, WpProperties * properties);
29
30 /* WpSpaDevice */
31
32 /*!
33 * \brief Flags to be used as WpObjectFeatures for WpSpaDevice
34 * \ingroup wpspadevice
35 */
36 typedef enum { /*< flags >*/
37 /*! enables a spa device */
38 WP_SPA_DEVICE_FEATURE_ENABLED = (WP_PROXY_FEATURE_CUSTOM_START << 0),
39 } WpSpaDeviceFeatures;
40
41 /*!
42 * \brief The WpSpaDevice GType
43 * \ingroup wpspadevice
44 */
45 #define WP_TYPE_SPA_DEVICE (wp_spa_device_get_type ())
46 WP_API
47 G_DECLARE_FINAL_TYPE (WpSpaDevice, wp_spa_device, WP, SPA_DEVICE, WpProxy)
48
49 WP_API
50 WpSpaDevice * wp_spa_device_new_wrap (WpCore * core,
51 gpointer spa_device_handle, WpProperties * properties);
52
53 WP_API
54 WpSpaDevice * wp_spa_device_new_from_spa_factory (WpCore * core,
55 const gchar * factory_name, WpProperties * properties);
56
57 WP_API
58 WpProperties * wp_spa_device_get_properties (WpSpaDevice * self);
59
60 WP_API
61 WpIterator * wp_spa_device_new_managed_object_iterator (WpSpaDevice * self);
62
63 WP_API
64 GObject * wp_spa_device_get_managed_object (WpSpaDevice * self, guint id);
65
66 WP_API
67 void wp_spa_device_store_managed_object (WpSpaDevice * self, guint id,
68 GObject * object);
69
70 WP_API
71 void wp_spa_device_set_managed_pending (WpSpaDevice * self, guint id);
72
73 G_END_DECLS
74
75 #endif