chiark / gitweb /
core: add catalog entry and MESSAGE_ID for overmounting
[elogind.git] / src / core / mount.h
index ad9efc34d5f86996aee6729fb3fbb1331be92825..30c6d9b249bdf74c69f98b3502698863a0a6cdce 100644 (file)
@@ -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);