libudev-private.h revision 48a9b173e88738ff4eefb3519f1d27711b417c8d
/*
* libudev - interface to udev device information
*
* Copyright (C) 2008-2009 Kay Sievers <kay.sievers@vrfy.org>
*
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*/
#ifndef _LIBUDEV_PRIVATE_H_
#define _LIBUDEV_PRIVATE_H_
#include <syslog.h>
#include "libudev.h"
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
#ifdef USE_LOG
# ifdef DEBUG
# else
# endif
#else
#endif
/* libudev */
const char *format, ...)
/* libudev-device */
struct udev_list_entry *udev_device_add_property(struct udev_device *udev_device, const char *key, const char *value);
struct udev_list_entry *udev_device_add_property_from_string(struct udev_device *udev_device, const char *property);
int udev_monitor_allow_unicast_sender(struct udev_monitor *udev_monitor, struct udev_monitor *sender);
/* libudev-ctrl - daemon runtime setup */
struct udev_ctrl;
struct udev_ctrl_msg;
/* libudev-list */
struct udev_list_node {
};
/* libudev-queue */
/* libudev-queue-export */
int udev_queue_export_device_queued(struct udev_queue_export *udev_queue_export, struct udev_device *udev_device);
int udev_queue_export_device_finished(struct udev_queue_export *udev_queue_export, struct udev_device *udev_device);
int udev_queue_export_device_failed(struct udev_queue_export *udev_queue_export, struct udev_device *udev_device);
/* libudev-utils */
#define UTIL_PATH_SIZE 1024
#define UTIL_LINE_SIZE 2048
#define UTIL_NAME_SIZE 512
#define UDEV_ALLOWED_CHARS_INPUT "/ $%?,"
ssize_t util_get_sys_subsystem(struct udev *udev, const char *syspath, char *subsystem, size_t size);
int util_log_priority(const char *priority);
size_t util_path_decode(char *s);
void util_remove_trailing_chars(char *path, char c);
void util_set_fd_cloexec(int fd);
unsigned int util_string_hash32(const char *str);
#endif