Struct

PurpleMediaAppDataCallbacks

Description [src]

struct PurpleMediaAppDataCallbacks {
  void (* readable) (
    PurpleMediaManager* manager,
    PurpleMedia* media,
    const gchar* session_id,
    const gchar* participant,
    gpointer user_data
  );
  void (* writable) (
    PurpleMediaManager* manager,
    PurpleMedia* media,
    const gchar* session_id,
    const gchar* participant,
    gboolean writable,
    gpointer user_data
  );
}

A set of callbacks that can be installed on an Application data session with purple_media_manager_set_application_data_callbacks()

Once installed the readable callback will get called as long as data is available to read, so the data must be read completely. The writable callback will only be called when the writable state of the stream changes. The writable argument defines whether the stream has become writable or stopped being writable.

Structure members
readable No description available.
writable No description available.