2021-06-27 21:25:29 +00:00
|
|
|
/***
|
|
|
|
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
|
|
|
|
File: Processes.cpp
|
|
|
|
Date: 2021-6-12
|
|
|
|
Author: Reece
|
|
|
|
***/
|
2021-09-30 14:57:41 +00:00
|
|
|
#include <Source/RuntimeInternal.hpp>
|
2021-06-27 21:25:29 +00:00
|
|
|
#include "Processes.hpp"
|
2022-04-05 02:36:39 +00:00
|
|
|
|
|
|
|
#if defined (AURORA_PLATFORM_WIN32)
|
|
|
|
#include "Process.Win32.hpp"
|
|
|
|
#include "Open.Win32.hpp"
|
|
|
|
#endif
|
2021-06-27 21:25:29 +00:00
|
|
|
|
2022-04-05 10:11:19 +00:00
|
|
|
#if defined(AURORA_IS_POSIX_DERIVED)
|
|
|
|
#include "Process.Unix.hpp"
|
|
|
|
#endif
|
|
|
|
|
2021-06-27 21:25:29 +00:00
|
|
|
namespace Aurora::Processes
|
|
|
|
{
|
|
|
|
void Init()
|
|
|
|
{
|
|
|
|
#if defined (AURORA_PLATFORM_WIN32)
|
|
|
|
InitWin32();
|
2021-10-23 18:42:05 +00:00
|
|
|
InitWin32Opener();
|
|
|
|
#endif
|
2022-04-05 10:11:19 +00:00
|
|
|
|
|
|
|
#if defined(AURORA_IS_POSIX_DERIVED)
|
|
|
|
InitUnix();
|
|
|
|
#endif
|
2021-10-23 18:42:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void Deinit()
|
|
|
|
{
|
|
|
|
#if defined (AURORA_PLATFORM_WIN32)
|
2022-01-26 00:01:06 +00:00
|
|
|
DeinitWin32();
|
2021-10-23 18:42:05 +00:00
|
|
|
DeinitWin32Opener();
|
2021-06-27 21:25:29 +00:00
|
|
|
#endif
|
2022-04-05 10:11:19 +00:00
|
|
|
|
|
|
|
#if defined(AURORA_IS_POSIX_DERIVED)
|
|
|
|
DeinitUnix();
|
|
|
|
#endif
|
2021-06-27 21:25:29 +00:00
|
|
|
}
|
|
|
|
}
|