libudev-private.h revision 17fcfb5972977b6a3aedca6ad2aa8d1fbfbc761d
/*
* libudev - interface to udev device information
*
* Copyright (C) 2008 Kay Sievers <kay.sievers@vrfy.org>
*
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* 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 _LIBUDEV_PRIVATE_H_
#define _LIBUDEV_PRIVATE_H_
#include "config.h"
#include <syslog.h>
#include "libudev.h"
#include "list.h"
#ifdef USE_LOG
#ifdef USE_DEBUG
#else
#endif /* USE_DEBUG */
#else
#endif
/* libudev */
const char *format, ...)
/* libudev-device */
/* udev_ctrl - daemon runtime setup */
struct udev_ctrl;
struct udev_ctrl_msg;
/* libudev-utils */
#define UTIL_PATH_SIZE 1024
#define UTIL_LINE_SIZE 2048
#define UTIL_NAME_SIZE 512
struct util_name_entry {
char *name;
int *i;
};
extern ssize_t util_get_sys_subsystem(struct udev *udev, const char *devpath, char *subsystem, size_t size);
extern ssize_t util_get_sys_driver(struct udev *udev, const char *devpath, char *driver, size_t size);
extern int util_log_priority(const char *priority);
extern size_t util_path_decode(char *s);
extern void util_remove_trailing_chars(char *path, char c);
#endif