blob: 35dfd6ca77ea50a89b130594fc4acaaacdfabd42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
|