1 /* SPDX-License-Identifier: LGPL-2.1+ */
4 typedef struct Automount Automount
;
8 typedef enum AutomountResult
{
10 AUTOMOUNT_FAILURE_RESOURCES
,
11 AUTOMOUNT_FAILURE_START_LIMIT_HIT
,
12 AUTOMOUNT_FAILURE_MOUNT_START_LIMIT_HIT
,
13 _AUTOMOUNT_RESULT_MAX
,
14 _AUTOMOUNT_RESULT_INVALID
= -1
20 AutomountState state
, deserialized_state
;
23 usec_t timeout_idle_usec
;
26 sd_event_source
*pipe_event_source
;
27 mode_t directory_mode
;
33 sd_event_source
*expire_event_source
;
35 AutomountResult result
;
38 extern const UnitVTable automount_vtable
;
40 const char* automount_result_to_string(AutomountResult i
) _const_
;
41 AutomountResult
automount_result_from_string(const char *s
) _pure_
;
43 DEFINE_CAST(AUTOMOUNT
, Automount
);