Files
2026-11-25 05:09:31 -05:00

35 lines
1.3 KiB
C++

#ifndef NUI_ATTACH_LINUX_KINECT_EXPORT_H
#define NUI_ATTACH_LINUX_KINECT_EXPORT_H
#include <array>
#include "attach_linux/usbip_protocol.h"
#include "protocol/protocol.h"
namespace attach::linux_attach {
// The three USB/IP-exportable busids for one virtual Kinect v1 (camera,
// audio, motor — core/protocol/wire.h's three sibling USB functions), in
// UsbFunction enum order, with the EXACT descriptor fields
// core/protocol/descriptors.cpp (wire::device_descriptor/config_descriptor)
// already commits the device to over control transfers.
struct ExportSet {
std::array<usbip::ExportedDevice, 3> devices;
};
ExportSet default_export_set(uint32_t busnum);
nui::protocol::UsbFunction function_for_busid(const ExportSet& set, const std::string& busid);
const usbip::ExportedDevice* device_for_busid(const ExportSet& set, const std::string& busid);
// A placeholder frame source for the standalone `serve` CLI command: a
// single all-background (zero depth, black color) 640x480 frame, re-returned
// on every call. Real frame data comes from wiring this device to the
// tracker/synth pipeline (plan todos 5/7/10) at a higher integration layer
// that this attach shim does not own.
std::shared_ptr<const nui::protocol::SynthFrame> placeholder_frame_source();
} // namespace attach::linux_attach
#endif // NUI_ATTACH_LINUX_KINECT_EXPORT_H