Method

PurpleRequestFieldemail_validator

unstable 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 caller of the method 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

Ignored.

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

Return value

Type: gboolean

TRUE, if field contains valid email address.