| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
The changes made haphazardly in e186dac0 and 31e31d52 were documented
for _sysfs_attr_as_boolean_uncached() but not implemented.
|
|
|
|
|
| |
The behaviour was changed in commit e186dac0, but the documentation
wasn't updated.
|
|
|
|
|
| |
We weren't supposed to change the strings recognised as booleans, which
we only documented and didn't actually implement.
|
|
|
|
|
|
|
|
|
|
| |
sysfs attributes which contain text will almost always contain a '\n' at
the end so that they can be cat'ed cleanly from the shell.
Fix g_udev_device_get_sysfs_attr_as_boolean to take this into account by
cutting off the string before the first '\n' if it is present.
Closes: #7
|
|
|
|
|
|
|
|
|
|
|
|
| |
Which matches the string representation of a "bool" as used in module
parameters:
"
Standard types are:
[...]
* bool: a bool, values 0/1, y/n, Y/N.
"
See https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/linux/moduleparam.h#n123
|
|
|
|
|
| |
The meson build system focuses on speed an ease of use,
which helps speeding up the software development.
|
|
|
|
|
| |
We very often need to access the current value of sysfs attributes. Add
functions that do I/O on the sysfs files and update the cache.
|
|
|
|
| |
Follow-up to d0bd1da7a14323497b435b37ec99aa9375e751c1
|
|
|
|
|
|
|
|
| |
Bit me once again, so best to make it clear in the API documentation
that sysfs_attr are only fetched _once_.
libgudev calls udev_device_get_sysattr_value() which says in its docs:
https://github.com/systemd/systemd/blob/4d939d2c849fea2169082451a90722030dca5139/src/libudev/libudev-device.c#L730-L731
|
|
|
|
|
|
| |
And replace with the G_ADD_PRIVATE() as available in glib 2.38.
Closes: #2
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=787314
|
|
|
|
|
|
| |
This takes the guesswork out of it.
https://bugzilla.gnome.org/show_bug.cgi?id=787314
|
|
|
|
|
|
|
|
| |
Add "online" and "offline" actions as per:
src/libsystemd/sd-device/device-private.c
in the systemd repository
https://bugzilla.gnome.org/show_bug.cgi?id=787314
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
g_udev_client_new takes an optional list of subsystems
(and device types) to filter the udev event stream on. These
subsystems aren't automatically matched for device enumeration,
though, which is unexpected.
This commit changes gudevenumerator to get its udev_enumerate object
from gudevclient with the appropriate subsystem and device matches
already set up.
https://bugzilla.gnome.org/show_bug.cgi?id=773224
|
|
|
|
|
| |
And require a newer glib for that functionality. glib 2.30 was released
in 2011, so seems new enough for us to make use of it.
|
|
|
|
|
|
| |
(David: backported to libgudev from systemd upstream)
https://bugzilla.gnome.org/show_bug.cgi?id=750232
|
|
Import initial libgudev from systemd-218. This includes the libgudev
sources, the introspection data and gtk-doc reference documentation.
|