The functions provided by the file are only used in sd-device.
'sd-bus/sd-bus.c',
'sd-device/device-enumerator-private.h',
'sd-device/device-enumerator.c',
+ 'sd-device/device-filter.c',
+ 'sd-device/device-filter.h',
'sd-device/device-internal.h',
'sd-device/device-monitor-private.h',
'sd-device/device-monitor.c',
'sd-device/device-private.c',
'sd-device/device-private.h',
- 'sd-device/device-util.c',
'sd-device/device-util.h',
'sd-device/sd-device.c',
'sd-hwdb/hwdb-internal.h',
#include "alloc-util.h"
#include "device-enumerator-private.h"
+#include "device-filter.h"
#include "device-util.h"
#include "dirent-util.h"
#include "fd-util.h"
#include <fnmatch.h>
-#include "device-util.h"
+#include "device-filter.h"
#include "path-util.h"
int update_match_strv(Hashmap **match_strv, const char *key, const char *value, bool clear_on_null) {
--- /dev/null
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+#pragma once
+
+#include <stdbool.h>
+
+#include "sd-device.h"
+
+#include "hashmap.h"
+#include "set.h"
+
+int update_match_strv(Hashmap **match_strv, const char *key, const char *value, bool clear_on_null);
+bool device_match_sysattr(sd_device *device, Hashmap *match_sysattr, Hashmap *nomatch_sysattr);
+bool device_match_parent(sd_device *device, Set *match_parent, Set *nomatch_parent);
#include "MurmurHash2.h"
#include "alloc-util.h"
+#include "device-filter.h"
#include "device-monitor-private.h"
#include "device-private.h"
#include "device-util.h"
#include "sd-device.h"
-#include "hashmap.h"
#include "log.h"
#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 log_device_notice_errno(device, error, ...) log_device_full_errno(device, LOG_NOTICE, error, __VA_ARGS__)
#define log_device_warning_errno(device, error, ...) log_device_full_errno(device, LOG_WARNING, error, __VA_ARGS__)
#define log_device_error_errno(device, error, ...) log_device_full_errno(device, LOG_ERR, error, __VA_ARGS__)
-
-int update_match_strv(Hashmap **match_strv, const char *key, const char *value, bool clear_on_null);
-bool device_match_sysattr(sd_device *device, Hashmap *match_sysattr, Hashmap *nomatch_sysattr);
-bool device_match_parent(sd_device *device, Set *match_parent, Set *nomatch_parent);