Call C/C++ code to write in /dev/video

Context: I need to read/write in /dev/video0 Linux devices from a armory application context.
I search a way to do the bind between haxe and c++ in a armory situation.
None of them provide a way to touch system environment.

Do you have an idear or a place to start?