| polkit Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
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);
typedef struct _PolkitDetails PolkitDetails;
The PolkitDetails struct should not be accessed directly.
PolkitDetails * polkit_details_new (void);
Creates a new PolkitDetails object.
Returns : |
A PolkitDetails object. Free with g_object_unref(). |
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. [allow-none]
|
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. [allow-none] |
gchar ** polkit_details_get_keys (PolkitDetails *details);
Gets a list of all keys on details.
|
A PolkitDetails. |
Returns : |
NULL if there are no keys
otherwise an array of strings that should be freed with
g_strfreev(). [transfer full][allow-none]
|