.. _program_listing_file_include_input_trashbin_MainProcess_deprecated.hpp: Program Listing for File MainProcess_deprecated.hpp =================================================== |exhale_lsh| :ref:`Return to documentation for file ` (``include/input/trashbin/MainProcess_deprecated.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #pragma once #include "NameGen.hpp" #include "PDJE_Buffer.hpp" #include "PDJE_Input_DataLine.hpp" #include "PDJE_Input_Device_Data.hpp" #include "PDJE_LOG_SETTER.hpp" #include "Secured_IPC_TX_RX.hpp" #include "ipc_shared_memory.hpp" #include #include #include #include #include #include #ifdef WIN32 #elif defined(__linux__) #include "RTEvent.hpp" #endif namespace PDJE_IPC { using nj = nlohmann::json; struct Importants { #ifdef WIN32 STARTUPINFOW start_up_info{}; PROCESS_INFORMATION process_info{}; #elif defined(__linux__) struct dType { fs::path dev_path; PDJE_Dev_Type dev_type; }; RTEvent rtev; std::unordered_map stored_dev_path; #endif }; namespace MAINPROC { class TXRXTransport { private: std::optional txrx; PDJE_CRYPTO::PSK psk; Importants imp; struct { std::optional> HEALTH_CHECK; std::optional> STOP; std::optional> KILL; std::optional>> DEVICE_LIST; std::optional> DEVICE_CONFIG; std::optional> SEND_IPC_SHMEM; std::optional> SEND_INPUT_TRANSFER_SHMEM; } TXRX_RESPONSE; public: struct { EVENT input_loop_run_event; EVENT terminate_event; } events; void SetTXRX_Features(); bool CheckHealth(); bool SendIPCSharedMemory(const uint64_t mem_length, const std::string &mem_path, const std::string &dataType); bool SendInputTransfer(PDJE_Input_Transfer &trsf); std::vector GetDevices(); bool QueryConfig(const std::string &dumped_json); bool EndTransmission(); void InitEvents(); bool Kill(); TXRXTransport(); ~TXRXTransport(); }; class DefaultDevs { std::vector GetDevices(); bool Config(); bool Kill(); DefaultDevs(); ~DefaultDevs(); }; }; // namespace MAINPROC }; // namespace PDJE_IPC