JWM Source Documentation
Functions
command.h File Reference

Handle running startup, shutdown, and restart commands. More...

Go to the source code of this file.

Functions

void AddStartupCommand (const char *command)
 Add a command to be executed at startup.
 
void AddShutdownCommand (const char *command)
 Add a command to be executed at shutdown.
 
void AddRestartCommand (const char *command)
 Add a command to be executed after a restart.
 
void RunCommand (const char *command)
 Run a command.
 
#define InitializeCommands()   (void)(0)
 
void StartupCommands (void)
 Process startup/restart commands.
 
void ShutdownCommands (void)
 Process shutdown commands.
 
void DestroyCommands (void)
 Destroy the command lists.
 

Detailed Description

Handle running startup, shutdown, and restart commands.

Author
Joe Wingbermuehle
Date
2004-2006

Definition in file command.h.

Macro Definition Documentation

#define InitializeCommands ( )    (void)(0)

Definition at line 14 of file command.h.

Referenced by Initialize().

Function Documentation

void AddRestartCommand ( const char *  command)

Add a command to be executed after a restart.

Parameters
commandThe command to execute.

Definition at line 113 of file command.c.

References AddCommand().

Referenced by Parse().

void AddShutdownCommand ( const char *  command)

Add a command to be executed at shutdown.

Parameters
commandThe command to execute.

Definition at line 108 of file command.c.

References AddCommand().

Referenced by Parse().

void AddStartupCommand ( const char *  command)

Add a command to be executed at startup.

Parameters
commandThe command to execute.

Definition at line 102 of file command.c.

References AddCommand().

Referenced by Parse().

void DestroyCommands ( void  )

Destroy the command lists.

Definition at line 49 of file command.c.

References ReleaseCommands().

Referenced by Destroy().

void RunCommand ( const char *  command)

Run a command.

Parameters
commandThe command to run (run in sh).

Definition at line 118 of file command.c.

References _, display, displayString, JUNLIKELY, SHELL_NAME, and Warning().

Referenced by LoadBackground(), ProcessActionPress(), ProcessActionRelease(), RunCommands(), RunKeyCommand(), RunRootCommand(), and StartupSwallow().

void ShutdownCommands ( void  )

Process shutdown commands.

Definition at line 41 of file command.c.

References RunCommands(), and shouldRestart.

Referenced by Shutdown().

void StartupCommands ( void  )

Process startup/restart commands.

Definition at line 31 of file command.c.

References isRestarting, and RunCommands().

Referenced by Startup().

joewing.net / Projects / JWM