diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2011-11-09 19:00:51 -0500 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2011-11-28 16:08:13 +0100 |
commit | 03f8e008f0e72fe1fc3d5e2b4d1f17b77ba93f71 (patch) | |
tree | 118889720cd26218e9cc0f7c2c104786da0f6194 /telepathy-farstream/stream.h | |
parent | 4eb7319798bbae58c2f3f4880c446c8f5183fbcb (diff) | |
download | telepathy-farstream-03f8e008f0e72fe1fc3d5e2b4d1f17b77ba93f71.tar.gz |
Make the MediaSignalling mode work
Diffstat (limited to 'telepathy-farstream/stream.h')
-rw-r--r-- | telepathy-farstream/stream.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/telepathy-farstream/stream.h b/telepathy-farstream/stream.h index ddd4b6b..40a8048 100644 --- a/telepathy-farstream/stream.h +++ b/telepathy-farstream/stream.h @@ -56,6 +56,73 @@ void tf_stream_error (TfStream *self, const gchar *message); +typedef struct _TfStreamPrivate TfStreamPrivate; + +/* + * TfStream: + * @parent: the parent #GObject + * @stream_id: the ID of the stream (READ-ONLY) + * + * All other members are privated + */ + +struct _TfStream { + GObject parent; + + /* Read-only */ + guint stream_id; + + /*< private >*/ + + TfStreamPrivate *priv; +}; + +/* + * TfStreamClass: + * @parent_class: the parent #GObjecClass + * + * There are no overridable functions + */ + +struct _TfStreamClass { + GObjectClass parent_class; + + /*< private >*/ + + gpointer unused[4]; +}; + + +typedef struct { + gchar *nat_traversal; + gchar *stun_server; + guint16 stun_port; + gchar *relay_token; +} TfNatProperties; + +typedef void (NewStreamCreatedCb) (TfStream *stream, gpointer channel); + +TfStream * +_tf_stream_new (gpointer channel, + FsConference *conference, + FsParticipant *participant, + TpMediaStreamHandler *proxy, + guint stream_id, + TpMediaStreamType media_type, + TpMediaStreamDirection direction, + TfNatProperties *nat_props, + GList *local_codecs_config, + NewStreamCreatedCb new_stream_created_cb); + +gboolean _tf_stream_bus_message (TfStream *stream, + GstMessage *message); + +void _tf_stream_try_sending_codecs (TfStream *stream); + +TpMediaStreamError fserror_to_tperror (GError *error); + + + G_END_DECLS #endif /* __TF_STREAM_H__ */ |