udev: move udev cleanup functions from udev-util.h to udev.h

This commit is contained in:
Yu Watanabe
2018-08-23 04:57:39 +09:00
parent 05becb11e8
commit 152d0efa2b
14 changed files with 11 additions and 22 deletions
+2
View File
@@ -1,7 +1,9 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#include <errno.h>
#include <string.h>
#include "alloc-util.h"
#include "fileio.h"
#include "log.h"
#include "string-util.h"
-9
View File
@@ -1,13 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "udev.h"
#include "util.h"
DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_event*, udev_event_unref);
DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_rules*, udev_rules_unref);
DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_ctrl*, udev_ctrl_unref);
DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_ctrl_connection*, udev_ctrl_connection_unref);
DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_ctrl_msg*, udev_ctrl_msg_unref);
int udev_parse_config(void);