From a041d9898e6d699bd8c0c25482ec574feb03c547 Mon Sep 17 00:00:00 2001 From: "John Ankarstr\\xf6m" Date: Sat, 29 May 2021 12:54:47 +0200 Subject: First commit This is the original state of the released tarball for JWM 1.8, which will serve as my starting point for further modifications. --- src/command.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/command.h (limited to 'src/command.h') diff --git a/src/command.h b/src/command.h new file mode 100644 index 0000000..7c05e05 --- /dev/null +++ b/src/command.h @@ -0,0 +1,36 @@ +/** + * @file command.h + * @author Joe Wingbermuehle + * @date 2004-2006 + * + * @brief Handle running startup, shutdown, and restart commands. + * + */ + +#ifndef COMMAND_H +#define COMMAND_H + +/*@{*/ +void InitializeCommands(); +void StartupCommands(); +void ShutdownCommands(); +void DestroyCommands(); +/*@}*/ + +/** Add a command to be executed at startup. + * @param command The command to execute. + */ +void AddStartupCommand(const char *command); + +/** Add a command to be executed at shutdown. + * @param command The command to execute. + */ +void AddShutdownCommand(const char *command); + +/** Add a command to be executed after a restart. + * @param command The command to execute. + */ +void AddRestartCommand(const char *command); + +#endif + -- cgit v1.2.3