Function

GioProxyget_default_for_protocol

Declaration

GProxy*
g_proxy_get_default_for_protocol (
  const gchar* protocol
)

Description

Find the gio-proxy extension point for a proxy implementation that supports the specified protocol.

Available since:2.26

Parameters

protocol const gchar*
 

The proxy protocol name (e.g. http, socks, etc)

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

Return value

Returns: GProxy
 

Return a GProxy or NULL if protocol is not supported.

 The caller of the function takes ownership of the data, and is responsible for freeing it.
 The return value can be NULL.