summaryrefslogtreecommitdiff
path: root/introspection
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2013-07-18 22:39:39 -0500
committerDan Williams <dcbw@redhat.com>2013-07-31 08:16:34 -0500
commit16bb798861b0f8b727dcb9d843693edee6959003 (patch)
tree587afa2f95ea099472c885a9ec36af4132f4c5ee /introspection
parentcfa4117ebb6a928ef3332f5c606bbfbf4b7159d7 (diff)
agents: add agent capabilities
A new agent registration method enables agents to pass capabilities during the registration process.
Diffstat (limited to 'introspection')
-rw-r--r--introspection/nm-agent-manager.xml18
-rw-r--r--introspection/nm-secret-agent.xml12
2 files changed, 30 insertions, 0 deletions
diff --git a/introspection/nm-agent-manager.xml b/introspection/nm-agent-manager.xml
index e26caacf42..d107442860 100644
--- a/introspection/nm-agent-manager.xml
+++ b/introspection/nm-agent-manager.xml
@@ -23,6 +23,24 @@
</arg>
</method>
+ <method name="RegisterWithCapabilities">
+ <tp:docstring>
+ Like Register() but indicates agent capabilities to NetworkManager.
+ </tp:docstring>
+ <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_agent_manager_register_with_capabilities"/>
+ <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
+ <arg name="identifier" type="s" direction="in">
+ <tp:docstring>
+ See the Register() method's identifier argument.
+ </tp:docstring>
+ </arg>
+ <arg name="capabilities" type="u" direction="in" tp:type="NM_SECRET_AGENT_CAPABILITIES">
+ <tp:docstring>
+ Indicates various agent capabilities to NetworkManager.
+ </tp:docstring>
+ </arg>
+ </method>
+
<method name="Unregister">
<tp:docstring>
Called by secret Agents to notify NetworkManager that they will no
diff --git a/introspection/nm-secret-agent.xml b/introspection/nm-secret-agent.xml
index fa85cb6c65..291f1bdd92 100644
--- a/introspection/nm-secret-agent.xml
+++ b/introspection/nm-secret-agent.xml
@@ -223,6 +223,18 @@
</arg>
</method>
+ <tp:flags name="NM_SECRET_AGENT_CAPABILITIES" value-prefix="NM_SECRET_AGENT_CAPABILITY" type="u">
+ <tp:flag suffix="NONE" value="0x0">
+ <tp:docstring>No special capabilities.</tp:docstring>
+ </tp:flag>
+ <tp:flag suffix="VPN_HINTS" value="0x1">
+ <tp:docstring>
+ The agent supports passing hints to VPN plugin authentication
+ dialogs.
+ </tp:docstring>
+ </tp:flag>
+ </tp:flags>
+
</interface>
</node>