| 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;
GnomeKeyringItemType is deprecated and should not be used in newly-written code. Use SecretSchema instead.
The types of items.
| Generic secret | |
| Network password | |
| Note | |
| Keyring password | |
| Password for encryption key | |
| Key storage password | |
| Not used |
typedef struct GnomeKeyringItemInfo GnomeKeyringItemInfo;
GnomeKeyringItemInfo is deprecated and should not be used in newly-written code.
void gnome_keyring_item_info_free (GnomeKeyringItemInfo *item_info);
gnome_keyring_item_info_free is deprecated and should not be used in newly-written code. Use SecretItem objects instead.
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);
gnome_keyring_item_info_new is deprecated and should not be used in newly-written code. Use SecretItem objects instead.
Create a new GnomeKeyringItemInfo object. Free the GnomeKeyringItemInfo object.
Returns : |
A keyring item info pointer. |
GnomeKeyringItemInfo * gnome_keyring_item_info_copy (GnomeKeyringItemInfo *item_info);
gnome_keyring_item_info_copy is deprecated and should not be used in newly-written code. Use SecretItem objects instead.
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);
gnome_keyring_item_info_get_type is deprecated and should not be used in newly-written code. Use secret_item_get_schema_name() instead.
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);
gnome_keyring_item_info_set_type is deprecated and should not be used in newly-written code. Use secret_item_set_attributes() instead.
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);
gnome_keyring_item_info_get_secret is deprecated and should not be used in newly-written code. Use secret_item_get_secret() instead.
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);
gnome_keyring_item_info_set_secret is deprecated and should not be used in newly-written code. Use secret_item_set_secret() instead.
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);
gnome_keyring_item_info_get_display_name is deprecated and should not be used in newly-written code. Use secret_item_get_label() instead.
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);
gnome_keyring_item_info_set_display_name is deprecated and should not be used in newly-written code. Use secret_item_set_label() instead.
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);
gnome_keyring_item_info_get_mtime is deprecated and should not be used in newly-written code. Use secret_item_get_modified() instead.
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);
gnome_keyring_item_info_get_ctime is deprecated and should not be used in newly-written code. Use secret_item_get_created() instead.
Get the item created time.
|
A keyring item info pointer. |
Returns : |
The item created time. |