Amit Arora | e9e16b0 | 2010-08-03 10:15:20 +0530 | [diff] [blame] | 1 | #include <stdio.h> |
| 2 | #include <stdlib.h> |
| 3 | #include <unistd.h> |
| 4 | #include <string.h> |
| 5 | #include <dirent.h> |
| 6 | #include <getopt.h> |
| 7 | #include <errno.h> |
| 8 | |
| 9 | //#define PATH_MAX 1024 |
| 10 | //#define NAME_MAX 128 |
| 11 | #define VALUE_MAX 16 |
| 12 | |
| 13 | struct regulator_info { |
| 14 | char name[NAME_MAX]; |
| 15 | char state[VALUE_MAX]; |
| 16 | char status[VALUE_MAX]; |
| 17 | char type[VALUE_MAX]; |
| 18 | char opmode[VALUE_MAX]; |
| 19 | int microvolts; |
| 20 | int microamps; |
| 21 | int num_users; |
| 22 | } *regulators_info; |
| 23 | |
| 24 | extern int numregulators; |
| 25 | |
| 26 | extern void usage(char **argv); |
| 27 | extern void print_regulator_info(int verbose); |
| 28 | extern void get_sensor_info(char *path, char *name, char *sensor, int verbose); |
| 29 | |
| 30 | |