libudev.h   libudev.h 
/* /*
* libudev - interface to udev device information * libudev - interface to udev device information
* *
* Copyright (C) 2008-2009 Kay Sievers <kay.sievers@vrfy.org> * Copyright (C) 2008-2010 Kay Sievers <kay.sievers@vrfy.org>
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either * License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version. * version 2.1 of the License, or (at your option) any later version.
*/ */
#ifndef _LIBUDEV_H_ #ifndef _LIBUDEV_H_
#define _LIBUDEV_H_ #define _LIBUDEV_H_
skipping to change at line 93 skipping to change at line 93
/* retrieve device properties */ /* retrieve device properties */
const char *udev_device_get_devpath(struct udev_device *udev_device); const char *udev_device_get_devpath(struct udev_device *udev_device);
const char *udev_device_get_subsystem(struct udev_device *udev_device); const char *udev_device_get_subsystem(struct udev_device *udev_device);
const char *udev_device_get_devtype(struct udev_device *udev_device); const char *udev_device_get_devtype(struct udev_device *udev_device);
const char *udev_device_get_syspath(struct udev_device *udev_device); const char *udev_device_get_syspath(struct udev_device *udev_device);
const char *udev_device_get_sysname(struct udev_device *udev_device); const char *udev_device_get_sysname(struct udev_device *udev_device);
const char *udev_device_get_sysnum(struct udev_device *udev_device); const char *udev_device_get_sysnum(struct udev_device *udev_device);
const char *udev_device_get_devnode(struct udev_device *udev_device); const char *udev_device_get_devnode(struct udev_device *udev_device);
struct udev_list_entry *udev_device_get_devlinks_list_entry(struct udev_dev ice *udev_device); struct udev_list_entry *udev_device_get_devlinks_list_entry(struct udev_dev ice *udev_device);
struct udev_list_entry *udev_device_get_properties_list_entry(struct udev_d evice *udev_device); struct udev_list_entry *udev_device_get_properties_list_entry(struct udev_d evice *udev_device);
struct udev_list_entry *udev_device_get_tags_list_entry(struct udev_device *udev_device);
const char *udev_device_get_property_value(struct udev_device *udev_device, const char *key); const char *udev_device_get_property_value(struct udev_device *udev_device, const char *key);
const char *udev_device_get_driver(struct udev_device *udev_device); const char *udev_device_get_driver(struct udev_device *udev_device);
dev_t udev_device_get_devnum(struct udev_device *udev_device); dev_t udev_device_get_devnum(struct udev_device *udev_device);
const char *udev_device_get_action(struct udev_device *udev_device); const char *udev_device_get_action(struct udev_device *udev_device);
unsigned long long int udev_device_get_seqnum(struct udev_device *udev_devi ce); unsigned long long int udev_device_get_seqnum(struct udev_device *udev_devi ce);
const char *udev_device_get_sysattr_value(struct udev_device *udev_device, const char *sysattr); const char *udev_device_get_sysattr_value(struct udev_device *udev_device, const char *sysattr);
/* /*
* udev_monitor * udev_monitor
* *
skipping to change at line 121 skipping to change at line 122
/* custom socket (use netlink and filters instead) */ /* custom socket (use netlink and filters instead) */
struct udev_monitor *udev_monitor_new_from_socket(struct udev *udev, const char *socket_path); struct udev_monitor *udev_monitor_new_from_socket(struct udev *udev, const char *socket_path);
/* bind socket */ /* bind socket */
int udev_monitor_enable_receiving(struct udev_monitor *udev_monitor); int udev_monitor_enable_receiving(struct udev_monitor *udev_monitor);
int udev_monitor_set_receive_buffer_size(struct udev_monitor *udev_monitor, int size); int udev_monitor_set_receive_buffer_size(struct udev_monitor *udev_monitor, int size);
int udev_monitor_get_fd(struct udev_monitor *udev_monitor); int udev_monitor_get_fd(struct udev_monitor *udev_monitor);
struct udev_device *udev_monitor_receive_device(struct udev_monitor *udev_m onitor); struct udev_device *udev_monitor_receive_device(struct udev_monitor *udev_m onitor);
/* in-kernel socket filters to select messages that get delivered to a list ener */ /* in-kernel socket filters to select messages that get delivered to a list ener */
int udev_monitor_filter_add_match_subsystem_devtype(struct udev_monitor *ud ev_monitor, int udev_monitor_filter_add_match_subsystem_devtype(struct udev_monitor *ud ev_monitor,
const char *subsystem, c onst char *devtype); const char *subsystem, c onst char *devtype);
int udev_monitor_filter_add_match_tag(struct udev_monitor *udev_monitor, co nst char *tag);
int udev_monitor_filter_update(struct udev_monitor *udev_monitor); int udev_monitor_filter_update(struct udev_monitor *udev_monitor);
int udev_monitor_filter_remove(struct udev_monitor *udev_monitor); int udev_monitor_filter_remove(struct udev_monitor *udev_monitor);
/* /*
* udev_enumerate * udev_enumerate
* *
* search sysfs for specific devices and provide a sorted list * search sysfs for specific devices and provide a sorted list
*/ */
struct udev_enumerate; struct udev_enumerate;
struct udev_enumerate *udev_enumerate_ref(struct udev_enumerate *udev_enume rate); struct udev_enumerate *udev_enumerate_ref(struct udev_enumerate *udev_enume rate);
void udev_enumerate_unref(struct udev_enumerate *udev_enumerate); void udev_enumerate_unref(struct udev_enumerate *udev_enumerate);
struct udev *udev_enumerate_get_udev(struct udev_enumerate *udev_enumerate) ; struct udev *udev_enumerate_get_udev(struct udev_enumerate *udev_enumerate) ;
struct udev_enumerate *udev_enumerate_new(struct udev *udev); struct udev_enumerate *udev_enumerate_new(struct udev *udev);
/* device properties filter */ /* device properties filter */
int udev_enumerate_add_match_subsystem(struct udev_enumerate *udev_enumerat e, const char *subsystem); int udev_enumerate_add_match_subsystem(struct udev_enumerate *udev_enumerat e, const char *subsystem);
int udev_enumerate_add_nomatch_subsystem(struct udev_enumerate *udev_enumer ate, const char *subsystem); int udev_enumerate_add_nomatch_subsystem(struct udev_enumerate *udev_enumer ate, const char *subsystem);
int udev_enumerate_add_match_sysattr(struct udev_enumerate *udev_enumerate, const char *sysattr, const char *value); int udev_enumerate_add_match_sysattr(struct udev_enumerate *udev_enumerate, const char *sysattr, const char *value);
int udev_enumerate_add_nomatch_sysattr(struct udev_enumerate *udev_enumerat e, const char *sysattr, const char *value); int udev_enumerate_add_nomatch_sysattr(struct udev_enumerate *udev_enumerat e, const char *sysattr, const char *value);
int udev_enumerate_add_match_property(struct udev_enumerate *udev_enumerate , const char *property, const char *value); int udev_enumerate_add_match_property(struct udev_enumerate *udev_enumerate , const char *property, const char *value);
int udev_enumerate_add_match_sysname(struct udev_enumerate *udev_enumerate, const char *sysname); int udev_enumerate_add_match_sysname(struct udev_enumerate *udev_enumerate, const char *sysname);
int udev_enumerate_add_match_tag(struct udev_enumerate *udev_enumerate, con st char *tag);
int udev_enumerate_add_syspath(struct udev_enumerate *udev_enumerate, const char *syspath); int udev_enumerate_add_syspath(struct udev_enumerate *udev_enumerate, const char *syspath);
/* run enumeration with active filters */ /* run enumeration with active filters */
int udev_enumerate_scan_devices(struct udev_enumerate *udev_enumerate); int udev_enumerate_scan_devices(struct udev_enumerate *udev_enumerate);
int udev_enumerate_scan_subsystems(struct udev_enumerate *udev_enumerate); int udev_enumerate_scan_subsystems(struct udev_enumerate *udev_enumerate);
/* return device list */ /* return device list */
struct udev_list_entry *udev_enumerate_get_list_entry(struct udev_enumerate *udev_enumerate); struct udev_list_entry *udev_enumerate_get_list_entry(struct udev_enumerate *udev_enumerate);
/* /*
* udev_queue * udev_queue
* *
 End of changes. 4 change blocks. 
1 lines changed or deleted 4 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/