PolicyKit Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy |
Synopsis
PolkitDetails; PolkitDetails * polkit_details_new (void); const gchar * polkit_details_lookup (PolkitDetails *details, const gchar *key); void polkit_details_insert (PolkitDetails *details, const gchar *key, const gchar *value); gchar ** polkit_details_get_keys (PolkitDetails *details);
Details
PolkitDetails
typedef struct _PolkitDetails PolkitDetails;
The PolkitDetails struct should not be accessed directly.
polkit_details_new ()
PolkitDetails * polkit_details_new (void);
Creates a new PolkitDetails object.
Returns : |
A PolkitDetails object. Free with g_object_unref() .
|
polkit_details_lookup ()
const gchar * polkit_details_lookup (PolkitDetails *details, const gchar *key);
Gets the value for key
on details
.
|
A PolkitDetails. |
|
A key. |
Returns : |
NULL if there is no value for key , otherwise a string owned by details .
|
polkit_details_insert ()
void polkit_details_insert (PolkitDetails *details, const gchar *key, const gchar *value);
Inserts a copy of key
and value
on details
.
|
A PolkitDetails. |
|
A key. |
|
A value. |
polkit_details_get_keys ()
gchar ** polkit_details_get_keys (PolkitDetails *details);
Gets a list of all keys on details
.
|
A PolkitDetails. |
Returns : |
An array of strings that should be freed with g_strfreev() .
|