Method

PurpleRequestFieldemail_validator

since: 3.0

Declaration [src]

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

Description [src]

Validates a field which should contain an email address.

See purple_request_field_set_validator().

Available since: 3.0

Parameters

errmsg

Type: char**

Destination for error message.

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

Type: gpointer

Ignored.

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

Return value

Type: gboolean

TRUE, if field contains valid email address.