libudev.h   libudev.h 
skipping to change at line 26 skipping to change at line 26
#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 */
#if !defined _LIBUDEV_COMPILATION && !defined LIBUDEV_I_KNOW_THE_API_IS_SUB JECT_TO_CHANGE #if !defined _LIBUDEV_COMPILATION && !defined LIBUDEV_I_KNOW_THE_API_IS_SUB JECT_TO_CHANGE
#error "#define LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE is needed to us e this experimental library version" #error "#define LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE is needed to us e this experimental library version"
#endif #endif
/* library context */ /* library context */
struct udev; struct udev;
extern struct udev *udev_new(void); struct udev *udev_new(void);
extern struct udev *udev_ref(struct udev *udev); struct udev *udev_ref(struct udev *udev);
extern void udev_unref(struct udev *udev); void udev_unref(struct udev *udev);
extern void udev_set_log_fn(struct udev *udev, void udev_set_log_fn(struct udev *udev,
void (*log_fn)(struct udev *udev, void (*log_fn)(struct udev *udev,
int priority, const char *file, i nt line, const char *fn, int priority, const char *file, i nt line, const char *fn,
const char *format, va_list args) ); const char *format, va_list args) );
extern int udev_get_log_priority(struct udev *udev); int udev_get_log_priority(struct udev *udev);
extern void udev_set_log_priority(struct udev *udev, int priority); void udev_set_log_priority(struct udev *udev, int priority);
extern const char *udev_get_sys_path(struct udev *udev); const char *udev_get_sys_path(struct udev *udev);
extern const char *udev_get_dev_path(struct udev *udev); const char *udev_get_dev_path(struct udev *udev);
extern void *udev_get_userdata(struct udev *udev); void *udev_get_userdata(struct udev *udev);
extern void udev_set_userdata(struct udev *udev, void *userdata); void udev_set_userdata(struct udev *udev, void *userdata);
/* list iteration */ /* list iteration */
struct udev_list_entry; struct udev_list_entry;
extern struct udev_list_entry *udev_list_entry_get_next(struct udev_list_en struct udev_list_entry *udev_list_entry_get_next(struct udev_list_entry *li
try *list_entry); st_entry);
extern struct udev_list_entry *udev_list_entry_get_by_name(struct udev_list struct udev_list_entry *udev_list_entry_get_by_name(struct udev_list_entry
_entry *list_entry, const char *name); *list_entry, const char *name);
extern const char *udev_list_entry_get_name(struct udev_list_entry *list_en const char *udev_list_entry_get_name(struct udev_list_entry *list_entry);
try); const char *udev_list_entry_get_value(struct udev_list_entry *list_entry);
extern const char *udev_list_entry_get_value(struct udev_list_entry *list_e
ntry);
#define udev_list_entry_foreach(entry, first) \ #define udev_list_entry_foreach(entry, first) \
for (entry = first; \ for (entry = first; \
entry != NULL; \ entry != NULL; \
entry = udev_list_entry_get_next(entry)) entry = udev_list_entry_get_next(entry))
/* sys devices */ /* sys devices */
struct udev_device; struct udev_device;
extern struct udev_device *udev_device_new_from_syspath(struct udev *udev, struct udev_device *udev_device_new_from_syspath(struct udev *udev, const c
const char *syspath); har *syspath);
extern struct udev_device *udev_device_new_from_devnum(struct udev *udev, c struct udev_device *udev_device_new_from_devnum(struct udev *udev, char typ
har type, dev_t devnum); e, dev_t devnum);
extern struct udev_device *udev_device_new_from_subsystem_sysname(struct ud struct udev_device *udev_device_new_from_subsystem_sysname(struct udev *ude
ev *udev, const char *subsystem, const char *sysname); v, const char *subsystem, const char *sysname);
extern struct udev_device *udev_device_get_parent(struct udev_device *udev_ struct udev_device *udev_device_get_parent(struct udev_device *udev_device)
device); ;
extern struct udev_device *udev_device_get_parent_with_subsystem_devtype(st struct udev_device *udev_device_get_parent_with_subsystem_devtype(struct ud
ruct udev_device *udev_device, const char *subsystem, const char *devtype); ev_device *udev_device, const char *subsystem, const char *devtype);
extern struct udev_device *udev_device_ref(struct udev_device *udev_device) struct udev_device *udev_device_ref(struct udev_device *udev_device);
; void udev_device_unref(struct udev_device *udev_device);
extern void udev_device_unref(struct udev_device *udev_device); struct udev *udev_device_get_udev(struct udev_device *udev_device);
extern struct udev *udev_device_get_udev(struct udev_device *udev_device); const char *udev_device_get_devpath(struct udev_device *udev_device);
extern 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_devtype(struct udev_device *udev_device);
extern const char *udev_device_get_subsystem(struct udev_device *udev_devic const char *udev_device_get_syspath(struct udev_device *udev_device);
e); const char *udev_device_get_sysname(struct udev_device *udev_device);
extern const char *udev_device_get_devtype(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);
extern const char *udev_device_get_syspath(struct udev_device *udev_device) struct udev_list_entry *udev_device_get_devlinks_list_entry(struct udev_dev
; ice *udev_device);
extern const char *udev_device_get_sysname(struct udev_device *udev_device) struct udev_list_entry *udev_device_get_properties_list_entry(struct udev_d
; evice *udev_device);
extern const char *udev_device_get_sysnum(struct udev_device *udev_device); const char *udev_device_get_property_value(struct udev_device *udev_device,
extern const char *udev_device_get_devnode(struct udev_device *udev_device) const char *key);
; const char *udev_device_get_driver(struct udev_device *udev_device);
extern struct udev_list_entry *udev_device_get_devlinks_list_entry(struct u dev_t udev_device_get_devnum(struct udev_device *udev_device);
dev_device *udev_device); const char *udev_device_get_action(struct udev_device *udev_device);
extern struct udev_list_entry *udev_device_get_properties_list_entry(struct unsigned long long int udev_device_get_seqnum(struct udev_device *udev_devi
udev_device *udev_device); ce);
extern const char *udev_device_get_property_value(struct udev_device *udev_ const char *udev_device_get_sysattr_value(struct udev_device *udev_device,
device, const char *key); const char *sysattr);
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 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 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, struct udev_monitor *udev_monitor_new_from_socket(struct udev *udev, const
const char *socket_path); char *socket_path);
extern struct udev_monitor *udev_monitor_new_from_netlink(struct udev *udev struct udev_monitor *udev_monitor_new_from_netlink(struct udev *udev, const
, const char *name); char *name);
extern int udev_monitor_enable_receiving(struct udev_monitor *udev_monitor) int udev_monitor_enable_receiving(struct udev_monitor *udev_monitor);
; struct udev_monitor *udev_monitor_ref(struct udev_monitor *udev_monitor);
extern struct udev_monitor *udev_monitor_ref(struct udev_monitor *udev_moni void udev_monitor_unref(struct udev_monitor *udev_monitor);
tor); struct udev *udev_monitor_get_udev(struct udev_monitor *udev_monitor);
extern void udev_monitor_unref(struct udev_monitor *udev_monitor); int udev_monitor_get_fd(struct udev_monitor *udev_monitor);
extern struct udev *udev_monitor_get_udev(struct udev_monitor *udev_monitor struct udev_device *udev_monitor_receive_device(struct udev_monitor *udev_m
); onitor);
extern int udev_monitor_get_fd(struct udev_monitor *udev_monitor); int udev_monitor_filter_add_match_subsystem_devtype(struct udev_monitor *ud
extern struct udev_device *udev_monitor_receive_device(struct udev_monitor ev_monitor, const char *subsystem, const char *devtype);
*udev_monitor); int udev_monitor_filter_update(struct udev_monitor *udev_monitor);
int udev_monitor_filter_remove(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); struct udev_enumerate *udev_enumerate_new(struct udev *udev);
extern struct udev_enumerate *udev_enumerate_ref(struct udev_enumerate *ude struct udev_enumerate *udev_enumerate_ref(struct udev_enumerate *udev_enume
v_enumerate); rate);
extern void udev_enumerate_unref(struct udev_enumerate *udev_enumerate); void udev_enumerate_unref(struct udev_enumerate *udev_enumerate);
extern struct udev *udev_enumerate_get_udev(struct udev_enumerate *udev_enu struct udev *udev_enumerate_get_udev(struct udev_enumerate *udev_enumerate)
merate); ;
extern int udev_enumerate_add_match_subsystem(struct udev_enumerate *udev_e int udev_enumerate_add_match_subsystem(struct udev_enumerate *udev_enumerat
numerate, const char *subsystem); e, const char *subsystem);
extern int udev_enumerate_add_nomatch_subsystem(struct udev_enumerate *udev int udev_enumerate_add_nomatch_subsystem(struct udev_enumerate *udev_enumer
_enumerate, const char *subsystem); ate, const char *subsystem);
extern int udev_enumerate_add_match_sysattr(struct udev_enumerate *udev_enu int udev_enumerate_add_match_sysattr(struct udev_enumerate *udev_enumerate,
merate, const char *sysattr, const char *value); const char *sysattr, const char *value);
extern int udev_enumerate_add_nomatch_sysattr(struct udev_enumerate *udev_e int udev_enumerate_add_nomatch_sysattr(struct udev_enumerate *udev_enumerat
numerate, const char *sysattr, const char *value); e, const char *sysattr, const char *value);
extern int udev_enumerate_add_match_property(struct udev_enumerate *udev_en int udev_enumerate_add_match_property(struct udev_enumerate *udev_enumerate
umerate, const char *property, const char *value); , const char *property, const char *value);
extern int udev_enumerate_add_syspath(struct udev_enumerate *udev_enumerate int udev_enumerate_add_syspath(struct udev_enumerate *udev_enumerate, const
, const char *syspath); char *syspath);
extern int udev_enumerate_scan_devices(struct udev_enumerate *udev_enumerat int udev_enumerate_scan_devices(struct udev_enumerate *udev_enumerate);
e); int udev_enumerate_scan_subsystems(struct udev_enumerate *udev_enumerate);
extern int udev_enumerate_scan_subsystems(struct udev_enumerate *udev_enume struct udev_list_entry *udev_enumerate_get_list_entry(struct udev_enumerate
rate); *udev_enumerate);
extern struct udev_list_entry *udev_enumerate_get_list_entry(struct udev_en
umerate *udev_enumerate);
/* event queue */ /* event queue */
struct udev_queue; struct udev_queue;
extern struct udev_queue *udev_queue_new(struct udev *udev); struct udev_queue *udev_queue_new(struct udev *udev);
extern struct udev_queue *udev_queue_ref(struct udev_queue *udev_queue); struct udev_queue *udev_queue_ref(struct udev_queue *udev_queue);
extern void udev_queue_unref(struct udev_queue *udev_queue); void udev_queue_unref(struct udev_queue *udev_queue);
extern struct udev *udev_queue_get_udev(struct udev_queue *udev_queue); struct udev *udev_queue_get_udev(struct udev_queue *udev_queue);
extern unsigned long long int udev_queue_get_kernel_seqnum(struct udev_queu unsigned long long int udev_queue_get_kernel_seqnum(struct udev_queue *udev
e *udev_queue); _queue);
extern unsigned long long int udev_queue_get_udev_seqnum(struct udev_queue unsigned long long int udev_queue_get_udev_seqnum(struct udev_queue *udev_q
*udev_queue); ueue);
extern int udev_queue_get_udev_is_active(struct udev_queue *udev_queue); int udev_queue_get_udev_is_active(struct udev_queue *udev_queue);
extern int udev_queue_get_queue_is_empty(struct udev_queue *udev_queue); int udev_queue_get_queue_is_empty(struct udev_queue *udev_queue);
extern int udev_queue_get_seqnum_is_finished(struct udev_queue *udev_queue, int udev_queue_get_seqnum_is_finished(struct udev_queue *udev_queue, unsign
unsigned long long int seqnum); ed long long int seqnum);
extern struct udev_list_entry *udev_queue_get_queued_list_entry(struct udev struct udev_list_entry *udev_queue_get_queued_list_entry(struct udev_queue
_queue *udev_queue); *udev_queue);
extern struct udev_list_entry *udev_queue_get_failed_list_entry(struct udev struct udev_list_entry *udev_queue_get_failed_list_entry(struct udev_queue
_queue *udev_queue); *udev_queue);
#endif #endif
 End of changes. 7 change blocks. 
112 lines changed or deleted 102 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/