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
|
#ifndef __TP_STREAM_ENGINE_STREAM_H__
#define __TP_STREAM_ENGINE_STREAM_H__
#include <glib-object.h>
#include <farsight/farsight-session.h>
G_BEGIN_DECLS
#define TP_STREAM_ENGINE_TYPE_STREAM tp_stream_engine_stream_get_type()
#define TP_STREAM_ENGINE_STREAM(obj) \
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
TP_STREAM_ENGINE_TYPE_STREAM, TpStreamEngineStream))
#define TP_STREAM_ENGINE_STREAM_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST ((klass), \
TP_STREAM_ENGINE_TYPE_STREAM, TpStreamEngineStreamClass))
#define TP_STREAM_ENGINE_IS_STREAM(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
TP_STREAM_ENGINE_TYPE_STREAM))
#define TP_STREAM_ENGINE_IS_STREAM_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE ((klass), \
TP_STREAM_ENGINE_TYPE_STREAM))
#define TP_STREAM_ENGINE_STREAM_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), \
TP_STREAM_ENGINE_TYPE_STREAM, TpStreamEngineStreamClass))
typedef struct {
GObject parent;
guint stream_id;
guint media_type;
} TpStreamEngineStream;
typedef struct {
GObjectClass parent_class;
} TpStreamEngineStreamClass;
GType tp_stream_engine_stream_get_type (void);
TpStreamEngineStream* tp_stream_engine_stream_new (void);
gboolean tp_stream_engine_stream_go (
TpStreamEngineStream *self,
const gchar *bus_name,
const gchar *connection_path,
const gchar *stream_handler_path,
const gchar *channel_path,
FarsightSession *fs_session,
guint id,
guint media_type,
guint direction);
gboolean tp_stream_engine_stream_mute_input (
TpStreamEngineStream *chan,
gboolean mute_state,
GError **error);
gboolean tp_stream_engine_stream_mute_output (
TpStreamEngineStream *chan,
gboolean mute_state,
GError **error);
gboolean tp_stream_engine_stream_set_output_volume (
TpStreamEngineStream *chan,
guint volume,
GError **error);
gboolean tp_stream_engine_stream_set_output_window (
TpStreamEngineStream *chan,
guint window_id,
GError **error);
gboolean tp_stream_engine_stream_set_preview_window (
TpStreamEngineStream *chan,
guint window_id,
GError **error);
void tp_stream_engine_stream_error (
TpStreamEngineStream *self,
guint error,
const gchar *message);
G_END_DECLS
#endif /* __TP_STREAM_ENGINE_STREAM_H__ */
|