Files
onionHEN/source/util/include/ipc.hpp
T
Hexwell ea9cf078d2 refactor(ipc): share client/server transport and split command dispatch
Point shellui/fps clients at liborion_ipc dual-singleton client. Move daemon
and util Unix listen/accept loops onto shared ipc_server. Extract handleIPC
into ipc_handle.cpp so transport stays in msg.cpp and command tables can
evolve independently.
2026-07-10 14:41:55 +08:00

32 lines
1.1 KiB
C++

/* Copyright (C) 2025 OrionHEN / LightningMods
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 3, or (at your option) any
later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, see
<http://www.gnu.org/licenses/>. */
#pragma once
#include <string>
#include <msg.hpp>
#include <orion/ipc_server.hpp>
// clientArgs = orion::IpcClientArgs (see ipc_server.hpp)
extern bool show_notification;
#ifdef __cplusplus
#define restrict // Define restrict as empty for C++
#endif
void startMessageReceiver();
bool hasPrefixHandler(const uint32_t prefix) noexcept;
void* messageThread(void*);
bool GetFileContents(const char *path, char **buffer);