| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The previous docs format, CC 1.0, is not recommended by GENIVI, and
the preferred one is CC-BY-SA 4.0.
Other license changes are:
* Add Creative Commons copyright headers to documentation.
* Add copyright headers to test code.
* Add copyright headers to dbus XML that belongs to the NSC.
* Update copyright headers to GENIVI's standard.
Notable exceptions are:
* dbus XML that is used to communicate with other services
(e.g. common/nsm-consumer-dbus.xml) has not had copyright statements
added, because the Node Startup Controller does not own that interface.
|
| | |
|
| |
|
|
|
| |
This includes mostly files, directories and the package/tarball name.
The classes and D-Bus interfaces will be renamed in the next step.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit fixes make distcheck by making the LUC handler test part of
"make installcheck" and by disabling the legacy app tests in "make
check".
For the LUC handler test to not interfere with the LUC on the system,
the boot-manager binary is now aware of a LUC_PATH environment variable
that overrides the LUC_PATH string defined at build-time. This way we
can use a different LUC file for the test.
This commit also drops the nsm-dummy/dbus/ and nsm-dummy/systemd/
directories and moves the corresponding files to nsm-dummy/.
|
| |
|
|
|
| |
We don't use underscores in filenames anywhere else so why would we do
that here?
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The new legacy-app-helper binary translates the shutdown mode strings
into NSMShutdownType enum values and passes them on to the legacy app
handler D-Bus service. Thus, this commit also updates the
org.genivi.BootManager1.LegacyAppHandler interface to use an int for the
shutdown mode.
This commit furthermore drops the old command-line handling code in
the boot manager and reworks the legacy-app-handler tests a little
bit.
|
| |
|
|
|
|
| |
Make use of convenience functions for clearing and propagating GErrors.
Drop g_file_create() because g_file_replace_contents() handles the
on-demand file creation for us.
|
| |
|
|
| |
$(sysconfdir) is where system-wide configuration files belong.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The following changes were made:
- Restructure the D-Bus interfaces:
-- The old boot manager interface is removed, we are no longer
interested in being a remote controller of systemd.
-- The LUC Handler has been rewritten and renamed to
org.genivi.BootManager1.BootManager. It has the following
methods:
--- BeginLUCRegistration() initializes the LUC registration
sequence at shutdown.
--- RegisterWithLUC(a{ias}) registers one or more apps with
different LUC types.
--- FinishLUCRegistration() finishes the LUC registration
sequence and atomically replaces the previous LUC.
-- The legacy application handler has been renamed to
org.genivi.BootManager1.LegacyAppHandler. This interface
is not for external use. It is meant only for the command-
line interface to communicate with the boot manager.
-- The LastUserContext property has been removed.
- The last user context is now stored in a file rather than with
GSettings. This was requested after the Gothenburg F2F, but is
included because it is easier to make the change now than modify
GSettings only to remove it later.
- All services run as part of the same process (i.e. boot-manager).
- All services run on the system bus. Because of this, the boot
manager's command-line interface is handled differently, as the
previous implementation, using GApplication, does not work on the
system bus. The command-line interface now works by making a D-Bus
call to the boot manager service, instead of using GApplication's
remote command-line functionality.
- The LUC Handler tests have been renamed to the boot manager
tests, and are changed in line with the new interface methods.
Note: The legacy app handler tests have not yet been modified to work
with these changes.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Files org.genivi.LegacyAppHandler1.test{1,2,3}.service.in will build
into appropriate *.service files.
Each one will run legacy-app-handler with --register as an
ExecStartPost.
Each one is installed to /lib/systemd/system and has an ExecStart
process which is to acquire a Bus Name.
A .conf file has rules to allow processes to own
org.genivi.LegacyAppHandler1.test{1,2,3}, and appears to work as
planned.
|
| | |
|
| |
|
|
|
| |
The testing suite makes register/deregister calls to the LUC handler,
and compares the LastUserContext after the request to what is expected.
|
|
|
For now the LUC Handler test only does the following:
1. reset the LUC to be empty
2. attempt to register one foreground app
In the future we have to add more tests to it.
|