TfChannel

TfChannel — Handle the Call media interfaces on a Channel

Functions

Types and Values

Object Hierarchy


Description

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

Functions

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.

Parameters

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.

Parameters

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.

Parameters

channel

A TfChannel

 

message

A GstMessage received from the bus

 

Returns

TRUE if the message has been handled, FALSE otherwise

Types and Values

TfChannel

typedef struct _TfChannel TfChannel;

All members of the object are private