aboutsummaryrefslogtreecommitdiff
path: root/src/command.h
diff options
context:
space:
mode:
authorJohn Ankarstr\xf6m <john@ankarstrom.se>2021-05-29 12:54:47 +0200
committerJohn Ankarstr\xf6m <john@ankarstrom.se>2021-05-29 13:18:40 +0200
commita041d9898e6d699bd8c0c25482ec574feb03c547 (patch)
tree7f094e33fb530152c3ab6238ce7300750b47addb /src/command.h
downloadjwm-a041d9898e6d699bd8c0c25482ec574feb03c547.tar.gz
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.
Diffstat (limited to 'src/command.h')
-rw-r--r--src/command.h36
1 files changed, 36 insertions, 0 deletions
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
+