| <?xml version="1.0" encoding="UTF-8" ?> |
| <!-- |
| Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| Use of this source code is governed by a BSD-style license that can be |
| found in the LICENSE file. |
| |
| dbus-binding-tool -mode=glib-server -prefix=session_manager session_manager.xml |
| > bindings/server.h |
| --> |
| <node name="/org/chromium/"> |
| <interface name="org.chromium.SessionManagerInterface"> |
| <annotation name="org.freedesktop.DBus.GLib.CSymbol" |
| value="session_manager"/> |
| <method name="EmitLoginPromptReady"> |
| <arg type="b" name="emitted" direction="out" /> |
| </method> |
| <method name="EmitLoginPromptVisible"> |
| </method> |
| <method name="EnableChromeTesting"> |
| <arg type="b" name="force_relaunch" direction="in" /> |
| <arg type="as" name="extra_arguments" direction="in" /> |
| <arg type="s" name="filepath" direction="out" /> |
| </method> |
| <method name="StartSession"> |
| <!-- Meant to be human-readable --> |
| <arg type="s" name="email_address" direction="in" /> |
| <!-- Meant to be machine-readable, unused for now --> |
| <arg type="s" name="unique_identifier" direction="in" /> |
| <arg type="b" name="done" direction="out" /> |
| </method> |
| <method name="StopSession"> |
| <!-- Meant to be machine-readable, unused for now --> |
| <arg type="s" name="unique_identifier" direction="in" /> |
| <arg type="b" name="done" direction="out" /> |
| </method> |
| <method name="SetOwnerKey"> |
| <arg type="ay" name="public_key_der" direction="in" /> |
| </method> |
| <method name="CheckWhitelist"> |
| <arg type="s" name="email_address" direction="in" /> |
| <arg type="ay" name="signature" direction="out" /> |
| </method> |
| <method name="EnumerateWhitelisted"> |
| <arg type="as" name="whitelist" direction="out" /> |
| </method> |
| <method name="Unwhitelist"> |
| <arg type="s" name="email_address" direction="in" /> |
| <arg type="ay" name="signature" direction="in" /> |
| </method> |
| <method name="Whitelist"> |
| <arg type="s" name="email_address" direction="in" /> |
| <arg type="ay" name="signature" direction="in" /> |
| </method> |
| <method name="StoreProperty"> |
| <arg type="s" name="name" direction="in" /> |
| <arg type="s" name="value" direction="in" /> |
| <arg type="ay" name="signature" direction="in" /> |
| </method> |
| <method name="RetrieveProperty"> |
| <arg type="s" name="name" direction="in" /> |
| <arg type="s" name="value" direction="out" /> |
| <arg type="ay" name="signature" direction="out" /> |
| </method> |
| <method name="StorePolicy"> |
| <!-- Async annotation means that this method can respond asynchronously; |
| in the normal case, once the handler bound to this method call |
| returns, dbus-daemon will send a response back to the caller. --> |
| <annotation name="org.freedesktop.DBus.GLib.Async" value="true" /> |
| <arg type="ay" name="policy_blob" direction="in" /> |
| <arg type="b" direction="out"> |
| <!-- This means that the caller doesn't have to pass in an |
| out-param to get the result of this call. In synchronous |
| operation, this is mapped to the return value of the |
| method call. In async mode, this is just another value |
| passed to the callback. --> |
| <annotation name="org.freedesktop.DBus.GLib.ReturnVal" value=""/> |
| </arg> |
| </method> |
| <method name="RetrievePolicy"> |
| <arg type="ay" name="policy_blob" direction="out" /> |
| </method> |
| <method name="RestartEntd"> |
| </method> |
| <signal name="SessionStateChanged"> |
| <!-- started, stopped --> |
| <arg type="s" name="state" /> |
| <!-- user whose session is starting or stopping (empty for guest) --> |
| <arg type="s" name="user" /> |
| </signal> |
| <method name="LockScreen"> |
| <!-- Lock screen --> |
| </method> |
| <method name="UnlockScreen"> |
| <!-- Unlock screen --> |
| </method> |
| <method name="RestartJob"> |
| <!-- PID of the job to restart --> |
| <arg type="i" name="pid" direction="in" /> |
| <!-- Command line arguments to restart the job with --> |
| <arg type="s" name="command_line" direction="in" /> |
| <arg type="b" name="done" direction="out" /> |
| </method> |
| </interface> |
| </node> |