![]() |
![]() |
![]() |
PackageKit Reference Manual | ![]() |
---|---|---|---|---|
PkPolkitClientPrivate; PkPolkitClient; PkPolkitClient* pk_polkit_client_new (void); gboolean pk_polkit_client_gain_privilege (PkPolkitClient *pclient, const gchar *pk_action); gboolean pk_polkit_client_gain_privilege_str (PkPolkitClient *pclient, const gchar *error_str); gboolean pk_polkit_client_error_denied_by_policy (GError *error);
typedef struct _PkPolkitClientPrivate PkPolkitClientPrivate;
Private PkPolkitClient data
gboolean pk_polkit_client_gain_privilege (PkPolkitClient *pclient, const gchar *pk_action);
This function is indented to be used by client tools to gain extra privileges needed to do extra functionality.
|
a valid PkPolkitClient instance |
|
a PolicyKit action description, e.g. "org.freedesktop.packagekit.installfile" |
Returns : |
if we gained the privilege we asked for |
gboolean pk_polkit_client_gain_privilege_str (PkPolkitClient *pclient, const gchar *error_str);
This function is indented to be passed failure messages from dbus methods so that extra auth can be requested.
|
a valid PkPolkitClient instance |
|
the raw output error, e.g. "org.freedesktop.packagekit.installfile no" |
Returns : |
if we gained the privilege we asked for |