Keep giga_ioctl as an independently maintained driver ABI DLL while simplifying its implementation around shared DeviceIoControl helpers and named request layouts. Preserve the existing C exports, IOCTL values, GetLastError behavior, and GVFG capture ownership. Add concise maintainer guidance and document that capture state remains outside this module. Validation: MSVC Release giga_ioctl target built successfully; dumpbin confirmed all 10 exports; git diff --check passed.
709 B
709 B
giga_ioctl
giga_ioctl is the private DLL boundary between GVFG and the Windows driver.
It owns only the driver IOCTL codes, request layouts, and thin
DeviceIoControl wrappers. Device discovery, capture state, threads, buffers,
and frame lifetime remain in gvfg.
When adding a driver operation:
- Add its private IOCTL code and request layout to
src/giga_ioctl_private.h. - Add a small C function to
include/giga_ioctl.h. - Implement that function in
src/giga_ioctl.cppwith no capture state. - Preserve
GetLastError()on driver failures; useERROR_INVALID_PARAMETERfor invalid caller output pointers.
The header is an internal dependency of gvfg; it is not a customer SDK API.