// ========================================================= //
//                                                           //
//   File      : aw_system.hxx                               //
//   Purpose   : support to run shell commands               //
//                                                           //
//   Coded by Ralf Westram (coder@reallysoft.de) in Nov 25   //
//   http://www.arb-home.de/                                 //
//                                                           //
// ========================================================= //

#ifndef AW_SYSTEM_HXX
#define AW_SYSTEM_HXX

// ---------------------------------------- see also ../SL/MACROS/xcmd.hxx@SHELL_INTERFACE
// system/shell interface (for GUI apps)

void AW_system(const char *command);
void AW_system_async(const char *command);
void AW_console();

// For WindowCallback's use the versions below.
// (Note: AW_window parameter is an unused callback-dummy)
inline void AW_system_cb(AW_window *, const char *command) { AW_system(command); }
inline void AW_system_async_cb(AW_window *, const char *command) { AW_system_async(command); }
inline void AW_console_cb(AW_window*) { AW_console(); }

#else
#error aw_system.hxx included twice
#endif // AW_SYSTEM_HXX
