Function nest_keep
#include <macaw.h>int nest_keep(
const char *password,
const char *service,
const char *account,
void (*fn)(const char *service, const char *account)
);
Offers to save a password the person typed in the system's keychain: a box asks them what it's for. Your program can have it back later with nest_request, without them being asked.
Parameters
passwordconst char *- The password to save.
serviceconst char *- What it's for, to fill in the box with, or
NULLto let the person say. accountconst char *- Whose it is, to fill in the box with, or
NULLto let the person say. fnvoid (*)(const char *service, const char *account)- Your function, called with the service and account once it's saved, or
NULL. It isn't called if they cancel.
Returns int
1 if the box opened, or 0 if it didn't, for example because password is empty.
In Saved passwords (Nestchain), with nest_set, nest_get, nest_has, nest_remove, nest_list, nest_listitem, nest_listlabel, nest_listchanged, nest_request, nest_choose.