Systemd/src/libudev
Lennart Poettering 725d7e6ceb libudev: always return NULL in _unref() APIs
Returning anything else but NULL would suggest the caller's reference
might still be valid, but it isn't, because the caller just invoked
_unref() after all.

This turns the return value into a typesafe shortcut that allows
unreffing and resetting a reference in one line. In contrast to
solutions for this which take a pointer to a pointer to accomplish the
same this solution is just syntactic sugar the developer can make use of
but doesn't have to, and this is particularly useful when immediately
unreffing objects returned by function calls.
2013-11-20 19:36:14 +01:00
..
.gitignore update .gitignore 2012-04-13 21:58:01 +02:00
libudev-device-private.c Remove duplicate includes 2013-11-18 20:28:55 -05:00
libudev-device.c libudev: always return NULL in _unref() APIs 2013-11-20 19:36:14 +01:00
libudev-enumerate.c libudev: always return NULL in _unref() APIs 2013-11-20 19:36:14 +01:00
libudev-hwdb-def.h Fix "attribute 'packed' is ignored" warnings when using Clang 2012-12-17 10:43:58 +01:00
libudev-hwdb.c libudev: always return NULL in _unref() APIs 2013-11-20 19:36:14 +01:00
libudev-list.c udev: declare some symbols static 2013-11-12 18:09:08 +01:00
libudev-monitor.c libudev: always return NULL in _unref() APIs 2013-11-20 19:36:14 +01:00
libudev-private.h udev: declare some symbols static 2013-11-13 03:34:24 +01:00
libudev-queue-private.c libudev: update copyright headers 2012-11-12 17:50:33 +01:00
libudev-queue.c libudev: always return NULL in _unref() APIs 2013-11-20 19:36:14 +01:00
libudev-util.c device-nodes: move device node specific code to own file 2013-09-19 11:50:34 -04:00
libudev.c libudev: default log_priority to INFO 2013-10-30 15:36:04 +01:00
libudev.h hwdb: add --device=<device-id> and --filter=<key name glob> 2013-07-01 22:34:43 +02:00
libudev.pc.in build-sys: libudev - get rid of the needless selinux linking (again) 2013-10-15 02:11:56 +02:00
libudev.sym libudev: add missing 'global' to symbol export 2013-09-17 17:09:46 -05:00
Makefile build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00