mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-13 12:44:34 +03:00
Meter: use explicit type for drawData
This commit is contained in:

committed by
cgzones

parent
25022c219d
commit
0b9a001498
12
Meter.h
12
Meter.h
@ -53,6 +53,11 @@ typedef struct MeterClass_ {
|
||||
#define Meter_name(this_) As_Meter(this_)->name
|
||||
#define Meter_uiName(this_) As_Meter(this_)->uiName
|
||||
|
||||
typedef struct GraphData_ {
|
||||
struct timeval time;
|
||||
double values[METER_BUFFER_LEN];
|
||||
} GraphData;
|
||||
|
||||
struct Meter_ {
|
||||
Object super;
|
||||
Meter_Draw draw;
|
||||
@ -60,7 +65,7 @@ struct Meter_ {
|
||||
char* caption;
|
||||
int mode;
|
||||
int param;
|
||||
void* drawData;
|
||||
GraphData* drawData;
|
||||
int h;
|
||||
struct ProcessList_* pl;
|
||||
char curItems;
|
||||
@ -83,11 +88,6 @@ typedef enum {
|
||||
LAST_METERMODE
|
||||
} MeterModeId;
|
||||
|
||||
typedef struct GraphData_ {
|
||||
struct timeval time;
|
||||
double values[METER_BUFFER_LEN];
|
||||
} GraphData;
|
||||
|
||||
extern const MeterClass Meter_class;
|
||||
|
||||
Meter* Meter_new(struct ProcessList_* pl, int param, const MeterClass* type);
|
||||
|
Reference in New Issue
Block a user