summaryrefslogtreecommitdiff
path: root/telepathy-farstream/content.h
blob: 97c5c3a7ad01b8ebf633717a9765f58044365036 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#ifndef __TF_CONTENT_H__
#define __TF_CONTENT_H__

#include <glib-object.h>
#include <farstream/fs-conference.h>

G_BEGIN_DECLS

#define TF_TYPE_CONTENT tf_content_get_type()

#define TF_CONTENT(obj) \
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
  TF_TYPE_CONTENT, TfContent))

#define TF_CONTENT_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_CAST ((klass), \
  TF_TYPE_CONTENT, TfContentClass))

#define TF_IS_CONTENT(obj) \
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TF_TYPE_CONTENT))

#define TF_IS_CONTENT_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_TYPE ((klass), TF_TYPE_CONTENT))

#define TF_CONTENT_GET_CLASS(obj) \
  (G_TYPE_INSTANCE_GET_CLASS ((obj), \
  TF_TYPE_CONTENT, TfContentClass))

typedef struct _TfContentPrivate TfContentPrivate;

/**
 * TfContent:
 *
 * This structure is private, this class is not subclassable.
 */

typedef struct _TfContent TfContent;

/**
 * TfContentClass:
 *
 * This structure is private, this class is not subclassable.
 */

typedef struct _TfContentClass TfContentClass;

GType tf_content_get_type (void);

void tf_content_error_literal (TfContent *content,
    const gchar *message);
void tf_content_error (TfContent *content,
    const gchar *message_format, ...) G_GNUC_PRINTF (2, 3);


void tf_content_sending_failed_literal (TfContent *content,
    const gchar *message);
void tf_content_sending_failed (TfContent *content,
    const gchar *message_format, ...) G_GNUC_PRINTF (2, 3);

void tf_content_receiving_failed_literal (TfContent *content,
    guint *handles, guint handle_count,
    const gchar *message);
void tf_content_receiving_failed (TfContent *content,
    guint *handles, guint handle_count,
    const gchar *message_format, ...) G_GNUC_PRINTF (4, 5);

GstIterator *tf_content_iterate_src_pads (TfContent *content,
    guint *handles, guint handle_count);

G_END_DECLS

#endif /* __TF_CONTENT_H__ */