Function

Purpleinput_add

Declaration [src]

guint
purple_input_add (
  int fd,
  PurpleInputCondition cond,
  PurpleInputFunction func,
  gpointer user_data
)

Description [src]

Adds an input handler.

See g_io_add_watch_full().

Parameters

fd int
 

The input file descriptor.

cond PurpleInputCondition
 

The condition type.

func PurpleInputFunction
 

The callback function for data.

user_data gpointer
 

User-specified data.

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

Return value

Returns: guint
 

The resulting handle (will be greater than 0).