summaryrefslogtreecommitdiffstats
path: root/sysfs.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:13:39 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:13:39 +0000
commit18d2dadb3c9132b52fdc88f509ea9005b9eebd5f (patch)
tree8e399598f572b2e88c16ddd26fb1fe601dd0e64b /sysfs.h
parentInitial commit. (diff)
downloadusbutils-18d2dadb3c9132b52fdc88f509ea9005b9eebd5f.tar.xz
usbutils-18d2dadb3c9132b52fdc88f509ea9005b9eebd5f.zip
Adding upstream version 1:017.upstream/1%017upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'sysfs.h')
-rw-r--r--sysfs.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/sysfs.h b/sysfs.h
new file mode 100644
index 0000000..63771f5
--- /dev/null
+++ b/sysfs.h
@@ -0,0 +1,16 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Helpers for querying USB properties from sysfs
+ *
+ * Copyright (C) 1999, 2000 Thomas Sailer (sailer@ife.ee.ethz.ch)
+ */
+
+#ifndef _SYSFS_H
+#define _SYSFS_H
+/* ---------------------------------------------------------------------- */
+
+int get_sysfs_name(char *buf, size_t size, libusb_device *dev);
+extern int read_sysfs_prop(char *buf, size_t size, char *sysfs_name, char *propname);
+
+/* ---------------------------------------------------------------------- */
+#endif /* _SYSFS_H */