File: proxy-interfaces.h

package info (click to toggle)
wireplumber 0.5.12-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,244 kB
  • sloc: ansic: 41,043; python: 391; sh: 62; makefile: 57; xml: 23
file content (91 lines) | stat: -rw-r--r-- 2,419 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/* WirePlumber
 *
 * Copyright © 2020 Collabora Ltd.
 *    @author George Kiagiadakis <george.kiagiadakis@collabora.com>
 *
 * SPDX-License-Identifier: MIT
 */

#ifndef __WIREPLUMBER_PROXY_INTERFACES_H__
#define __WIREPLUMBER_PROXY_INTERFACES_H__

#include "proxy.h"
#include "properties.h"
#include "spa-pod.h"

G_BEGIN_DECLS

/*!
 * \brief The WpPipewireObject GType
 * \ingroup wppipewireobject
 */
#define WP_TYPE_PIPEWIRE_OBJECT (wp_pipewire_object_get_type ())
WP_API
G_DECLARE_INTERFACE (WpPipewireObject, wp_pipewire_object,
                     WP, PIPEWIRE_OBJECT, WpProxy)

struct _WpPipewireObjectInterface
{
  GTypeInterface parent_iface;

  gconstpointer (*get_native_info) (WpPipewireObject * self);

  WpProperties * (*get_properties) (WpPipewireObject * self);

  GVariant * (*get_param_info) (WpPipewireObject * self);

  void (*enum_params) (WpPipewireObject * self, const gchar * id,
      WpSpaPod * filter, GCancellable * cancellable,
      GAsyncReadyCallback callback, gpointer user_data);

  WpIterator * (*enum_params_finish) (WpPipewireObject * self,
      GAsyncResult * res, GError ** error);

  WpIterator * (*enum_params_sync) (WpPipewireObject * self,
      const gchar * id, WpSpaPod * filter);

  gboolean (*set_param) (WpPipewireObject * self, const gchar * id,
      guint32 flags, WpSpaPod * param);

  /*< private >*/
  WP_PADDING(5)
};

WP_API
gconstpointer wp_pipewire_object_get_native_info (WpPipewireObject * self);

WP_API
WpProperties * wp_pipewire_object_get_properties (WpPipewireObject * self);

WP_API
WpIterator * wp_pipewire_object_new_properties_iterator (
    WpPipewireObject * self);

WP_API
const gchar * wp_pipewire_object_get_property (WpPipewireObject * self,
    const gchar * key);

WP_API
GVariant * wp_pipewire_object_get_param_info (WpPipewireObject * self);

WP_API
void wp_pipewire_object_enum_params (WpPipewireObject * self, const gchar * id,
    WpSpaPod *filter, GCancellable * cancellable,
    GAsyncReadyCallback callback, gpointer user_data);

WP_API
WpIterator * wp_pipewire_object_enum_params_finish (WpPipewireObject * self,
    GAsyncResult * res, GError ** error);

WP_API
WpIterator * wp_pipewire_object_enum_params_sync (WpPipewireObject * self,
    const gchar * id, WpSpaPod * filter);

WP_API
gboolean wp_pipewire_object_set_param (WpPipewireObject * self,
    const gchar * id, guint32 flags, WpSpaPod * param);


G_END_DECLS

#endif