1 /* SPDX-License-Identifier: LGPL-2.1+ */
5 Copyright 2010 Lennart Poettering
8 typedef struct Automount Automount
;
12 typedef enum AutomountResult
{
14 AUTOMOUNT_FAILURE_RESOURCES
,
15 AUTOMOUNT_FAILURE_START_LIMIT_HIT
,
16 AUTOMOUNT_FAILURE_MOUNT_START_LIMIT_HIT
,
17 _AUTOMOUNT_RESULT_MAX
,
18 _AUTOMOUNT_RESULT_INVALID
= -1
24 AutomountState state
, deserialized_state
;
27 usec_t timeout_idle_usec
;
30 sd_event_source
*pipe_event_source
;
31 mode_t directory_mode
;
37 sd_event_source
*expire_event_source
;
39 AutomountResult result
;
42 extern const UnitVTable automount_vtable
;
44 const char* automount_result_to_string(AutomountResult i
) _const_
;
45 AutomountResult
automount_result_from_string(const char *s
) _pure_
;
47 DEFINE_CAST(AUTOMOUNT
, Automount
);