X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcore%2Fmount.h;h=30c6d9b249bdf74c69f98b3502698863a0a6cdce;hp=ad9efc34d5f86996aee6729fb3fbb1331be92825;hb=20ad4cfd8e5592f634f20468798cbc1055ab9faf;hpb=6b1dc2bd3cdb3bd932b0692be636ddd2879edb92 diff --git a/src/core/mount.h b/src/core/mount.h index ad9efc34d..30c6d9b24 100644 --- a/src/core/mount.h +++ b/src/core/mount.h @@ -1,7 +1,6 @@ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ -#ifndef foomounthfoo -#define foomounthfoo +#pragma once /*** This file is part of systemd. @@ -25,6 +24,7 @@ typedef struct Mount Mount; #include "unit.h" +#include "kill.h" typedef enum MountState { MOUNT_DEAD, @@ -96,6 +96,7 @@ struct Mount { ExecCommand exec_command[_MOUNT_EXEC_COMMAND_MAX]; ExecContext exec_context; + KillContext kill_context; MountState state, deserialized_state; @@ -119,4 +120,4 @@ MountExecCommand mount_exec_command_from_string(const char *s); const char* mount_result_to_string(MountResult i); MountResult mount_result_from_string(const char *s); -#endif +void warn_if_dir_nonempty(const char *unit, const char* where);