Method

PurpleMediaManagerset_application_data_callbacks

since: 2.6

Declaration [src]

void
purple_media_manager_set_application_data_callbacks (
  PurpleMediaManager* manager,
  PurpleMedia* media,
  const gchar* session_id,
  const gchar* participant,
  PurpleMediaAppDataCallbacks* callbacks,
  gpointer user_data,
  GDestroyNotify notify
)

Description [src]

Set callbacks on a session to be called when the stream becomes writable or readable for media sessions of type #PURPLE_MEDIA_APPLICATION.

Available since: 2.6

Parameters

media

Type: PurpleMedia

The media instance to register the callbacks with.

The data is owned by the caller of the function.
session_id

Type: const gchar*

The session to register the callbacks with.

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

Type: const gchar*

The participant to register the callbacks with.

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

Type: PurpleMediaAppDataCallbacks

The callbacks to be set on the session.

The data is owned by the caller of the function.
user_data

Type: gpointer

A user_data argument for the callbacks.

The argument can be NULL.
The data is owned by the caller of the function.
notify

Type: GDestroyNotify

A destroy notify function.