| gnome-keyring Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
enum GnomeKeyringItemType; typedef GnomeKeyringItemInfo; void gnome_keyring_item_info_free (GnomeKeyringItemInfo *item_info); GnomeKeyringItemInfo * gnome_keyring_item_info_new (void); GnomeKeyringItemInfo * gnome_keyring_item_info_copy (GnomeKeyringItemInfo *item_info); GnomeKeyringItemType gnome_keyring_item_info_get_type (GnomeKeyringItemInfo *item_info); void gnome_keyring_item_info_set_type (GnomeKeyringItemInfo *item_info,GnomeKeyringItemType type); char * gnome_keyring_item_info_get_secret (GnomeKeyringItemInfo *item_info); void gnome_keyring_item_info_set_secret (GnomeKeyringItemInfo *item_info,const char *value); char * gnome_keyring_item_info_get_display_name (GnomeKeyringItemInfo *item_info); void gnome_keyring_item_info_set_display_name (GnomeKeyringItemInfo *item_info,const char *value); time_t gnome_keyring_item_info_get_mtime (GnomeKeyringItemInfo *item_info); time_t gnome_keyring_item_info_get_ctime (GnomeKeyringItemInfo *item_info);
GnomeKeyringItemInfo represents the basic information about a keyring item.
Use gnome_keyring_item_get_info() or gnome_keyring_item_set_info().
typedef enum {
/* The item types */
GNOME_KEYRING_ITEM_GENERIC_SECRET = 0,
GNOME_KEYRING_ITEM_NETWORK_PASSWORD,
GNOME_KEYRING_ITEM_NOTE,
GNOME_KEYRING_ITEM_CHAINED_KEYRING_PASSWORD,
GNOME_KEYRING_ITEM_ENCRYPTION_KEY_PASSWORD,
GNOME_KEYRING_ITEM_PK_STORAGE = 0x100,
/* Not used, remains here only for compatibility */
GNOME_KEYRING_ITEM_LAST_TYPE,
} GnomeKeyringItemType;
void gnome_keyring_item_info_free (GnomeKeyringItemInfo *item_info);
Free the GnomeKeyringItemInfo object.
A NULL pointer may be passed, in which case it will be ignored.
|
The keyring item info pointer. |
GnomeKeyringItemInfo * gnome_keyring_item_info_new (void);
Create a new GnomeKeyringItemInfo object. Free the GnomeKeyringItemInfo object.
Returns : |
A keyring item info pointer. |
GnomeKeyringItemInfo * gnome_keyring_item_info_copy (GnomeKeyringItemInfo *item_info);
Copy a GnomeKeyringItemInfo object.
|
A keyring item info pointer. |
Returns : |
A keyring item info pointer. |
GnomeKeyringItemType gnome_keyring_item_info_get_type (GnomeKeyringItemInfo *item_info);
Get the item type.
|
A keyring item info pointer. |
Returns : |
The item type |
void gnome_keyring_item_info_set_type (GnomeKeyringItemInfo *item_info,GnomeKeyringItemType type);
Set the type on an item info.
|
A keyring item info pointer. |
|
The new item type |
char * gnome_keyring_item_info_get_secret
(GnomeKeyringItemInfo *item_info);
Get the item secret.
|
A keyring item info pointer. |
Returns : |
The newly allocated string containing the item secret. |
void gnome_keyring_item_info_set_secret (GnomeKeyringItemInfo *item_info,const char *value);
Set the secret on an item info.
|
A keyring item info pointer. |
|
The new item secret |
char * gnome_keyring_item_info_get_display_name
(GnomeKeyringItemInfo *item_info);
Get the item display name.
|
A keyring item info pointer. |
Returns : |
The newly allocated string containing the item display name. |
void gnome_keyring_item_info_set_display_name (GnomeKeyringItemInfo *item_info,const char *value);
Set the display name on an item info.
|
A keyring item info pointer. |
|
The new display name. |
time_t gnome_keyring_item_info_get_mtime (GnomeKeyringItemInfo *item_info);
Get the item last modified time.
|
A keyring item info pointer. |
Returns : |
The item last modified time. |
time_t gnome_keyring_item_info_get_ctime (GnomeKeyringItemInfo *item_info);
Get the item created time.
|
A keyring item info pointer. |
Returns : |
The item created time. |