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

scsi_generic_class_device.c

00001 /***************************************************************************
00002  * CVSID: $Id: scsi_generic_class_device.c,v 1.1 2004/04/14 21:05:08 joe Exp $
00003  *
00004  * SCSI generic device class
00005  *
00006  * Copyright (C) 2003 David Zeuthen, <david@fubar.dk>
00007  * Copyright (C) 2004 Novell, Inc.
00008  *
00009  * Licensed under the Academic Free License version 2.0
00010  *
00011  * This program is free software; you can redistribute it and/or modify
00012  * it under the terms of the GNU General Public License as published by
00013  * the Free Software Foundation; either version 2 of the License, or
00014  * (at your option) any later version.
00015  *
00016  * This program is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU General Public License
00022  * along with this program; if not, write to the Free Software
00023  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
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 

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