| 1 |
/* WirePlumber |
| 2 |
* |
| 3 |
* Copyright © 2020 Collabora Ltd. |
| 4 |
* @author George Kiagiadakis <[email protected]> |
| 5 |
* |
| 6 |
* SPDX-License-Identifier: MIT |
| 7 |
*/ |
| 8 |
|
| 9 |
#ifndef __WIREPLUMBER_PROXY_INTERFACES_H__ |
| 10 |
#define __WIREPLUMBER_PROXY_INTERFACES_H__ |
| 11 |
|
| 12 |
#include "proxy.h" |
| 13 |
#include "properties.h" |
| 14 |
#include "spa-pod.h" |
| 15 |
|
| 16 |
G_BEGIN_DECLS |
| 17 |
|
| 18 |
/*! |
| 19 |
* \brief The WpPipewireObject GType |
| 20 |
* \ingroup wppipewireobject |
| 21 |
*/ |
| 22 |
#define WP_TYPE_PIPEWIRE_OBJECT (wp_pipewire_object_get_type ()) |
| 23 |
WP_API |
| 24 |
G_DECLARE_INTERFACE (WpPipewireObject, wp_pipewire_object, |
| 25 |
WP, PIPEWIRE_OBJECT, WpProxy) |
| 26 |
|
| 27 |
struct _WpPipewireObjectInterface |
| 28 |
{ |
| 29 |
GTypeInterface parent_iface; |
| 30 |
|
| 31 |
gconstpointer (*get_native_info) (WpPipewireObject * self); |
| 32 |
|
| 33 |
WpProperties * (*get_properties) (WpPipewireObject * self); |
| 34 |
|
| 35 |
GVariant * (*get_param_info) (WpPipewireObject * self); |
| 36 |
|
| 37 |
void (*enum_params) (WpPipewireObject * self, const gchar * id, |
| 38 |
WpSpaPod * filter, GCancellable * cancellable, |
| 39 |
GAsyncReadyCallback callback, gpointer user_data); |
| 40 |
|
| 41 |
WpIterator * (*enum_params_finish) (WpPipewireObject * self, |
| 42 |
GAsyncResult * res, GError ** error); |
| 43 |
|
| 44 |
WpIterator * (*enum_params_sync) (WpPipewireObject * self, |
| 45 |
const gchar * id, WpSpaPod * filter); |
| 46 |
|
| 47 |
gboolean (*set_param) (WpPipewireObject * self, const gchar * id, |
| 48 |
guint32 flags, WpSpaPod * param); |
| 49 |
|
| 50 |
/*< private >*/ |
| 51 |
WP_PADDING(5) |
| 52 |
}; |
| 53 |
|
| 54 |
WP_API |
| 55 |
gconstpointer wp_pipewire_object_get_native_info (WpPipewireObject * self); |
| 56 |
|
| 57 |
WP_API |
| 58 |
WpProperties * wp_pipewire_object_get_properties (WpPipewireObject * self); |
| 59 |
|
| 60 |
WP_API |
| 61 |
WpIterator * wp_pipewire_object_new_properties_iterator ( |
| 62 |
WpPipewireObject * self); |
| 63 |
|
| 64 |
WP_API |
| 65 |
const gchar * wp_pipewire_object_get_property (WpPipewireObject * self, |
| 66 |
const gchar * key); |
| 67 |
|
| 68 |
WP_API |
| 69 |
GVariant * wp_pipewire_object_get_param_info (WpPipewireObject * self); |
| 70 |
|
| 71 |
WP_API |
| 72 |
void wp_pipewire_object_enum_params (WpPipewireObject * self, const gchar * id, |
| 73 |
WpSpaPod *filter, GCancellable * cancellable, |
| 74 |
GAsyncReadyCallback callback, gpointer user_data); |
| 75 |
|
| 76 |
WP_API |
| 77 |
WpIterator * wp_pipewire_object_enum_params_finish (WpPipewireObject * self, |
| 78 |
GAsyncResult * res, GError ** error); |
| 79 |
|
| 80 |
WP_API |
| 81 |
WpIterator * wp_pipewire_object_enum_params_sync (WpPipewireObject * self, |
| 82 |
const gchar * id, WpSpaPod * filter); |
| 83 |
|
| 84 |
WP_API |
| 85 |
gboolean wp_pipewire_object_set_param (WpPipewireObject * self, |
| 86 |
const gchar * id, guint32 flags, WpSpaPod * param); |
| 87 |
|
| 88 |
|
| 89 |
G_END_DECLS |
| 90 |
|
| 91 |
#endif |