summaryrefslogtreecommitdiff
path: root/src/qcam/assets/feathericons/code.svg
blob: c4954b55a69439b24e7bfebb60bbb1f614f5dafa (plain)
1
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-code"><polyline points="16 18 22 12 16 6"></polyline><polyline points="8 6 2 12 8 18"></polyline></svg>
de "libcamera/internal/ipc_pipe.h" #include "libcamera/internal/ipc_unixsocket.h" namespace libcamera { class Process; class IPCPipeUnixSocket : public IPCPipe { public: IPCPipeUnixSocket(const char *ipaModulePath, const char *ipaProxyWorkerPath); ~IPCPipeUnixSocket(); int sendSync(const IPCMessage &in, IPCMessage *out = nullptr) override; int sendAsync(const IPCMessage &data) override; private: struct CallData { IPCUnixSocket::Payload *response; bool done; }; void readyRead(); int call(const IPCUnixSocket::Payload &message, IPCUnixSocket::Payload *response, uint32_t seq); std::unique_ptr<Process> proc_; std::unique_ptr<IPCUnixSocket> socket_; std::map<uint32_t, CallData> callData_; }; } /* namespace libcamera */