root/mh-home-sysmon/trunk/datasource.h
| Revision 93, 338 bytes (checked in by inz, 6 months ago) |
|---|
| Line | |
|---|---|
| 1 | #ifndef DATASOURCE_H |
| 2 | #define DATASOURCE_H |
| 3 | |
| 4 | typedef struct _DataSource DataSource; |
| 5 | |
| 6 | struct _DataSource { |
| 7 | void *(*init)(DataSource *data_source); |
| 8 | double (*get_value)(void *ds_data); |
| 9 | void (*deinit)(void *ds_data); |
| 10 | |
| 11 | char *name; |
| 12 | char *max_text; |
| 13 | char *half_text; |
| 14 | char *min_text; |
| 15 | void *ds_data; |
| 16 | }; |
| 17 | |
| 18 | void ds_load(DataSource *ds); |
| 19 | |
| 20 | #endif |
Note: See TracBrowser for help on using the browser.
