Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-10-14 | bus: make sure that we always keep a ref to the bus when we dispatch callbacks | Lennart Poettering | |
Otherwise the callback might unref the bus we are processing and destroy the object while we are processing it. | |||
2013-10-14 | bus: use assert_return() for more API calls | Lennart Poettering | |
2013-10-14 | backlight: include ID_PATH in file names for backlight settings | Lennart Poettering | |
Much like for rfkill devices we should provide some stability regarding enumeration order, hence include the stable bits of the device path in the file name we store settings under. | |||
2013-10-14 | rfkill: use ID_PATH as identifier for rfkill state files | Lennart Poettering | |
Let's include the stable device path for the rfkill devices in the name of the file we store the rfkill state in, so that we have some stability regarding enumeration order. | |||
2013-10-14 | shared/util: Fix glob_extend() argument | Bastien Nocera | |
glob_extend() would completely fail to work, or return incorrect data if it wasn't being passed the current getopt "optarg" variable as it used the global variable, instead of the passed parameters. | |||
2013-10-14 | list: make our list macros a bit easier to use by not requring type spec on ↵ | Lennart Poettering | |
each invocation We can determine the list entry type via the typeof() gcc construct, and so we should to make the macros much shorter to use. | |||
2013-10-14 | util: allow trailing semicolons on define_trivial_cleanup_func lines | Lennart Poettering | |
Emacs C indenting really gets confused by these lines if they carry no trailing semicolon, hence let's make this nicer for good old emacs. The other macros which define functions already do this too, so let's copy the scheme here. Also, let's use an uppercase name for the macro. So far our rough rule was that macros that are totally not function-like (like this ones, which define a function) are uppercase. (Well, admittedly it is a rough rule only, for example function and variable decorators are all lower-case SINCE THE CONSTANT YELLING IN THE SOURCES WOULD SUCK, and also they at least got underscore prefixes.) Also, the macros that define functions that we already have are all uppercase, so let's do the same here... | |||
2013-10-13 | manager: connect to private bus even if $DBUS_SESSION_BUS_ADDRESS is not set | Mantas Mikulėnas | |
Because that's exactly the kind of situation where the private bus is necessary. | |||
2013-10-14 | rfkill: add new rfkill tool to save/restore rfkill state across reboots | Lennart Poettering | |
This works analogous to the existing backlight and random seed services | |||
2013-10-14 | backlight: always prefer "firmware"/"platform" backlights over "raw" ↵ | Lennart Poettering | |
backlights if we have both for the same device | |||
2013-10-13 | event: avoid derefencing null pointer | Zbigniew Jędrzejewski-Szmek | |
2013-10-13 | bus: make sure we don't try to malloc 0 bytes | Zbigniew Jędrzejewski-Szmek | |
2013-10-13 | Introduce udev object cleanup functions | Zbigniew Jędrzejewski-Szmek | |
2013-10-13 | Make sure that we don't dereference NULL | Zbigniew Jędrzejewski-Szmek | |
The code was actually safe, because b should never be null, because if rvalue is empty, a different branch is taken. But we *do* check for NULL in the loop above, so it's better to also check here for symmetry. | |||
2013-10-13 | udev: use initialization instead of zeroing in one place | Zbigniew Jędrzejewski-Szmek | |
2013-10-13 | Fix write-only use of a few variables | Zbigniew Jędrzejewski-Szmek | |
Since the invention of read-only memory, write-only memory has been considered deprecated. Where appropriate, either make use of the value, or avoid writing it, to make it clear that it is not used. | |||
2013-10-13 | Introduce _cleanup_fdset_free_ | Zbigniew Jędrzejewski-Szmek | |
2013-10-13 | bus: fix access to unitialized variable in error path | Zbigniew Jędrzejewski-Szmek | |
src/machine/machined-dbus.c:237:13: warning: Branch condition evaluates to a garbage value if (m) ^ | |||
2013-10-13 | drop-ins: check return value | Zbigniew Jędrzejewski-Szmek | |
If the function failed, nothing serious would happen because unlink would probably return EFAULT, but this would obscure the real error and is a bit sloppy. | |||
2013-10-13 | journald: use greedy_realloc in one place | Zbigniew Jędrzejewski-Szmek | |
2013-10-13 | dbus-common: avoid leak in error path | Zbigniew Jędrzejewski-Szmek | |
src/shared/dbus-common.c:968:33: warning: Potential leak of memory pointed to by 'l' return -EINVAL; ^~~~~~ | |||
2013-10-13 | Modernization | Zbigniew Jędrzejewski-Szmek | |
Fixes minor leak in error path in device.c. | |||
2013-10-13 | Never call qsort on potentially NULL arrays | Zbigniew Jędrzejewski-Szmek | |
This extends 62678ded 'efi: never call qsort on potentially NULL arrays' to all other places where qsort is used and it is not obvious that the count is non-zero. | |||
2013-10-13 | unicode: treat cute symbol block as fullwidth | Zbigniew Jędrzejewski-Szmek | |
UNICODE standards only talk about fullwidth characters for East Asian scripts. But it seems that all those symbols are fullwidth too. | |||
2013-10-13 | test: test for ellipsize | Shawn Landden | |
2013-10-13 | util, utf8: make ellipsize take multi-byte characters into account | Shawn Landden | |
rename old versions to ascii_* Do not take into account zerowidth characters, but do consider double-wide characters. Import needed utf8 helper code from glib. v3: rebase ontop of utf8 restructuring work [zj: tweak the algorithm a bit, move new code to separate file] | |||
2013-10-11 | bus: properly implement logic for generating ↵ | Lennart Poettering | |
InterfacesAdded/InterfacesRemoved signals of ObjectManager | |||
2013-10-11 | bus: in GetManagedObjects() only return each object once. | Lennart Poettering | |
2013-10-11 | bus: unify code to find parents of an object path with | Lennart Poettering | |
2013-10-11 | bus: properly generate GetAll reply | Lennart Poettering | |
2013-10-11 | bus: add sd_bus_message_append_strv() to easily add a NULL terminated string ↵ | Lennart Poettering | |
array to a message | |||
2013-10-11 | bus: make sure introspection can be generated correctly with NULL method ↵ | Lennart Poettering | |
signatures | |||
2013-10-11 | bus: beef up parameter checking in vtable handling | Lennart Poettering | |
2013-10-11 | bus: beef up parameter checking of convenience calls | Lennart Poettering | |
2013-10-11 | bus: don't rely on gccisms/c11 in public header files. | Lennart Poettering | |
One day sd-bus.h should become a public header file. We generally try to be conservative in language features we use in public headers (much unlike in private code), hence don't make use of anonymous unions in structs for the vtable definitions. | |||
2013-10-11 | bus: split up overly long sd-bus.c into three files | Lennart Poettering | |
2013-10-11 | bus: if a a Set() vtable callback of a writable is left NULL, try to do the ↵ | Lennart Poettering | |
right thing automatically | |||
2013-10-11 | bus: automatically do a NOP reply when a NULL callback is specified for a ↵ | Lennart Poettering | |
method in a vtable Also, allow specifiying NULL as signature in vtables equivalent to "" for empty parameter lists. | |||
2013-10-11 | Add support for saving/restoring keyboard backlights | Bastien Nocera | |
Piggy-backing on the display backlight code, this saves and restores keyboard backlights on supported devices. The detection code matches that of UPower: http://cgit.freedesktop.org/upower/tree/src/up-kbd-backlight.c#n173 https://bugs.freedesktop.org/show_bug.cgi?id=70367 [tomegun: also work for devices named "{smc,samsung,asus}::kbd_backlight"] | |||
2013-10-11 | udev: usb_id - remove obsoleted bInterfaceSubClass == 5 match | Kay Sievers | |
bInterfaceSubClass == 5 is not a "floppy"; just identify the obsolete QIC-157 interface as "generic". | |||
2013-10-11 | smack: minimize ifdef use, and move all labeling to smack-util.c | Kay Sievers | |
2013-10-11 | bus: when NULL is specified as property callback, automatically handle ↵ | Lennart Poettering | |
serialization on Get() | |||
2013-10-11 | bus: make PropertiesChanged emission work | Lennart Poettering | |
2013-10-11 | bus: decorate API calls with gcc attributes where appropriate | Lennart Poettering | |
2013-10-11 | bus: allow specifying NULL as type string when we want to construct messages ↵ | Lennart Poettering | |
with no payload | |||
2013-10-11 | bus: make GetManagedObjects() work | Lennart Poettering | |
2013-10-11 | event: add apis to query the timestamp of the event currently processed | Lennart Poettering | |
2013-10-11 | event: move all library calls over to new assert_return() macro | Lennart Poettering | |
2013-10-11 | event: add sd_event_source_get_child_pid() call to query the PID of a child ↵ | Lennart Poettering | |
event source | |||
2013-10-11 | event: rename the "mute" field of event sources to "enabled" | Lennart Poettering | |
In addition, the states "UNMUTED" and "MUTED" become "ON" and "OFF". This has the benefit that a possible value of this field is not identical to its name, thus minimizing confusion. |