sd-device: introduce device_unref_and_replace()

This commit is contained in:
Yu Watanabe
2022-07-23 08:16:38 +09:00
parent 5eb83e9000
commit d6985e76f2
2 changed files with 14 additions and 0 deletions
+3
View File
@@ -10,6 +10,9 @@
#include "macro.h"
#include "set.h"
#define device_unref_and_replace(a, b) \
unref_and_replace_full(a, b, sd_device_ref, sd_device_unref)
#define FOREACH_DEVICE_PROPERTY(device, key, value) \
for (key = sd_device_get_property_first(device, &(value)); \
key; \