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

Input class
[Linux 2.6 support]

Input class. More...

Functions

void input_class_pre_process (ClassDeviceHandler *self, HalDevice *d, const char *sysfs_path, struct sysfs_class_device *class_device)
 This method is called just before the device is either merged onto the sysdevice or added to the GDL (cf.

void input_class_get_device_file_target (ClassDeviceHandler *self, HalDevice *d, const char *sysfs_path, struct sysfs_class_device *class_device, char *dev_file_prop, int dev_file_prop_len)
 Get the name of that the property that the device file should be put in.

void scsi_device_class_pre_process (ClassDeviceHandler *self, HalDevice *d, const char *sysfs_path, struct sysfs_class_device *class_device)
char * scsi_device_class_compute_udi (HalDevice *d, int append_num)
void scsi_host_class_pre_process (ClassDeviceHandler *self, HalDevice *d, const char *sysfs_path, struct sysfs_class_device *class_device)
char * scsi_host_class_compute_udi (HalDevice *d, int append_num)

Variables

ClassDeviceHandler input_class_handler
 Method specialisations for input device class.

ClassDeviceHandler input_class_handler
 Method specialisations for input device class.

ClassDeviceHandler scsi_device_class_handler
 Method specialisations for input device class.

ClassDeviceHandler scsi_host_class_handler
 Method specialisations for input device class.


Detailed Description

Input class.


Function Documentation

void input_class_get_device_file_target ClassDeviceHandler self,
HalDevice *  d,
const char *  sysfs_path,
struct sysfs_class_device *  class_device,
char *  dev_file_prop,
int  dev_file_prop_len
[static]
 

Get the name of that the property that the device file should be put in.

Specialised for input device class as multiple device files belong to a single device (such as a mouse).

Parameters:
self Pointer to class members
d The HalDevice object of the instance of this device class
sysfs_path The path in sysfs (including mount point) of the class device in sysfs
class_device Libsysfs object representing class device instance
dev_file_prop Device file property name (out)
dev_file_prop_len Maximum length of string

Definition at line 101 of file input_class_device.c.

References get_last_element().

void input_class_pre_process ClassDeviceHandler self,
HalDevice *  d,
const char *  sysfs_path,
struct sysfs_class_device *  class_device
[static]
 

This method is called just before the device is either merged onto the sysdevice or added to the GDL (cf.

merge_or_add). This is useful for extracting more information about the device through e.g. ioctl's using the device file property and also for setting info.category|capability.

Parameters:
self Pointer to class members
d The HalDevice object of the instance of this device class
sysfs_path The path in sysfs (including mount point) of the class device in sysfs
class_device Libsysfs object representing class device instance

Todo:
use some ioctl()'s on the device file (specific by property .target_dev) and set additional properties

read some data from sysfs and set additional properties

Definition at line 70 of file input_class_device.c.

References hal_device_add_capability().


Variable Documentation

ClassDeviceHandler input_class_handler
 

Initial value:

 {
    class_device_init,                  
    class_device_detection_done,        
    class_device_shutdown,              
    class_device_tick,                  
    class_device_accept,                
    class_device_visit,                 
    class_device_removed,               
    class_device_udev_event,            
    input_class_get_device_file_target, 
    input_class_pre_process,            
    class_device_post_merge,            
    class_device_got_udi,               
    NULL,                               
    "input",                            
    "input",                            
    TRUE,                               
    TRUE                                
}
Method specialisations for input device class.

Definition at line 126 of file input_class_device.c.

ClassDeviceHandler scsi_device_class_handler
 

Initial value:

 {
    class_device_init,                  
    class_device_detection_done,        
    class_device_shutdown,              
    class_device_tick,                  
    class_device_accept,                
    class_device_visit,                 
    class_device_removed,               
    class_device_udev_event,            
    class_device_get_device_file_target,
    scsi_device_class_pre_process,      
    class_device_post_merge,            
    class_device_got_udi,               
    scsi_device_class_compute_udi,      
    "scsi_device",                      
    "scsi_device",                      
    FALSE,                              
    FALSE                               
}
Method specialisations for input device class.

Definition at line 104 of file scsi_device_class_device.c.

ClassDeviceHandler scsi_host_class_handler
 

Initial value:

Method specialisations for input device class.

Definition at line 93 of file scsi_host_class_device.c.


Generated on Sat Apr 24 19:57:50 2004 for HAL by doxygen 1.3.6-20040222