summaryrefslogtreecommitdiff
path: root/src/qcam/assets/feathericons/phone-forwarded.svg
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-05-26 15:24:50 +0200
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-06-05 22:25:48 +0200
commitc6e9c750f63bbfcd323287854513d967c57fe0b2 (patch)
tree9d376db538f33beaf25c7d5c0c83f4b26b0a853d /src/qcam/assets/feathericons/phone-forwarded.svg
parentf1cac536f40fca701aa3ba4fe19d2f326c8bcc8e (diff)
libcamera: raspberrypi: Align include guard
The preprocessor directive '#pragma once' is non-standard, replace it with the include guard used elsewhere in libcamera. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/qcam/assets/feathericons/phone-forwarded.svg')
0 files changed, 0 insertions, 0 deletions
m">/* * Copyright (C) 2019, Google Inc. * * ipc_unixsocket.h - IPC mechanism based on Unix sockets */ #pragma once #include <stdint.h> #include <sys/types.h> #include <vector> #include <libcamera/base/signal.h> #include <libcamera/base/unique_fd.h> namespace libcamera { class EventNotifier; class IPCUnixSocket { public: struct Payload { std::vector<uint8_t> data; std::vector<int32_t> fds; }; IPCUnixSocket(); ~IPCUnixSocket(); UniqueFD create(); int bind(UniqueFD fd); void close(); bool isBound() const; int send(const Payload &payload); int receive(Payload *payload); Signal<> readyRead; private: struct Header { uint32_t data; uint8_t fds; }; int sendData(const void *buffer, size_t length, const int32_t *fds, unsigned int num); int recvData(void *buffer, size_t length, int32_t *fds, unsigned int num); void dataNotifier(); UniqueFD fd_; bool headerReceived_; struct Header header_; EventNotifier *notifier_; }; } /* namespace libcamera */