hal/hald/linux pcmcia_socket_class_device.c,NONE,1.1
David Zeuthen
david at pdx.freedesktop.org
Thu Apr 22 14:53:19 PDT 2004
- Previous message: hal/hald/linux class_device.c, 1.9, 1.10 osspec.c, 1.13,
1.14 pci_bus_device.c, 1.4, 1.5 usb_bus_device.c, 1.7, 1.8
- Next message: hal ChangeLog,1.115,1.116
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvs/hal/hal/hald/linux
In directory pdx:/tmp/cvs-serv1396
Added Files:
pcmcia_socket_class_device.c
Log Message:
forgot to add file
--- NEW FILE: pcmcia_socket_class_device.c ---
/***************************************************************************
* CVSID: $Id: pcmcia_socket_class_device.c,v 1.1 2004/04/22 21:53:17 david Exp $
*
* PCMCIA socket class handler
*
* Copyright (C) 2004 David Zeuthen, <david at fubar.dk>
*
* Licensed under the Academic Free License version 2.0
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
**************************************************************************/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include <assert.h>
#include <unistd.h>
#include <stdarg.h>
#include <limits.h>
#include "../logger.h"
#include "../device_store.h"
#include "../hald.h"
#include "class_device.h"
#include "common.h"
/**
* @defgroup HalDaemonLinuxPCMCIASocket PCMCIA Socket class devices
* @ingroup HalDaemonLinux
* @brief PCMCIA Socket class devices
* @{
*/
/** 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.
*
* @param self Pointer to class members
* @param d The HalDevice object of the instance of
* this device class
* @param sysfs_path The path in sysfs (including mount point) of
* the class device in sysfs
* @param class_device Libsysfs object representing class device
* instance
*/
static void
pcmcia_socket_class_pre_process (ClassDeviceHandler *self,
HalDevice *d,
const char *sysfs_path,
struct sysfs_class_device *class_device)
{
hal_device_add_capability (d, "pcmcia_socket");
hal_device_property_set_string (d, "info.category", "pcmcia_socket");
}
/** Method specialisations for input device class */
ClassDeviceHandler pcmcia_socket_class_handler = {
class_device_init, /**< init function */
class_device_detection_done, /**< detection is done */
class_device_shutdown, /**< shutdown function */
class_device_tick, /**< timer function */
class_device_accept, /**< accept function */
class_device_visit, /**< visitor function */
class_device_removed, /**< class device is removed */
class_device_udev_event, /**< handle udev event */
class_device_get_device_file_target,/**< where to store devfile name */
pcmcia_socket_class_pre_process, /**< add more properties */
class_device_post_merge, /**< post merge function */
class_device_got_udi, /**< got UDI */
NULL, /**< No UDI computation */
"pcmcia_socket", /**< sysfs class name */
"pcmcia_socket", /**< hal class name */
FALSE, /**< require device file */
TRUE /**< merge onto sysdevice */
};
/** @} */
- Previous message: hal/hald/linux class_device.c, 1.9, 1.10 osspec.c, 1.13,
1.14 pci_bus_device.c, 1.4, 1.5 usb_bus_device.c, 1.7, 1.8
- Next message: hal ChangeLog,1.115,1.116
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the hal-commit
mailing list