iwd_agent: surface Cancel + stub EAP methods, expose cancel hook
iwd's Cancel(reason) now invokes a UI callback (registered via iwd_manager_set_cancel_handler) so the popup can tear down an open auth dialog. Stubbed RequestPrivateKeyPassphrase / RequestUserNameAndPassword / RequestUserPassword to return Canceled instead of leaving them unimplemented (which would unregister us). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
7a55d1da5a
commit
9f2a9373aa
4 changed files with 57 additions and 1 deletions
|
|
@ -43,6 +43,13 @@ iwd_manager_set_passphrase_handler(Iwd_Manager *m, Iwd_Agent_Passphrase_Cb cb, v
|
|||
m->pass_data = data;
|
||||
}
|
||||
|
||||
void
|
||||
iwd_manager_set_cancel_handler(Iwd_Manager *m, Iwd_Agent_Cancel_Cb cb, void *data)
|
||||
{
|
||||
if (!m) return;
|
||||
iwd_agent_set_cancel_cb(m->agent, cb, data);
|
||||
}
|
||||
|
||||
static void _recompute_state(Iwd_Manager *m);
|
||||
|
||||
/* ----- listeners ------------------------------------------------------- */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue