diff options
Diffstat (limited to '')
-rw-r--r-- | src/devlist.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/devlist.h b/src/devlist.h new file mode 100644 index 0000000..35dfd6c --- /dev/null +++ b/src/devlist.h @@ -0,0 +1,27 @@ +#ifndef __INCLUDE_GUARD_DEVLIST_H__ +#define __INCLUDE_GUARD_DEVLIST_H__ + +struct devuser { + unsigned int pid; + char comm[32]; + char device[252]; +}; + +class device; + +struct devpower { + char device[252]; + double power; + class device *dev; +}; + +extern void clean_open_devices(); +extern void collect_open_devices(void); + +extern void clear_devpower(void); +extern void register_devpower(const char *devstring, double power, class device *dev); +extern void run_devpower_list(void); + +extern void report_show_open_devices(void); + +#endif |