2021-06-27 21:25:29 +00:00
|
|
|
/***
|
|
|
|
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
|
2022-11-17 07:46:07 +00:00
|
|
|
File: AuProcesses.cpp
|
2021-06-27 21:25:29 +00:00
|
|
|
Date: 2021-6-12
|
|
|
|
Author: Reece
|
|
|
|
***/
|
2021-09-30 14:57:41 +00:00
|
|
|
#include <Source/RuntimeInternal.hpp>
|
2022-11-17 07:46:07 +00:00
|
|
|
#include "AuProcesses.hpp"
|
2022-04-05 02:36:39 +00:00
|
|
|
|
|
|
|
#if defined (AURORA_PLATFORM_WIN32)
|
2022-11-17 07:46:07 +00:00
|
|
|
#include "AuProcess.Win32.hpp"
|
|
|
|
#include "AuOpen.Win32.hpp"
|
2022-04-05 02:36:39 +00:00
|
|
|
#endif
|
2021-06-27 21:25:29 +00:00
|
|
|
|
2022-04-05 10:11:19 +00:00
|
|
|
#if defined(AURORA_IS_POSIX_DERIVED)
|
2022-12-16 00:41:01 +00:00
|
|
|
#include "AuProcess.Unix.hpp"
|
2022-04-05 10:11:19 +00:00
|
|
|
#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
|
|
|
}
|
|
|
|
}
|