statgrab_health.h
00001
00002 #include <stdint.h>
00003 #include <libplayercore/playercore.h>
00004
00005 extern "C"
00006 {
00007 #include <statgrab.h>
00008 }
00009
00011
00012 class StatGrabDriver : public Driver
00013 {
00014 public:
00015
00016 StatGrabDriver(ConfigFile* cf, int section);
00017
00018
00019 int Setup();
00020 int Shutdown();
00021
00022 private:
00023
00024 virtual void Main();
00025 void RefreshData();
00026
00027
00028
00029
00030 sg_swap_stats *swap_stats;
00031
00032
00033 sg_cpu_percents *cpu_percent;
00034
00035
00036 sg_mem_stats *mem_data;
00037 double mem_percent;
00038
00039
00040 player_devaddr_t mHealthId;
00041 player_health_data_t mHealth;
00042
00043
00044 int status;
00045 int32_t mSleep;
00046
00047 };