manpagez: man pages & more
html files: polkit
Home | html | info | man

PolkitDetails

PolkitDetails — Object used for passing details

Stability Level

Stable, unless otherwise indicated

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);

Object Hierarchy

  GObject
   +----PolkitDetails

Description

An object used for passing details around.

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.

details :

A PolkitDetails.

key :

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.

details :

A PolkitDetails.

key :

A key.

value :

A value.

polkit_details_get_keys ()

gchar **            polkit_details_get_keys             (PolkitDetails *details);

Gets a list of all keys on details.

details :

A PolkitDetails.

Returns :

An array of strings that should be freed with g_strfreev().
© manpagez.com 2000-2024
Individual documents may contain additional copyright information.