2022-04-14 16:13:19 +00:00
|
|
|
/***
|
|
|
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
|
|
|
|
File: FDIpcServer.hpp
|
|
|
|
Date: 2022-4-12
|
|
|
|
Author: Reece
|
|
|
|
***/
|
|
|
|
#pragma once
|
|
|
|
|
2022-12-16 00:41:01 +00:00
|
|
|
#include <Source/IO/IPC/AuIPCHandle.hpp>
|
2022-04-14 16:13:19 +00:00
|
|
|
|
|
|
|
namespace Aurora::IO::UNIX
|
|
|
|
{
|
|
|
|
void InitIPCBackend();
|
|
|
|
void DeinitIPCBackend();
|
|
|
|
|
2022-08-02 04:52:17 +00:00
|
|
|
bool FDServe(int fd, IPC::IPCToken &outHandle);
|
|
|
|
void FDServeEnd(const IPC::IPCToken &handle);
|
2022-04-14 16:13:19 +00:00
|
|
|
|
2022-08-02 04:52:17 +00:00
|
|
|
bool FDAccept(const IPC::IPCToken &handle, int &outFd);
|
2022-04-14 16:13:19 +00:00
|
|
|
}
|