Function nest_request
#include <macaw.h>void nest_request(
const char *service,
const char *account,
void (*fn)(const char *password, const char *why)
);
Asks the person for one of the system's own passwords, such as Dial-Up's. They choose Allow Once, Always Allow or Don't Allow, then fn gets the answer. If there's no such password, or they've chosen Always Allow before, fn is called straight away.
Parameters
serviceconst char *- What the password is for.
accountconst char *- Whose password it is.
NULLis the same as"". fnvoid (*)(const char *password, const char *why)- Your function for the answer:
password(NULLif you can't have it), andwhy,"denied"or"none"then. Copy the password to keep it.
In Saved passwords (Nestchain), with nest_set, nest_get, nest_has, nest_remove, nest_list, nest_listitem, nest_listlabel, nest_listchanged, nest_choose, nest_keep.