summaryrefslogtreecommitdiff
path: root/src/linux/up-device-csr.c
AgeCommit message (Collapse)AuthorFilesLines
2014-10-08all: convert value from g_get_real_time() to secondsEvangelos Foutras1-1/+1
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>
2014-09-24all: Use g_get_real_time() when possibleBastien Nocera1-3/+1
Instead of a call to g_get_current_time().
2013-10-28linux: Switch CSR devices to use the new daemon pollBastien Nocera1-7/+2
2013-10-26daemon: Better timeout source namingBastien Nocera1-1/+1
Matching the work done in glib, gtk+, etc. This also differentiates the unknown and normal timeouts in the Linux power supply driver.
2013-10-14daemon: Require newer GLibBastien Nocera1-2/+0
And remove ifdef's.
2013-10-14daemon: Remove unneeded reset of priv struct membersBastien Nocera1-2/+0
It's already done by GObject.
2012-04-03Fix crash in up_device_csr_finalize()Martin Pitt1-1/+1
Commit 46f1c7f0283 has a typo which prevents the fix from actually working. https://launchpad.net/bugs/972300
2011-11-11Fix crash in up_device_csr_finalize()Martin Pitt1-1/+2
Spotted when running regression tests in KVM. There, initializing a HID device causes a "could not initialize libusb: -99" warning, but the device is created nevertheless. Do not crash in _finalize() by trying to call libusb_exit(NULL).
2010-11-01Port from EggDebug to the GLib built-in logging frameworkRichard Hughes1-19/+17
2010-06-14Cast cnt to int to stop gcc from complaining.Victor Lowther1-1/+1
GCC was complaining about int and ssize_t being differnt types. Make it quit doing that.
2010-06-05Assign names to our idle sources when using new versions of glib2Richard Hughes1-0/+3
This makes it possible to profile more accurately using systemtap
2010-05-28trivial: print the specific error from libusb1Richard Hughes1-2/+10
2010-05-28Fix up a potential crasher in the CSR device codeRichard Hughes1-1/+6
2010-05-18Port UPower to libusb1 to avoid crappy unfixable crashesRichard Hughes1-65/+68
2010-02-06devkit-power-gobject/up-enum.h be goneMichael Biebl1-1/+1
Port from devkit-power-gobject/up-enum.h to libupower-glib/up-types.h
2010-01-26trivial: rename the new libupower 'type' to 'kind' to avoid clashing with ↵Richard Hughes1-2/+2
GObject generated names
2010-01-18trivial: switch to using the new udev attribute names (no ABI or API break)Richard Hughes1-6/+6
2010-01-18trivial: switch to using the new enum names internally (no ABI or API break)Richard Hughes1-3/+3
2010-01-18trivial: DkpDevice -> UpDevice (no ABI or API break)Richard Hughes1-44/+44
2010-01-18trivial: Rename a lot of the source files from dkp-foo to up-foo, no API or ↵Richard Hughes1-0/+340
ABI changes