/***
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: FDIpcServer.hpp
Date: 2022-4-12
Author: Reece
***/
#pragma once
#include <Source/IO/IPC/IPCHandle.hpp>
namespace Aurora::IO::UNIX
{
void InitIPCBackend();
void DeinitIPCBackend();
bool FDServe(int fd, IPC::IPCToken &outHandle);
void FDServeEnd(const IPC::IPCToken &handle);
bool FDAccept(const IPC::IPCToken &handle, int &outFd);
}