Quick question, what's the equivalent of this C code in Zig?
(void *) 12345
The whole line:
res = uvc_start_streaming(devh, &ctrl, cb, (void *) 12345, 0);
From here: https://libuvc.github.io/libuvc/
It looks like the lib wants me to pass in a void pointer so I guess I have to do that first. How to do this style of void pointer in Zig? Then I have to cast it to the real one within the callback function.