| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
| |
This removes some code duplication between the linux and freebsd
backend. And, this file could become home to other small helper
functions in the future.
|
|
|
|
|
|
|
| |
The reason of a refresh may be interesting to special case certain
situation (e.g. discontinuity of charge after wakeup, polling again
after an event). As such, add an enum parameter that signals the reason
for the refresh.
|
| |
|
|
|
|
|
|
|
| |
There are only a few cases where we separate construction and coldplug.
Porting to GInitable is relatively natural here and makes the code a
little nicer overall. In the case that immediate coldplug/initialization
is not desired, we can still split the operations.
|
|
|
|
|
|
|
| |
Guard platform specific code and add in a few extra definitions so that
the backends can at least be partially compiled on linux. This is for
testing purposes, if we could build against a proper image that would
also be acceptable.
|
|
|
|
|
|
| |
Rather than this weird situation where they are immediately passed in
through the "coldplug" method. Doing this is the first step to make
UpDevice into an initable object (removing the "coldplug" method).
|
|
|
|
|
|
|
|
| |
Commit 5ddfe0d (all: Use g_get_real_time() when possible) replaced calls
to g_get_current_time() with g_get_real_time(), however, we also need to
convert the return value from microseconds to seconds.
Signed-off-by: Richard Hughes <richard@hughsie.com>
|
|
|
|
| |
Instead of a call to g_get_current_time().
|
|
|
|
| |
With "warning-level" property.
|
|
|
|
| |
It was just chaining up.
|
| |
|
|
|
|
|
|
|
|
|
| |
In linux backend, g_object_set was called with wrong
argument types for time-to-empty,time-to-full and percentage
properties. This patch uses explicit casts in the same way as freebsd
backend.
Signed-off-by: Mariusz Ceier <mceier@gmail.com>
|
|
|
|
| |
Signed-off-by: Richard Hughes <richard@hughsie.com>
|
|
|
|
| |
GObject generated names
|
|
|
|
| |
API changes)
|
| |
|
| |
|
|
ABI changes
|