4fde28dad8
We moved initializeSalmanoff and shutdownSalmanoff into salmanoff.cpp. Now we also invoke shutdownSalmanoff when exiting to destroy subsystems and components gracefully. This fixes the segfault that was thrown on every program exit when xcbWindow had captured a window.
34 lines
494 B
C++
34 lines
494 B
C++
#ifndef _MARIONETTE_H
|
|
#define _MARIONETTE_H
|
|
|
|
#include <cstdint>
|
|
#include <atomic>
|
|
|
|
namespace smo {
|
|
namespace mrntt {
|
|
|
|
extern std::atomic<int> exitCode;
|
|
|
|
class Marionette
|
|
{
|
|
};
|
|
|
|
} // namespace mrntt
|
|
|
|
struct CrtCommandLineArgs
|
|
{
|
|
CrtCommandLineArgs(int argc, char *argv[], char *envp[])
|
|
: argc(argc), argv(argv), envp(envp)
|
|
{}
|
|
|
|
int argc;
|
|
char **argv;
|
|
char **envp;
|
|
|
|
static void set(int argc, char *argv[], char *envp[]);
|
|
};
|
|
|
|
} // namespace smo
|
|
|
|
#endif // _MARIONETTE_H
|