Method

PackageKitControlset_proxy2_async

since: 0.6.13

Declaration [src]

void
pk_control_set_proxy2_async (
  PkControl* control,
  const gchar* proxy_http,
  const gchar* proxy_https,
  const gchar* proxy_ftp,
  const gchar* proxy_socks,
  const gchar* no_proxy,
  const gchar* pac,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data
)

Description [src]

Set a proxy on the PK daemon.

Available since: 0.6.13

This method completes asynchronously. Use () inside the GAsyncReadyCallback to obtain the result of the operation.

Parameters

proxy_http

Type: const gchar*

A HTTP proxy string such as “username:password@server.lan:8080”, or NULL.

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

Type: const gchar*

A HTTPS proxy string such as “username:password@server.lan:8080”, or NULL.

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

Type: const gchar*

A FTP proxy string such as “server.lan:8080”, or NULL.

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

Type: const gchar*

A SOCKS proxy string such as “server.lan:8080”, or NULL.

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

Type: const gchar*

A list of download IPs that shouldn’t go through the proxy, or NULL.

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

Type: const gchar*

A PAC string, or NULL.

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

Type: GCancellable

A GCancellable or NULL.

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

Type: GAsyncReadyCallback

The function to run on completion.

The argument can be NULL.
user_data

Type: gpointer

The data to pass to callback.

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