summaryrefslogtreecommitdiff
path: root/common/shutdown-consumer-dbus.xml
blob: 8b9e2c188df326d5be4496b50cd8245739ecebf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0" encoding="UTF-8"?>
<node>
  <!--
    org.genivi.NodeStateManager.LifeCycleConsumer:
    @short_description: Interface for receiving LifecycleRequest commands from the NSM

    Lifecycle Consumers are D-Bus object which are created to shut down apps
    which do not have a LifecycleRequest() D-Bus method to call. These are registered
    with the Node State Manager (NSM) instead of the apps and respond to any 
    LifecycleRequest() in the app's place.
  -->
  <interface name="org.genivi.NodeStateManager.LifeCycleConsumer">
    <!--
      Shutdown:
      @Request: The code for this request, either normal, fast or runup.
      @RequestId: A unique identifier for this lifecycle consumer, used in the 
                  LifecycleRequestComplete signal which replies to the NSM.

      Shuts down or starts up the app the LifecycleConsumer is associated with.
    -->
    <method name="LifecycleRequest">
      <arg name="Request"   direction="in"  type="u"/>
      <arg name="RequestId" direction="in"  type="u"/>
      <arg name="ErrorCode" direction="out" type="i"/>
      <annotation name="org.freedesktop.DBus.GLib.Async" value="true"/>
    </method>

  </interface>
</node>