diff options
Diffstat (limited to 'src/mds-respawn.h')
-rw-r--r-- | src/mds-respawn.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mds-respawn.h b/src/mds-respawn.h index 8c25a4a..65557ba 100644 --- a/src/mds-respawn.h +++ b/src/mds-respawn.h @@ -22,6 +22,7 @@ #include "mds-base.h" #include <sys/types.h> +#include <time.h> @@ -53,6 +54,16 @@ /** + * Check that a state is a value state + * + * @param VALUE:int The state + * @return :int Whether the state is value + */ +#define validate_state(VALUE) ((UNBORN <= VALUE) && (VALUE <= CREMATED)) + + + +/** * The state and identifier of a server */ typedef struct server_state @@ -67,6 +78,11 @@ typedef struct server_state */ int state; + /** + * The time (monotonic) the server started + */ + struct timespec started; + } server_state_t; |