0x0 (NULL) is of course a valid g_list, (The empty g_list).
an empty list of found
typedef enum {
GNOME_KEYRING_RESULT_OK,
GNOME_KEYRING_RESULT_DENIED,
GNOME_KEYRING_RESULT_NO_KEYRING_DAEMON,
GNOME_KEYRING_RESULT_ALREADY_UNLOCKED,
GNOME_KEYRING_RESULT_NO_SUCH_KEYRING,
GNOME_KEYRING_RESULT_BAD_ARGUMENTS,
GNOME_KEYRING_RESULT_IO_ERROR,
GNOME_KEYRING_RESULT_CANCELLED,
GNOME_KEYRING_RESULT_ALREADY_EXISTS
} GnomeKeyringResult;
Possible options there... do any of these actually apply in the "couldn't find the key you asked for" case?
What should it return?
A cursory glance at the (poorly documented gnome keyring code / API) suggests that finding no keys is not special cased to return a different code.
0x0 (NULL) is of course a valid g_list, (The empty g_list). KEYRING_ RESULT_ OK, KEYRING_ RESULT_ DENIED, KEYRING_ RESULT_ NO_KEYRING_ DAEMON, KEYRING_ RESULT_ ALREADY_ UNLOCKED, KEYRING_ RESULT_ NO_SUCH_ KEYRING, KEYRING_ RESULT_ BAD_ARGUMENTS, KEYRING_ RESULT_ IO_ERROR, KEYRING_ RESULT_ CANCELLED, KEYRING_ RESULT_ ALREADY_ EXISTS
an empty list of found
typedef enum {
GNOME_
GNOME_
GNOME_
GNOME_
GNOME_
GNOME_
GNOME_
GNOME_
GNOME_
} GnomeKeyringResult;
Possible options there... do any of these actually apply in the "couldn't find the key you asked for" case?
What should it return?
A cursory glance at the (poorly documented gnome keyring code / API) suggests that finding no keys is not special cased to return a different code.