summaryrefslogtreecommitdiff
path: root/common/la-handler-dbus.xml
blob: 835d6512487866fd04d7359efe90c8704878103c (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
<?xml version="1.0" encoding="UTF-8"?>
<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>