libudev.h | libudev.h | |||
---|---|---|---|---|
skipping to change at line 47 | skipping to change at line 47 | |||
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); | extern int udev_get_log_priority(struct udev *udev); | |||
extern void udev_set_log_priority(struct udev *udev, int priority); | extern void udev_set_log_priority(struct udev *udev, int priority); | |||
extern const char *udev_get_sys_path(struct udev *udev); | extern const char *udev_get_sys_path(struct udev *udev); | |||
extern const char *udev_get_dev_path(struct udev *udev); | extern const char *udev_get_dev_path(struct udev *udev); | |||
extern void *udev_get_userdata(struct udev *udev); | extern void *udev_get_userdata(struct udev *udev); | |||
extern void udev_set_userdata(struct udev *udev, void *userdata); | extern void udev_set_userdata(struct udev *udev, void *userdata); | |||
/* selinux glue */ | ||||
extern void udev_selinux_resetfscreatecon(struct udev *udev); | ||||
extern void udev_selinux_setfscreatecon(struct udev *udev, const char *file | ||||
, unsigned int mode); | ||||
extern void udev_selinux_lsetfilecon(struct udev *udev, const char *file, u | ||||
nsigned int mode); | ||||
/* 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 try *list_entry); | extern struct udev_list_entry *udev_list_entry_get_next(struct udev_list_en try *list_entry); | |||
extern struct udev_list_entry *udev_list_entry_get_by_name(struct udev_list _entry *list_entry, const char *name); | extern struct udev_list_entry *udev_list_entry_get_by_name(struct udev_list _entry *list_entry, const char *name); | |||
extern const char *udev_list_entry_get_name(struct udev_list_entry *list_en try); | extern const char *udev_list_entry_get_name(struct udev_list_entry *list_en try); | |||
extern const char *udev_list_entry_get_value(struct udev_list_entry *list_e ntry); | 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, const char *syspath); | extern struct udev_device *udev_device_new_from_syspath(struct udev *udev, const char *syspath); | |||
extern struct udev_device *udev_device_new_from_devnum(struct udev *udev, c har type, dev_t devnum); | extern struct udev_device *udev_device_new_from_devnum(struct udev *udev, c har type, dev_t devnum); | |||
extern struct udev_device *udev_device_get_parent(struct udev_device *udev_ device); | extern struct udev_device *udev_device_get_parent(struct udev_device *udev_ device); | |||
extern struct udev_device *udev_device_get_parent_with_subsystem(struct ude v_device *udev_device, const char *subsystem); | ||||
extern struct udev_device *udev_device_ref(struct udev_device *udev_device) ; | extern struct udev_device *udev_device_ref(struct udev_device *udev_device) ; | |||
extern void udev_device_unref(struct udev_device *udev_device); | extern void udev_device_unref(struct udev_device *udev_device); | |||
extern struct udev *udev_device_get_udev(struct udev_device *udev_device); | extern struct udev *udev_device_get_udev(struct udev_device *udev_device); | |||
extern const char *udev_device_get_devpath(struct udev_device *udev_device) ; | extern const char *udev_device_get_devpath(struct udev_device *udev_device) ; | |||
extern const char *udev_device_get_subsystem(struct udev_device *udev_devic e); | extern const char *udev_device_get_subsystem(struct udev_device *udev_devic e); | |||
extern const char *udev_device_get_syspath(struct udev_device *udev_device) ; | extern const char *udev_device_get_syspath(struct udev_device *udev_device) ; | |||
extern const char *udev_device_get_sysname(struct udev_device *udev_device) ; | extern const char *udev_device_get_sysname(struct udev_device *udev_device) ; | |||
extern const char *udev_device_get_devnode(struct udev_device *udev_device) ; | extern const char *udev_device_get_devnode(struct udev_device *udev_device) ; | |||
extern struct udev_list_entry *udev_device_get_devlinks_list_entry(struct u dev_device *udev_device); | extern struct udev_list_entry *udev_device_get_devlinks_list_entry(struct u dev_device *udev_device); | |||
extern struct udev_list_entry *udev_device_get_properties_list_entry(struct udev_device *udev_device); | extern struct udev_list_entry *udev_device_get_properties_list_entry(struct udev_device *udev_device); | |||
skipping to change at line 105 | skipping to change at line 101 | |||
/* 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); | |||
extern struct udev_enumerate *udev_enumerate_ref(struct udev_enumerate *ude v_enumerate); | extern struct udev_enumerate *udev_enumerate_ref(struct udev_enumerate *ude v_enumerate); | |||
extern void udev_enumerate_unref(struct udev_enumerate *udev_enumerate); | extern void udev_enumerate_unref(struct udev_enumerate *udev_enumerate); | |||
extern struct udev *udev_enumerate_get_udev(struct udev_enumerate *udev_enu merate); | extern struct udev *udev_enumerate_get_udev(struct udev_enumerate *udev_enu merate); | |||
extern int udev_enumerate_add_match_subsystem(struct udev_enumerate *udev_e numerate, const char *subsystem); | extern int udev_enumerate_add_match_subsystem(struct udev_enumerate *udev_e numerate, const char *subsystem); | |||
extern int udev_enumerate_add_nomatch_subsystem(struct udev_enumerate *udev _enumerate, const char *subsystem); | extern int udev_enumerate_add_nomatch_subsystem(struct udev_enumerate *udev _enumerate, const char *subsystem); | |||
extern int udev_enumerate_add_match_attr(struct udev_enumerate *udev_enumer ate, const char *attr, const char *value); | extern int udev_enumerate_add_match_attr(struct udev_enumerate *udev_enumer ate, const char *attr, const char *value); | |||
extern int udev_enumerate_add_nomatch_attr(struct udev_enumerate *udev_enum erate, const char *attr, const char *value); | extern int udev_enumerate_add_nomatch_attr(struct udev_enumerate *udev_enum erate, const char *attr, const char *value); | |||
extern int udev_enumerate_add_device(struct udev_enumerate *udev_enumerate, struct udev_device *udev_device); | extern int udev_enumerate_add_syspath(struct udev_enumerate *udev_enumerate , const char *syspath); | |||
extern int udev_enumerate_scan_devices(struct udev_enumerate *udev_enumerat e); | extern int udev_enumerate_scan_devices(struct udev_enumerate *udev_enumerat e); | |||
extern int udev_enumerate_scan_subsystems(struct udev_enumerate *udev_enume rate); | extern int udev_enumerate_scan_subsystems(struct udev_enumerate *udev_enume rate); | |||
extern struct udev_list_entry *udev_enumerate_get_list_entry(struct udev_en umerate *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); | extern struct udev_queue *udev_queue_new(struct udev *udev); | |||
extern struct udev_queue *udev_queue_ref(struct udev_queue *udev_queue); | extern struct udev_queue *udev_queue_ref(struct udev_queue *udev_queue); | |||
extern void udev_queue_unref(struct udev_queue *udev_queue); | extern void udev_queue_unref(struct udev_queue *udev_queue); | |||
extern struct udev *udev_queue_get_udev(struct udev_queue *udev_queue); | extern struct udev *udev_queue_get_udev(struct udev_queue *udev_queue); | |||
End of changes. 3 change blocks. | ||||
8 lines changed or deleted | 2 lines changed or added | |||