]>
Commit | Line | Data |
---|---|---|
53e1b683 | 1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
1ca208fb ZJS |
2 | #pragma once |
3 | ||
ed435031 ZJS |
4 | #include "sd-device.h" |
5 | ||
4b3ca79e ZJS |
6 | #include "time-util.h" |
7 | ||
bc768f04 ZJS |
8 | typedef enum ResolveNameTiming { |
9 | RESOLVE_NAME_NEVER, | |
10 | RESOLVE_NAME_LATE, | |
11 | RESOLVE_NAME_EARLY, | |
12 | _RESOLVE_NAME_TIMING_MAX, | |
13 | _RESOLVE_NAME_TIMING_INVALID = -1, | |
14 | } ResolveNameTiming; | |
15 | ||
16 | ResolveNameTiming resolve_name_timing_from_string(const char *s) _pure_; | |
17 | const char *resolve_name_timing_to_string(ResolveNameTiming i) _const_; | |
18 | ||
4b3ca79e ZJS |
19 | int udev_parse_config_full( |
20 | unsigned *ret_children_max, | |
21 | usec_t *ret_exec_delay_usec, | |
a14e7af1 ZJS |
22 | usec_t *ret_event_timeout_usec, |
23 | ResolveNameTiming *ret_resolve_name_timing); | |
4b3ca79e ZJS |
24 | |
25 | static inline int udev_parse_config(void) { | |
a14e7af1 | 26 | return udev_parse_config_full(NULL, NULL, NULL, NULL); |
4b3ca79e | 27 | } |
ed435031 ZJS |
28 | |
29 | int device_wait_for_initialization(sd_device *device, const char *subsystem, sd_device **ret); |