/***
This file is part of systemd.
Copyright 2008-2012 Kay Sievers <kay@vrfy.org>
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.
systemd 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
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#ifndef _LIBUDEV_PRIVATE_H_
#define _LIBUDEV_PRIVATE_H_
#include <signal.h>
#include <stdbool.h>
#include <stdint.h>
#include "libudev.h"
#include "macro.h"
#include "mkdir.h"
#include "strxcpyx.h"
#include "util.h"
#define READ_END 0
/* libudev.c */
/* libudev-device.c */
struct udev_device *udev_device_new_from_synthetic_event(struct udev *udev, const char *syspath, const char *action);
void udev_device_ensure_usec_initialized(struct udev_device *udev_device, struct udev_device *old_device);
/* libudev-device-private.c */
/* libudev-monitor.c - netlink/unix socket communication */
int udev_monitor_allow_unicast_sender(struct udev_monitor *udev_monitor, struct udev_monitor *sender);
/* libudev-list.c */
struct udev_list_node {
};
struct udev_list {
unsigned int entries_cur;
unsigned int entries_max;
bool unique;
};
struct udev_list_entry *udev_list_entry_add(struct udev_list *list, const char *name, const char *value);
/* libudev-queue.c */
/* libudev-queue-private.c */
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);
/* libudev-util.c */
int util_log_priority(const char *priority);
void util_remove_trailing_chars(char *path, char c);
unsigned int util_string_hash32(const char *key);
/* libudev-util-private.c */
int util_resolve_subsys_kernel(struct udev *udev, const char *string, char *result, size_t maxsize, int read_value);
#endif