diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-04-10 17:53:17 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-10 18:00:34 +0200 |
commit | e537352b9bfffe6f6286483bff2c7601c78407e3 (patch) | |
tree | be1a46883f8a1bc6b666bd680adda2d309979c15 /socket.h | |
parent | 108736d0d34d7b74a61a6ac7b99d4d4fec81ce09 (diff) |
mount: implement mounting properly
This also includes code that writes utmp/wtmp records when applicable,
making use the mount infrastructure to detct when those files are
accessible.
Finally, this also introduces a --dump-configuration-items switch.
Diffstat (limited to 'socket.h')
-rw-r--r-- | socket.h | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -41,7 +41,8 @@ typedef enum SocketState { SOCKET_STOP_POST_SIGTERM, SOCKET_STOP_POST_SIGKILL, SOCKET_MAINTAINANCE, - _SOCKET_STATE_MAX + _SOCKET_STATE_MAX, + _SOCKET_STATE_INVALID = -1 } SocketState; typedef enum SocketExecCommand { @@ -49,12 +50,15 @@ typedef enum SocketExecCommand { SOCKET_EXEC_START_POST, SOCKET_EXEC_STOP_PRE, SOCKET_EXEC_STOP_POST, - _SOCKET_EXEC_MAX + _SOCKET_EXEC_COMMAND_MAX, + _SOCKET_EXEC_COMMAND_INVALID = -1 } SocketExecCommand; typedef enum SocketType { SOCKET_SOCKET, - SOCKET_FIFO + SOCKET_FIFO, + _SOCKET_FIFO_MAX, + _SOCKET_FIFO_INVALID = -1 } SocketType; typedef struct SocketPort SocketPort; @@ -82,7 +86,7 @@ struct Socket { usec_t timeout_usec; - ExecCommand* exec_command[_SOCKET_EXEC_MAX]; + ExecCommand* exec_command[_SOCKET_EXEC_COMMAND_MAX]; ExecContext exec_context; Service *service; |