Age | Commit message (Collapse) | Author | Files | Lines |
|
This makes it easier to find real memory leaks with valgrind. After
calling the up_backend_unplug functions, you cannot restart it with
up_backend_coldplug since the lists are cleared.
Tested with Linux only (not on *BSD; dummy compiles).
https://bugs.freedesktop.org/show_bug.cgi?id=82659
|
|
dbus_g_method_return[_error] does not claim the passed parameters, the
caller must free it theirselves.
complex is filled with an GValueArray pointer (see
UP_DBUS_STRUCT_DOUBLE_DOUBLE) but its contents are not freed (memleak!).
This patch introduces a deprecation warning due to the use
g_value_array_free, but since UP_DBUS_STRUCT_DOUBLE_DOUBLE is a
GValueArray, this is unavoidable.
https://bugs.freedesktop.org/show_bug.cgi?id=82659
|
|
Failure to refresh was supposed to be non-fatal, but since
we started putting objects on the bus *after* refresh, we
were skipping the registration if refresh failed, as is
the case in the UPS test case.
|
|
|
|
|
|
When the device was removed, we forgot to cancel sending
out changed properties, causing illegal memory accesses.
|
|
Now that we send out PropertiesChanged signals (on the daemon side)
and "notify" signals (on the client side), there's no need for the
all encompassing DeviceChanged and Changed signals.
They would have woken up any client, even if they were not interested
in receiving the signals.
|
|
So we can update the display device warning level.
|
|
The interface name was missing ".Device" at the end, so wasn't
getting registered by clients.
|
|
The IconName and WarningLevel properties were not sent out through
PropertiesChanged when they changed for devices.
|
|
And export a DisplayDevice object which can be used by desktop
shells to show/hide the status icon.
|
|
|
|
|
|
That will make libupower-glib UpDevice work again, as the proxy
was not receiving property changes, and we kept reading old
cached values.
|
|
|
|
In UpDevice.
|
|
Both for the daemon and devices, so as to avoid D-Bus changes
storms on startup.
|
|
There's no reason why the state check should be done in the UpDevice
implementation, and the state will be needed to add a new warning
level for UPSes.
|
|
Sends out icon names as defined by the Icon Naming specification.
Will save quite a bit of client side code.
|
|
Imported from gnome-settings-daemon, itself from
gnome-power-manager.
|
|
With "warning-level" property.
|
|
|
|
It's already done by GObject.
|
|
The recalls for that broken batch of Sony batteries dates back from
2006. All the batteries that could have been recalled have now
been recalled, and somebody particularly interested in supporting
them can match the batteries using the old rules file, in a
user session or a separate daemon.
|
|
|
|
Linux's power_supply class supports a temperature attribute, which is
supported by many battery drivers. Add a new property to export this
information and support this property in Linux.
https://bugs.freedesktop.org/show_bug.cgi?id=68338
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Martin Pitt <martinpitt@gnome.org>
|
|
This reverts commit eddcf0ef3d0b8445618e368328d7e110a83b69b3.
We don't need the --test option any more now that we always run tests on a
(fake) system D-BUS.
|
|
This adds the luminosity property for devices able to recharge using light.
Signed-off-by: Julien Danjou <julien@danjou.info>
Signed-off-by: Richard Hughes <richard@hughsie.com>
|
|
Add a daemon option --test which will run upowerd on the session bus. This
allows us to run tests without interfering with the system instance. This also
avoids any root privileges entirely, which permits running integration tests as
part of a package build.
|
|
|
|
|
|
|
|
devkit-power-gobject
|
|
Port from devkit-power-gobject/up-enum.h to libupower-glib/up-types.h
|
|
GObject generated names
|
|
org.freedesktop.UPower
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ABI changes
|