Function

PurpleRequestFieldValidator

Declaration

gboolean
(* PurpleRequestFieldValidator) (
  PurpleRequestField* field,
  char** errmsg,
  gpointer user_data
)

Description [src]

A callback to check whether a field is valid.

Parameters

field

Type: PurpleRequestField

The field.

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

Type: char**

A location to store an error message if the field is invalid.

The argument will be set by the function.
The argument can be set to NULL by the function.
The argument can be NULL.
The caller of the function takes ownership of the returned data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.
user_data

Type: gpointer

The data passed to purple_request_field_set_validator().

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

Return value

Type: gboolean

TRUE if the field is valid, otherwise FALSE.