summaryrefslogtreecommitdiff
path: root/common/shutdown-consumer-dbus.xml
blob: cadd9b1ee29adf244b4c7fc54843eb3aa4d83d49 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0" encoding="UTF-8"?>
<!--
SPDX license identifier: MPL-2.0
Copyright (C) 2012, GENIVI

This file is part of node-startup-controller. 

This Source Code Form is subject to the terms of the 
Mozilla Public License (MPL), v. 2.0. 

If a copy of the MPL was not distributed with this file, 
You can obtain one at http://mozilla.org/MPL/2.0/. 

For further information see http://www.genivi.org/. 

List of changes: 
2015-04-30, Jonathan Maw, List of changes started

-->
<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>