mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-04 01:37:34 -08:00
This installs a libudev.so.0 that wraps libudev.so.1 and provides the few functions that were removed with the SONAME bump. This is only needed for some older binary-only software, including Steam. Package-Manager: portage-2.2.20.1
38 lines
895 B
C
38 lines
895 B
C
/*
|
|
* Copyright (C) 2015 Jonathan Callen <jcallen@gentoo.org>
|
|
* Copyright (C) 2008-2010 Kay Sievers <kay.sievers@vrfy.org>
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* 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.
|
|
*/
|
|
|
|
#include <errno.h>
|
|
#include <stddef.h>
|
|
|
|
void *udev_monitor_new_from_socket(void *udev, const void *path) {
|
|
errno = ENOSYS;
|
|
return NULL;
|
|
}
|
|
|
|
void *udev_queue_get_failed_list_entry(void *udev_queue) {
|
|
errno = ENOSYS;
|
|
return NULL;
|
|
}
|
|
|
|
const char *udev_get_sys_path(void *udev) {
|
|
if (!udev) return NULL;
|
|
return "/sys";
|
|
}
|
|
|
|
const char *udev_get_dev_path(void *udev) {
|
|
if (!udev) return NULL;
|
|
return "/dev";
|
|
}
|
|
|
|
const char *udev_get_run_path(void *udev) {
|
|
if (!udev) return NULL;
|
|
return "/run/udev";
|
|
}
|