Main Page | Modules | Data Structures | File List | Data Fields | Related Pages

V4L adapter class
[Linux 2.6 support]

V4L class. More...

Functions

void visit_class_device_v4l_got_sysdevice (HalDevice *parent, void *data1, void *data2)
 Callback when the sysdevice is found or if there is no sysdevice..

void visit_class_device_v4l (const char *path, struct sysfs_class_device *class_device)
 Visitor function for V4L devices.

void linux_class_v4l_init ()
 Init function for V4L adapter class handling.

void linux_class_v4l_detection_done ()
 This function is called when all device detection on startup is done in order to perform optional batch processing on devices.

void linux_class_v4l_shutdown ()
 Shutdown function for V4L adapter class handling.


Detailed Description

V4L class.


Function Documentation

void visit_class_device_v4l const char *  path,
struct sysfs_class_device *  class_device
 

Visitor function for V4L devices.

This function parses the attributes present and creates a new HAL device based on this information.

Parameters:
path Sysfs-path for device
device libsysfs object for device

Todo:
: see if we already got this device

FIXME free udev_stdout, udev_stderr?

Definition at line 64 of file linux_class_v4l.c.

References ds_add_capability(), ds_device_async_find_by_key_value_string(), ds_device_new(), ds_property_set_int(), ds_property_set_string(), get_last_element(), HAL_LINUX_HOTPLUG_TIMEOUT, HalDevice, is_probing, sysfs_mount_path, and visit_class_device_v4l_got_sysdevice().

Referenced by visit_class_device().

void visit_class_device_v4l_got_sysdevice HalDevice sysdevice,
void *  data1,
void *  data2
[static]
 

Callback when the sysdevice is found or if there is no sysdevice..

This is where we get added to the GDL..

Parameters:
sysdevice Async Return value from the find call
data1 User data
data2 User data

Definition at line 247 of file linux_class_v4l.c.

References ds_device_destroy(), ds_device_merge(), and HalDevice.

Referenced by visit_class_device_v4l().


Generated on Sat Feb 7 22:11:51 2004 for HAL by doxygen 1.3.5