v4l2-sysfs-path: Rewrite it to get better results
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 22 May 2011 16:16:32 +0000 (13:16 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 22 May 2011 16:21:40 +0000 (13:21 -0300)
commit0ec88068b8f227798e5ecf9d7c375f008d98743a
treed512ced27a2ea6278e6a068969e181f3dbffe59c
parent855e847fce54de1c868a4ca6c8600e3f68c028de
v4l2-sysfs-path: Rewrite it to get better results

From the old v4l2-sysfs-path, we've kept just the name. The
entire old code were sent to /dev/null. On its place, a new
code were added, that reads direcly the /sys/class/<subsystem>
device links, and associates devices from video4linux, alsa
and dvb subsystems.

Also, to make easier to be used inside applications, the
discover methods were added under a LGPL library. The end
result is that v4l2-sysfs-path is now just 3 function calls.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
utils/libv4l2util/Makefile
utils/libv4l2util/get_media_devices.c [new file with mode: 0644]
utils/libv4l2util/get_media_devices.h [new file with mode: 0644]
utils/v4l2-sysfs-path/Makefile
utils/v4l2-sysfs-path/v4l2-sysfs-path.c