summaryrefslogtreecommitdiff
path: root/common/la-handler-dbus.xml
blob: f042f06e3850518c91da45b423cb43e778bdd244 (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
48
49
50
51
52
53
<?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 name="/org/genivi/NodeStartupController1/LegacyAppHandler">
  <!--
    org.genivi.LegacyAppHandler1:
    @short_description: Interface for registering legacy apps with the NSM

    Legacy applications are applications that provide a systemd unit
    file but are unaware or do not make use of any GENIVI components.

    The GENIVI Legacy App Handler registers these apps with the NSM
    (Node State Manager) as shutdown consumers, so that when the NSM
    performs a shutdown it can shut down the application in reverse
    order of their creation.
  -->
  <interface name="org.genivi.NodeStartupController1.LegacyAppHandler">
    <!--
      Register:
      @unit: An application unit filename.
      @mode: Shutdown mode for which to register.
      @timeout: Timeout used by the NSM to wait for the legacy
                app to shut down.

      Registers a legacy application with the NSM as a shutdown
      consumer.
    -->
    <method name="Register">
      <annotation name="org.freedesktop.DBus.GLib.Async" value="true"/>
      <arg name="unit" type="s" direction="in"/>
      <arg name="mode" type="i" direction="in"/>
      <arg name="timeout" type="u" direction="in"/>
    </method>
  </interface>
</node>