summaryrefslogtreecommitdiff
path: root/telepathy-farstream/content-priv.h
blob: ab137da68894a3692e8487f7df05df981f1e5e25 (plain)
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

#ifndef __TF_CONTENT_PRIV_H__
#define __TF_CONTENT_PRIV_H__

#include <glib-object.h>

#include <farstream/fs-conference.h>


G_BEGIN_DECLS

struct _TfContent {
  GObject parent;

  guint sending_count;
};

struct _TfContentClass{
  GObjectClass parent_class;

  void (*content_error) (TfContent *content,
      const gchar *message);

  void (*sending_failed) (TfContent *content,
      const gchar *message);
  void (*receiving_failed) (TfContent *content,
      guint *handles, guint handle_count,
      const gchar *message);

  GstIterator * (*iterate_src_pads) (TfContent *content, guint *handle,
      guint handle_count);
};

gboolean _tf_content_start_sending (TfContent *self);
void _tf_content_stop_sending (TfContent *self);
void _tf_content_mute_to_stop_sending (TfContent *self);

void _tf_content_emit_src_pad_added (TfContent *self, guint handle,
    FsStream *stream, GstPad *pad, FsCodec *codec);

gboolean _tf_content_start_receiving (TfContent *self, guint *handles,
    guint handle_count);
void _tf_content_stop_receiving (TfContent *self,
    guint *handles, guint handle_count);

G_END_DECLS

#endif /* __TF_CONTENT_PRIV_H__ */