libudev.h   libudev.h 
skipping to change at line 23 skipping to change at line 23
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* 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 <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_SUBJ ECT_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
struct udev; struct udev;
struct udev_device;
struct udev_monitor;
extern struct udev *udev_new(void); extern struct udev *udev_new(void);
extern struct udev *udev_ref(struct udev *udev); extern struct udev *udev_ref(struct udev *udev);
extern void udev_unref(struct udev *udev); extern void udev_unref(struct udev *udev);
extern void udev_set_log_fn(struct udev *udev, extern 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);
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_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);
struct udev_device;
extern struct udev_device *udev_device_new_from_devpath(struct udev *udev, const char *devpath); extern struct udev_device *udev_device_new_from_devpath(struct udev *udev, const char *devpath);
extern struct udev_device *udev_device_new_from_parent(struct udev_device * udev_device);
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_devname(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_sysname(struct udev_device *udev_device)
;
extern const char *udev_device_get_devname(struct udev_device *udev_device)
;
extern int udev_device_get_devlinks(struct udev_device *udev_device, extern int udev_device_get_devlinks(struct udev_device *udev_device,
int (*cb)(struct udev_device *udev_devic e, int (*cb)(struct udev_device *udev_devic e,
const char *value, void *data) , const char *value, void *data) ,
void *data); void *data);
extern int udev_device_get_properties(struct udev_device *udev_device, extern int udev_device_get_properties(struct udev_device *udev_device,
int (*cb)(struct udev_device *udev_dev ice, int (*cb)(struct udev_device *udev_dev ice,
const char *key, const char *value, void *data), const char *key, const char *value, void *data),
void *data); void *data);
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 int udev_devices_enumerate(struct udev *udev, const char *subsystem, extern int udev_enumerate_devices(struct udev *udev, const char *subsystem,
int (*cb)(struct udev *udev, int (*cb)(struct udev *udev,
const char *devpath, const char *subsystem, const char *name, void *data), const char *devpath, const char *subsystem, const char *name, void *data),
void *data); void *data);
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 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_get_device(struct udev_monitor *ude v_monitor); extern struct udev_device *udev_monitor_receive_device(struct udev_monitor *udev_monitor);
#endif #endif
 End of changes. 14 change blocks. 
7 lines changed or deleted 31 lines changed or added


 libvolume_id.h   libvolume_id.h 
/* /*
* volume_id - reads volume label and uuid * volume_id - reads volume label and uuid
* *
* Copyright (C) 2005-2008 Kay Sievers <kay.sievers@vrfy.org> * Copyright (C) 2005-2008 Kay Sievers <kay.sievers@vrfy.org>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
it * it under the terms of the GNU General Public License as published by
* under the terms of the GNU General Public License as published by th * the Free Software Foundation, either version 2 of the License, or
e * (at your option) any later version.
* Free Software Foundation version 2 of the License. *
* 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 _LIBVOLUME_ID_H_ #ifndef _LIBVOLUME_ID_H_
#define _LIBVOLUME_ID_H_ #define _LIBVOLUME_ID_H_
#include <stdint.h> #include <stdint.h>
#include <stddef.h> #include <stddef.h>
struct volume_id; struct volume_id;
typedef void (*volume_id_log_fn_t)(int priority, const char *file, int line , const char *format, ...) typedef void (*volume_id_log_fn_t)(int priority, const char *file, int line , const char *format, ...)
 End of changes. 1 change blocks. 
5 lines changed or deleted 12 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/