libcamera  v0.0.0+100-debian/0_git20200629+e7aa92a-8-9-g77f5237c-dirty (2021-05-05T16:20:29+01:00)
Supporting cameras in Linux since 2019
sysfs.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 /*
3  * Copyright (C) 2020, Google Inc.
4  *
5  * sysfs.h - Miscellaneous utility functions to access sysfs
6  */
7 #ifndef __LIBCAMERA_INTERNAL_SYSFS_H__
8 #define __LIBCAMERA_INTERNAL_SYSFS_H__
9 
10 #include <string>
11 
12 namespace libcamera {
13 
14 namespace sysfs {
15 
16 std::string charDevPath(const std::string &deviceNode);
17 
18 std::string firmwareNodePath(const std::string &device);
19 
20 } /* namespace sysfs */
21 
22 } /* namespace libcamera */
23 
24 #endif /* __LIBCAMERA_INTERNAL_SYSFS_H__ */
Top-level libcamera namespace.
Definition: bound_method.h:15
std::string firmwareNodePath(const std::string &device)
Retrieve the path of the firmware node for a device.
Definition: sysfs.cpp:70
std::string charDevPath(const std::string &deviceNode)
Retrieve the sysfs path for a character device.
Definition: sysfs.cpp:34