title: Is there a way using C++ to get the number of video devices and their names inside linux?
body: <p>Currently I use <code>ls -ltrh /dev/video*</code> to list all the video devices in the terminal, or <code>cat /sys/class/video4linux/video0/name</code> to display the name of that video device in terminal. I wonder is there a way to call some api in the C++ to get these information as well? Thanks.</p>