PackageKit Reference Manual | ||||
---|---|---|---|---|
Top | Description |
gboolean pk_control_get_properties (PkControl *control
,GCancellable *cancellable
,GError **error
); gchar ** pk_control_get_transaction_list (PkControl *control
,GCancellable *cancellable
,GError **error
); gboolean pk_control_set_proxy (PkControl *control
,const gchar *proxy_http
,const gchar *proxy_ftp
,GCancellable *cancellable
,GError **error
); gboolean pk_control_set_proxy2 (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
,GError **error
); gboolean pk_control_set_root (PkControl *control
,const gchar *root
,GCancellable *cancellable
,GError **error
); gboolean pk_control_suggest_daemon_quit (PkControl *control
,GCancellable *cancellable
,GError **error
);
gboolean pk_control_get_properties (PkControl *control
,GCancellable *cancellable
,GError **error
);
Gets the properties the daemon supports. Warning: this function is synchronous, and may block. Do not use it in GUI applications.
|
a valid PkControl instance |
|
a GCancellable or NULL
|
|
A GError or NULL
|
Returns : |
TRUE if the properties were set correctly |
Since 0.5.3
gchar ** pk_control_get_transaction_list (PkControl *control
,GCancellable *cancellable
,GError **error
);
Gets the transaction list in progress. Warning: this function is synchronous, and may block. Do not use it in GUI applications.
|
a valid PkControl instance |
|
a GCancellable or NULL
|
|
A GError or NULL
|
Returns : |
The list of transaction id's, or NULL , free with g_strfreev() . [transfer full]
|
Since 0.5.3
gboolean pk_control_set_proxy (PkControl *control
,const gchar *proxy_http
,const gchar *proxy_ftp
,GCancellable *cancellable
,GError **error
);
Sets the network proxy to use in the daemon. Warning: this function is synchronous, and may block. Do not use it in GUI applications.
|
a valid PkControl instance |
|
the HTTP proxy server |
|
the FTP proxy server |
|
a GCancellable or NULL
|
|
A GError or NULL
|
Returns : |
TRUE if the proxy was set correctly
NOTE: This is just provided for backwards compatibility.
Clients should really be using pk_control_set_proxy2() . |
Since 0.6.3
gboolean pk_control_set_proxy2 (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
,GError **error
);
Sets the network proxy to use in the daemon. Warning: this function is synchronous, and may block. Do not use it in GUI applications.
|
a valid PkControl instance |
|
the HTTP proxy server |
|
the FTP proxy server |
|
a GCancellable or NULL
|
|
A GError or NULL
|
Returns : |
TRUE if the proxy was set correctly |
Since 0.6.13
gboolean pk_control_set_root (PkControl *control
,const gchar *root
,GCancellable *cancellable
,GError **error
);
Sets the install root to use in the daemon. Warning: this function is synchronous, and may block. Do not use it in GUI applications.
|
a valid PkControl instance |
|
the install root, e.g. '/' |
|
a GCancellable or NULL
|
|
A GError or NULL
|
Returns : |
TRUE if the root was set correctly |
Since 0.6.4
gboolean pk_control_suggest_daemon_quit (PkControl *control
,GCancellable *cancellable
,GError **error
);
Suggests to the daemon that it should quit as soon as possible. Warning: this function is synchronous, and may block. Do not use it in GUI applications.
|
a valid PkControl instance |
|
a GCancellable or NULL
|
|
A GError or NULL
|
Returns : |
TRUE if the suggestion was sent |
Since 0.6.2