]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/systemd/sd-network.h
tree-wide: expose "p"-suffix unref calls in public APIs to make gcc cleanup easy
[thirdparty/systemd.git] / src / systemd / sd-network.h
index 076f45745d78ec2b0defdae38d6d7f1af4314a9b..79b4bf9ea3c07e20be788bd717bf6613ca7b25a2 100644 (file)
@@ -150,6 +150,8 @@ int sd_network_monitor_get_events(sd_network_monitor *m);
 /* Get timeout for poll(), as usec value relative to CLOCK_MONOTONIC's epoch */
 int sd_network_monitor_get_timeout(sd_network_monitor *m, uint64_t *timeout_usec);
 
+_SD_DEFINE_POINTER_CLEANUP_FUNC(sd_network_monitor, sd_network_monitor_unref);
+
 _SD_END_DECLARATIONS;
 
 #endif