11 #include <sys/types.h> 26 std::vector<int32_t>
fds;
48 int sendData(
const void *buffer,
size_t length,
const int32_t *
fds,
unsigned int num);
49 int recvData(
void *buffer,
size_t length, int32_t *fds,
unsigned int num);
55 struct Header header_;
std::vector< uint8_t > data
Array of bytes to cross IPC boundary.
Definition: ipc_unixsocket.h:25
File descriptor wrapper that owns a file descriptor.
Top-level libcamera namespace.
Definition: backtrace.h:17
std::vector< int32_t > fds
Array of file descriptors to cross IPC boundary.
Definition: ipc_unixsocket.h:26
bool isBound() const
Check if the IPC channel is bound.
Definition: ipc_unixsocket.cpp:160
void close()
Close the IPC channel.
Definition: ipc_unixsocket.cpp:144
Signal & slot implementation.
IPC mechanism based on Unix sockets.
Definition: ipc_unixsocket.h:21
unique_ptr-like wrapper for a file descriptor
Definition: unique_fd.h:17
UniqueFD create()
Create an new IPC channel.
Definition: ipc_unixsocket.cpp:93
int send(const Payload &payload)
Send a message payload.
Definition: ipc_unixsocket.cpp:175
Generic signal and slot communication mechanism.
Definition: object.h:20
Notify of activity on a file descriptor.
Definition: event_notifier.h:19
int bind(UniqueFD fd)
Bind to an existing IPC channel.
Definition: ipc_unixsocket.cpp:127
Container for an IPC payload.
Definition: ipc_unixsocket.h:24
int receive(Payload *payload)
Receive a message payload.
Definition: ipc_unixsocket.cpp:217
Signal readyRead
A Signal emitted when a message is ready to be read.
Definition: ipc_unixsocket.h:40