libudev.h | libudev.h | |||
---|---|---|---|---|
/* | /* | |||
* libudev - interface to udev device information | * libudev - interface to udev device information | |||
* | * | |||
* Copyright (C) 2008 Kay Sievers <kay.sievers@vrfy.org> | * Copyright (C) 2008 Kay Sievers <kay.sievers@vrfy.org> | |||
* | * | |||
* This program is free software: you can redistribute it and/or modify | * This library is free software; you can redistribute it and/or | |||
* it under the terms of the GNU General Public License as published by | * modify it under the terms of the GNU Lesser General Public | |||
* the Free Software Foundation, either version 2 of the License, or | * License as published by the Free Software Foundation; either | |||
* (at your option) any later version. | * version 2.1 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, see <http://www.gnu.org/licenses/>. | ||||
*/ | */ | |||
#ifndef _LIBUDEV_H_ | #ifndef _LIBUDEV_H_ | |||
#define _LIBUDEV_H_ | #define _LIBUDEV_H_ | |||
#include <stdarg.h> | #include <stdarg.h> | |||
#include <sys/types.h> | #include <sys/types.h> | |||
#include <sys/stat.h> | #include <sys/stat.h> | |||
/* this will stay as long as the DeviceKit integration of udev is work in p rogress */ | /* this will stay as long as the DeviceKit integration of udev is work in p rogress */ | |||
skipping to change at line 88 | skipping to change at line 80 | |||
extern const char *udev_device_get_property_value(struct udev_device *udev_ device, const char *key); | extern const char *udev_device_get_property_value(struct udev_device *udev_ device, const char *key); | |||
extern const char *udev_device_get_driver(struct udev_device *udev_device); | extern const char *udev_device_get_driver(struct udev_device *udev_device); | |||
extern dev_t udev_device_get_devnum(struct udev_device *udev_device); | extern dev_t udev_device_get_devnum(struct udev_device *udev_device); | |||
extern const char *udev_device_get_action(struct udev_device *udev_device); | extern const char *udev_device_get_action(struct udev_device *udev_device); | |||
extern unsigned long long int udev_device_get_seqnum(struct udev_device *ud ev_device); | extern unsigned long long int udev_device_get_seqnum(struct udev_device *ud ev_device); | |||
extern const char *udev_device_get_sysattr_value(struct udev_device *udev_d evice, const char *sysattr); | extern const char *udev_device_get_sysattr_value(struct udev_device *udev_d evice, const char *sysattr); | |||
/* udev and kernel device events */ | /* udev and kernel device events */ | |||
struct udev_monitor; | struct udev_monitor; | |||
extern struct udev_monitor *udev_monitor_new_from_socket(struct udev *udev, const char *socket_path); | extern struct udev_monitor *udev_monitor_new_from_socket(struct udev *udev, const char *socket_path); | |||
extern struct udev_monitor *udev_monitor_new_from_netlink(struct udev *udev ); | extern struct udev_monitor *udev_monitor_new_from_netlink(struct udev *udev , const char *name); | |||
extern int udev_monitor_enable_receiving(struct udev_monitor *udev_monitor) ; | extern int udev_monitor_enable_receiving(struct udev_monitor *udev_monitor) ; | |||
extern struct udev_monitor *udev_monitor_ref(struct udev_monitor *udev_moni tor); | extern struct udev_monitor *udev_monitor_ref(struct udev_monitor *udev_moni tor); | |||
extern void udev_monitor_unref(struct udev_monitor *udev_monitor); | extern void udev_monitor_unref(struct udev_monitor *udev_monitor); | |||
extern struct udev *udev_monitor_get_udev(struct udev_monitor *udev_monitor ); | extern struct udev *udev_monitor_get_udev(struct udev_monitor *udev_monitor ); | |||
extern int udev_monitor_get_fd(struct udev_monitor *udev_monitor); | extern int udev_monitor_get_fd(struct udev_monitor *udev_monitor); | |||
extern struct udev_device *udev_monitor_receive_device(struct udev_monitor *udev_monitor); | extern struct udev_device *udev_monitor_receive_device(struct udev_monitor *udev_monitor); | |||
/* sys enumeration */ | /* sys enumeration */ | |||
struct udev_enumerate; | struct udev_enumerate; | |||
extern struct udev_enumerate *udev_enumerate_new(struct udev *udev); | extern struct udev_enumerate *udev_enumerate_new(struct udev *udev); | |||
End of changes. 2 change blocks. | ||||
13 lines changed or deleted | 5 lines changed or added | |||