From 04773eaa2cd42d62e873f977fce0b51f84623aa4 Mon Sep 17 00:00:00 2001 From: Andrew Zaborowski Date: Thu, 21 Oct 2021 10:50:38 +0200 Subject: [PATCH] doc: Update agent-api.txt to match code and clarify --- doc/agent-api.txt | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/doc/agent-api.txt b/doc/agent-api.txt index f3d8514e..9da913e0 100644 --- a/doc/agent-api.txt +++ b/doc/agent-api.txt @@ -7,19 +7,23 @@ Object path /net/connman/iwd Methods void RegisterAgent(object path) - Register new agent for handling user requests. + Register new agent for handling user secrets requests. + The agent object's methods on the net.connman.iwd.Agent + interface will be called when IWD needs to request + credentials for a connection to a network in station + mode. - Possible Errors: [service].Error.InvalidArguments - [service].Error.Failed - [service].Error.AlreadyExists + Possible Errors: [service].InvalidArguments + [service].Failed + [service].AlreadyExists void UnregisterAgent(object path) Unregister an existing agent. - Possible Errors: [service].Error.InvalidArguments - [service].Error.Failed - [service].Error.NotFound + Possible Errors: [service].InvalidArguments + [service].Failed + [service].NotFound Agent hierarchy @@ -80,5 +84,5 @@ Methods void Release() [noreply] Examples Requesting a passphrase for WPA2 network - RequestPassphrase("/network1") + RequestPassphrase("/net/connman/iwd/0/3/54657374_psk") ==> "secret123"