Function

Purpleproxy_get_proxy_resolver

Declaration [src]

GProxyResolver*
purple_proxy_get_proxy_resolver (
  PurpleAccount* account,
  GError** error
)

Description [src]

Returns a GProxyResolver capable of resolving which proxy to use for this account, if any. This object can be given to a GSocketClient for automatic proxy handling or can be used directly if desired.

Parameters

account PurpleAccount
 

The account for which to get the proxy resolver.

 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: GProxyResolver
 

NULL if there was an error with the account’s (or system) proxy settings, or a reference to a GProxyResolver on success.

 The caller of the function takes ownership of the data, and is responsible for freeing it.