Create a shutdown consumer object for every --register activation
authorJonathan Maw <jonathan.maw@codethink.co.uk>
Wed, 27 Jun 2012 16:46:51 +0000 (17:46 +0100)
committerJonathan Maw <jonathan.maw@codethink.co.uk>
Thu, 5 Jul 2012 16:17:22 +0000 (17:17 +0100)
commit7169b246f37985773878be1bd23f742070e7f5e3
tree0fca570f11ef74465271c08b98f93953f531e3ec
parent85a9ee7e9b93d9dc7d16fbff3c3f35a5640efdea
Create a shutdown consumer object for every --register activation

On receiving a --register command line, or a call to the Register()
method, the legacy app handler will create a shutdown consumer object
(although it will not register it with the NSM yet). When something
(e.g. the NSM) tells the shutdown consumer to shut down, it emits the
signal "shutdown-requested", which the Legacy App Handler listens for.
The Legacy App Handler responds to the "shutdown-requested" signal by
calling the boot manager's Stop() method.
13 files changed:
boot-manager/Makefile.am
boot-manager/boot-manager-application.c
boot-manager/boot-manager-service.c
boot-manager/target-startup-monitor.c
common/Makefile.am
common/boot-manager-dbus.xml [moved from boot-manager/boot-manager-dbus.xml with 100% similarity]
common/shutdown-consumer-service.c [new file with mode: 0644]
common/shutdown-consumer-service.h [new file with mode: 0644]
legacy-app-handler/Makefile.am
legacy-app-handler/la-handler-application.c
legacy-app-handler/la-handler-service.c
legacy-app-handler/la-handler-service.h
legacy-app-handler/main.c