TfChannel

TfChannel — Handle the Call media interfaces on a Channel

Synopsis

                    TfChannel;
void                tf_channel_new_async                (TpChannel *channel_proxy,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);
TfChannel *         tf_channel_new_finish               (GObject *object,
                                                         GAsyncResult *result,
                                                         GError **error);
gboolean            tf_channel_bus_message              (TfChannel *channel,
                                                         GstMessage *message);

Description

This class handles the media part of the org.freedesktop.Telepathy.Channel.Type.Call that has HardwareStreaming=FALSE

Details

TfChannel

typedef struct _TfChannel TfChannel;

All members of the object are private


tf_channel_new_async ()

void                tf_channel_new_async                (TpChannel *channel_proxy,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);

Creates a new TfChannel from an existing channel proxy, the new TfChannel object will be return in the async callback.

The user must call tf_channel_new_finish() in the callback to get the finished object.

channel_proxy :

a TpChannel proxy

callback :

a GAsyncReadyCallback to call when the channel is ready

user_data :

the data to pass to callback function

tf_channel_new_finish ()

TfChannel *         tf_channel_new_finish               (GObject *object,
                                                         GAsyncResult *result,
                                                         GError **error);

Completes the construction of a TfChannel.

object :

The GObject

result :

a GAsyncResult

error :

the location of a GError or NULL to ignore it

Returns :

a TfChannel or NULL if there was an error

Since 0.2.2


tf_channel_bus_message ()

gboolean            tf_channel_bus_message              (TfChannel *channel,
                                                         GstMessage *message);

You must call this function on call messages received on the async bus. GstMessages are not modified.

channel :

A TfChannel

message :

A GstMessage received from the bus

Returns :

TRUE if the message has been handled, FALSE otherwise