00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifdef HAVE_CONFIG_H
00028 # include <config.h>
00029 #endif
00030
00031 #include <ctype.h>
00032 #include <stdio.h>
00033 #include <stdlib.h>
00034 #include <string.h>
00035 #include <getopt.h>
00036 #include <assert.h>
00037 #include <unistd.h>
00038 #include <stdarg.h>
00039 #include <limits.h>
00040
00041 #include "../logger.h"
00042 #include "../device_store.h"
00043 #include "../hald.h"
00044
00045 #include "class_device.h"
00046 #include "common.h"
00047
00070 static void
00071 scsi_generic_class_pre_process (ClassDeviceHandler *self,
00072 HalDevice *d,
00073 const char *sysfs_path,
00074 struct sysfs_class_device *class_device)
00075 {
00076 hal_device_add_capability (d, "scsi_generic");
00077 }
00078
00080 ClassDeviceHandler scsi_generic_class_handler = {
00081 class_device_init,
00082 class_device_detection_done,
00083 class_device_shutdown,
00084 class_device_tick,
00085 class_device_accept,
00086 class_device_visit,
00087 class_device_removed,
00088 class_device_udev_event,
00089 class_device_get_device_file_target,
00090 scsi_generic_class_pre_process,
00091 class_device_post_merge,
00092 class_device_got_udi,
00093 NULL,
00094 "scsi_generic",
00095 "scsi_generic",
00096 TRUE,
00097 TRUE
00098 };
00099