diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-01-21 23:27:31 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-01-21 23:27:31 -0200 |
commit | 3383d8e5561dfc6fb2b65e0a194df94ccb5e08af (patch) | |
tree | dafba704561386b31b6b8af6dafb5b9a2ba7453c /Meter.h | |
parent | 36b78328843d0dae0d0fadbd0e814a8a1546327c (diff) |
Sorry about the mega-patch.
This is a work-in-progress, code is currently broken.
(Some actions, and notably, the header, are missing.)
Diffstat (limited to 'Meter.h')
-rw-r--r-- | Meter.h | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -9,10 +9,11 @@ Released under the GNU GPL, see the COPYING file in the source distribution for its full text. */ -#define METER_BUFFER_LEN 128 +#define METER_BUFFER_LEN 256 #include "ListItem.h" -#include "ProcessList.h" + +#include <sys/time.h> typedef struct Meter_ Meter; @@ -64,7 +65,7 @@ struct Meter_ { int param; void* drawData; int h; - ProcessList* pl; + struct ProcessList_* pl; double* values; double total; }; @@ -99,7 +100,7 @@ typedef struct GraphData_ { extern MeterClass Meter_class; -Meter* Meter_new(ProcessList* pl, int param, MeterClass* type); +Meter* Meter_new(struct ProcessList_* pl, int param, MeterClass* type); void Meter_delete(Object* cast); @@ -115,8 +116,6 @@ ListItem* Meter_toListItem(Meter* this); /* ---------- GraphMeterMode ---------- */ -#define DrawDot(a,y,c) do { attrset(a); mvaddch(y, x+k, c); } while(0) - /* ---------- LEDMeterMode ---------- */ extern MeterMode* Meter_modes[]; |