]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/systemd/sd-hwdb.h
tree-wide: expose "p"-suffix unref calls in public APIs to make gcc cleanup easy
[thirdparty/systemd.git] / src / systemd / sd-hwdb.h
index 49269a073ae1ffa27115b95e3c4a7e3215be89a0..c0b8d94c9eea00da359874007ec84d49baabf4cc 100644 (file)
@@ -44,6 +44,8 @@ int sd_hwdb_enumerate(sd_hwdb *hwdb, const char **key, const char **value);
         if (sd_hwdb_seek(hwdb, modalias) < 0) { }                       \
         else while (sd_hwdb_enumerate(hwdb, &(key), &(value)) > 0)
 
+_SD_DEFINE_POINTER_CLEANUP_FUNC(sd_hwdb, sd_hwdb_unref);
+
 _SD_END_DECLARATIONS;
 
 #endif