Method

PurpleProtocolMediainitiate_session

Declaration [src]

gboolean
purple_protocol_media_initiate_session (
  PurpleProtocolMedia* media,
  PurpleAccount* account,
  const gchar* who,
  PurpleMediaSessionType type
)

Description [src]

Initiates a media connection of type to who.

Available since:3.0.0

Parameters

account PurpleAccount
 

The PurpleAccount instance.

 The data is owned by the caller of the function.
who const gchar*
 

The user to initiate a media session with.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
type PurpleMediaSessionType
 

The type of media session to create.

Return value

Returns: gboolean
 

TRUE if successful, FALSE otherwise.