Virtual Method

PurpleProtocolClientnormalize

Declaration [src]

const gchar*
normalize (
  PurpleProtocolClient* client,
  PurpleAccount* account,
  const gchar* who
)

Description [src]

Normalizes a who to the canonical form for the protocol. For example, many protocols only support all lower case, but might have display version where there are capital letters.

Available since:3.0.0
Deprecated since:3.0.0

This should use purple_protcol_client_normalize_name when it is created which will return an allocated value.

Parameters

account PurpleAccount
 

A PurpleAccount instance.

 The argument can be NULL.
 The data is owned by the caller of the function.
who const gchar*
 

The name to normalize.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.

Return value

Returns: const gchar*
 

The normalized version of who for account.

 The data is owned by the called function.
 The value is a NUL terminated UTF-8 string.