## pk-control-sync pk-control-sync |

## Synopsis

    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_suggest_daemon_quit      (PkControl *control,
                                                             GCancellable *cancellable,
                                                             GError **error);
    gboolean            pk_control_set_root                 (PkControl *control,
                                                             const gchar *root,
                                                             GCancellable *cancellable,
                                                             GError **error);
    gboolean            pk_control_set_proxy                (PkControl *control,
                                                             const gchar *proxy_http,
                                                             const gchar *proxy_ftp,
                                                             GCancellable *cancellable,
                                                             GError **error);

## Description

## Details

### pk_control_get_properties ()

    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.

`control` : | a valid PkControl instance
`cancellable` : | a GCancellable or `NULL`
`error` : | A GError or `NULL`
Returns : | `TRUE` if the properties were set correctly

Since 0.5.3

### pk_control_get_transaction_list ()

    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.

`control` : | a valid PkControl instance
`cancellable` : | a GCancellable or `NULL`
`error` : | A GError or `NULL`
Returns : | The list of transaction id's, or `NULL`, free with `g_strfreev()`. [transfer full]

Since 0.5.3

### pk_control_suggest_daemon_quit ()

    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.

`control` : | a valid PkControl instance
`cancellable` : | a GCancellable or `NULL`
`error` : | A GError or `NULL`
Returns : | `TRUE` if the suggestion was sent

Since 0.6.2

### pk_control_set_root ()

    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.

`control` : | a valid PkControl instance
`root` : | the install root, e.g. '/'
`cancellable` : | a GCancellable or `NULL`
`error` : | A GError or `NULL`
Returns : | `TRUE` if the root was set correctly

Since 0.6.4

### pk_control_set_proxy ()

    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.

`control` : | a valid PkControl instance
`proxy_http` : | the HTTP proxy server
`proxy_ftp` : | the FTP proxy server
`cancellable` : | a GCancellable or `NULL`
`error` : | A GError or `NULL`
Returns : | `TRUE` if the proxy was set correctly

Since 0.6.3