This commit removes the libcreds dependency. The reason for the dependency
is that in dsme/dsmesock.c we check that the clients accessing DSME
over a socket have a credential for access. Since we no longer in fact
perform the check, the whole libcreds dependency (and the check)
can be removed.
Enabled runlevels. Fixes NEMO#608
Enabled runlevels. Fixes NEMO#608

Signed-off-by: Pekka Lundstrom <pekka.lundstrom@jollamobile.com>
Merge branch 'master' of github.com:nemomobile/dsme
Fix automatic detection of powerkey input devices

Instead of relying on driver names, the code now detects
devices that can send KEY_POWER events.

In case there are several devices that can emit power key
events, all are tracked. However no attempt is made to try
to separate simultaneous powerkey presses from several
sources.
Normalized whitespace and fixed a typo
Made state change timeouts longer

Signed-off-by: Pekka Lundstrom <pekka.lundstrom@jollamobile.com>
vers 0.62.9

Signed-off-by: Pekka Lundstrom <pekka.lundstrom@jollamobile.com>
The iphb module uses rtc alarms to wakeup from suspend

The rtc alarm is set to closest maximum time of client wakeup
requests. This allows us to wake up from suspend to serve aligned
timers.

The next (clock/calendar/etc) alarm time is tracked (via listening
to "next_bootup_event" signals from timed) and considered when
setting the rtc alarm time.

When dsme wakes up due to rtc alarm, it takes a wakelock, wakes
up clients with elapsed timers and signals cpu-keepalive wakeup
to mce via asynchronous D-Bus method call. The wakelock will
be released by mce once it has handled the method call.

Since dsme now has /dev/rtc open all the time, it effectively
blocks other processes from updating the rtc time. To overcome
this, iphb module synchronizes rtc time to system time when
a) dsme starts up b) while processing heatbeat wakeups c) when
"settings_changed" signal is received from timed.

Also fixes issues on module startup failure and unload paths.
Skip warning if we can't remove non-existing lockfile
Do not spam the console

Since systemd captures stderr too, this just leads to duplicate
entries in journal.
Add type checking to dbus message parsing functions

Warning message will be emitted if message content differs from
what caller expected.

Removed message_iter_next() since it left the iterator pointing
to the last element instead of moving past it - i.e. you could
read the last element N times without errors.

Also fixed a type mismatch found due to type checking.
Change default logging level from LOG_INFO to LOG_NOTICE
Merge pull request #1 from muhku/master

Remove the libcreds dependency
Merge pull request #2 from spiiroin/powerkey_fix

Fix automatic detection of powerkey input devices
Merge pull request #3 from spiiroin/iphb_uses_rtc

The iphb module uses rtc alarms to wakeup from suspend
vers 0.62.10