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

pcmcia_socket_class_device.c

00001 /***************************************************************************
00002  * CVSID: $Id: pcmcia_socket_class_device.c,v 1.1 2004/04/22 21:53:17 david Exp $
00003  *
00004  * PCMCIA socket class handler
00005  *
00006  * Copyright (C) 2004 David Zeuthen, <david@fubar.dk>
00007  *
00008  * Licensed under the Academic Free License version 2.0
00009  *
00010  * This program is free software; you can redistribute it and/or modify
00011  * it under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation; either version 2 of the License, or
00013  * (at your option) any later version.
00014  *
00015  * This program is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  * GNU General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU General Public License
00021  * along with this program; if not, write to the Free Software
00022  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00023  *
00024  **************************************************************************/
00025 
00026 #ifdef HAVE_CONFIG_H
00027 #  include <config.h>
00028 #endif
00029 
00030 #include <ctype.h>
00031 #include <stdio.h>
00032 #include <stdlib.h>
00033 #include <string.h>
00034 #include <getopt.h>
00035 #include <assert.h>
00036 #include <unistd.h>
00037 #include <stdarg.h>
00038 #include <limits.h>
00039 
00040 #include "../logger.h"
00041 #include "../device_store.h"
00042 #include "../hald.h"
00043 
00044 #include "class_device.h"
00045 #include "common.h"
00046 
00069 static void 
00070 pcmcia_socket_class_pre_process (ClassDeviceHandler *self,
00071                 HalDevice *d,
00072                 const char *sysfs_path,
00073                 struct sysfs_class_device *class_device)
00074 {
00075     hal_device_add_capability (d, "pcmcia_socket");
00076     hal_device_property_set_string (d, "info.category", "pcmcia_socket");
00077 }
00078 
00080 ClassDeviceHandler pcmcia_socket_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     pcmcia_socket_class_pre_process,    
00091     class_device_post_merge,            
00092     class_device_got_udi,               
00093     NULL,                               
00094     "pcmcia_socket",                    
00095     "pcmcia_socket",                    
00096     FALSE,                              
00097     TRUE                                
00098 };
00099 

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