]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/systemd/sd-device.h
Update mailmap and contributor list (#7006)
[thirdparty/systemd.git] / src / systemd / sd-device.h
index fc117258213499350c0ebcce6d3888c980e3ef17..c1d07561d720c31b708c94f2af18bfe84eabde24 100644 (file)
@@ -1,5 +1,3 @@
-/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-
 #ifndef foosddevicehfoo
 #define foosddevicehfoo
 
@@ -23,8 +21,9 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#include <sys/types.h>
 #include <inttypes.h>
+#include <sys/sysmacros.h>
+#include <sys/types.h>
 
 #include "_sd-common.h"
 
@@ -94,6 +93,9 @@ int sd_device_enumerator_add_match_tag(sd_device_enumerator *enumerator, const c
 int sd_device_enumerator_add_match_parent(sd_device_enumerator *enumerator, sd_device *parent);
 int sd_device_enumerator_allow_uninitialized(sd_device_enumerator *enumerator);
 
+_SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device, sd_device_unref);
+_SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device_enumerator, sd_device_enumerator_unref);
+
 _SD_END_DECLARATIONS;
 
 #endif