Back to index

lshw  02.16
sysfs.h
Go to the documentation of this file.
00001 #ifndef _SYSFS_H_
00002 #define _SYSFS_H_
00003 
00004 #include <string>
00005 #include "hw.h"
00006 
00007 using namespace std;
00008 
00009 namespace sysfs
00010 {
00011 
00012   class entry
00013   {
00014     public:
00015 
00016       static entry byBus(string devbus, string devname);
00017       static entry byClass(string devclass, string devname);
00018 
00019       entry & operator =(const entry &);
00020       entry(const entry &);
00021       ~entry();
00022 
00023       bool hassubdir(const string &);
00024 
00025       struct entry_i * This;
00026 
00027     private:
00028       entry();
00029 
00030   };
00031 
00032 }                                                 // namespace sysfs
00033 
00034 
00035 bool scan_sysfs(hwNode & n);
00036 
00037 std::string sysfs_getbusinfo(const sysfs::entry &);
00038 std::string sysfs_finddevice(const string &name);
00039 #endif