libudev.h   libudev.h 
skipping to change at line 24 skipping to change at line 24
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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/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); extern struct udev *udev_new(void);
skipping to change at line 64 skipping to change at line 65
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_new_from_subsystem_sysname(struct ud ev *udev, const char *subsystem, const char *sysname); extern struct udev_device *udev_device_new_from_subsystem_sysname(struct ud ev *udev, const char *subsystem, const char *sysname);
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_get_parent_with_subsystem_devtype(st ruct udev_device *udev_device, const char *subsystem, const char *devtype);
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_devtype(struct udev_device *udev_device) ;
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_sysnum(struct udev_device *udev_device); extern const char *udev_device_get_sysnum(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);
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 );
skipping to change at line 103 skipping to change at line 106
/* 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_sysattr(struct udev_enumerate *udev_enu merate, const char *sysattr, const char *value); extern int udev_enumerate_add_match_sysattr(struct udev_enumerate *udev_enu merate, const char *sysattr, const char *value);
extern int udev_enumerate_add_nomatch_sysattr(struct udev_enumerate *udev_e numerate, const char *sysattr, const char *value); extern int udev_enumerate_add_nomatch_sysattr(struct udev_enumerate *udev_e numerate, const char *sysattr, const char *value);
extern int udev_enumerate_add_match_property(struct udev_enumerate *udev_en umerate, const char *property, const char *value);
extern int udev_enumerate_add_syspath(struct udev_enumerate *udev_enumerate , const char *syspath); 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);
 End of changes. 5 change blocks. 
1 lines changed or deleted 5 lines changed or added


 libvolume_id.h   libvolume_id.h 
skipping to change at line 48 skipping to change at line 48
extern int volume_id_probe_filesystem(struct volume_id *id, uint64_t off, u int64_t size); extern int volume_id_probe_filesystem(struct volume_id *id, uint64_t off, u int64_t size);
extern int volume_id_probe_raid(struct volume_id *id, uint64_t off, uint64_ t size); extern int volume_id_probe_raid(struct volume_id *id, uint64_t off, uint64_ t size);
extern int volume_id_probe_all(struct volume_id *id, uint64_t off, uint64_t size); extern int volume_id_probe_all(struct volume_id *id, uint64_t off, uint64_t size);
extern const volume_id_probe_fn_t *volume_id_get_prober_by_type(const char *type); extern const volume_id_probe_fn_t *volume_id_get_prober_by_type(const char *type);
extern void volume_id_all_probers(all_probers_fn_t all_probers_fn, extern void volume_id_all_probers(all_probers_fn_t all_probers_fn,
struct volume_id *id, uint64_t off, uint64 _t size, struct volume_id *id, uint64_t off, uint64 _t size,
void *data); void *data);
extern int volume_id_get_label(struct volume_id *id, const char **label); extern int volume_id_get_label(struct volume_id *id, const char **label);
extern int volume_id_get_label_raw(struct volume_id *id, const uint8_t **la bel, size_t *len); extern int volume_id_get_label_raw(struct volume_id *id, const uint8_t **la bel, size_t *len);
extern int volume_id_get_uuid(struct volume_id *id, const char **uuid); extern int volume_id_get_uuid(struct volume_id *id, const char **uuid);
extern int volume_id_get_uuid_sub(struct volume_id *id, const char **uuid);
extern int volume_id_get_uuid_raw(struct volume_id *id, const uint8_t **uui d, size_t *len); extern int volume_id_get_uuid_raw(struct volume_id *id, const uint8_t **uui d, size_t *len);
extern int volume_id_get_usage(struct volume_id *id, const char **usage); extern int volume_id_get_usage(struct volume_id *id, const char **usage);
extern int volume_id_get_type(struct volume_id *id, const char **type); extern int volume_id_get_type(struct volume_id *id, const char **type);
extern int volume_id_get_type_version(struct volume_id *id, const char **ty pe_version); extern int volume_id_get_type_version(struct volume_id *id, const char **ty pe_version);
extern int volume_id_encode_string(const char *str, char *str_enc, size_t l en); extern int volume_id_encode_string(const char *str, char *str_enc, size_t l en);
#endif #endif
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 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/