2021-06-23 07:44:56 +00:00
|
|
|
#ifndef HEADER_DynamicMeter
|
|
|
|
#define HEADER_DynamicMeter
|
|
|
|
|
2021-07-18 04:25:45 +00:00
|
|
|
#include "Hashtable.h"
|
2021-06-23 07:44:56 +00:00
|
|
|
#include "Meter.h"
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct DynamicMeter_ {
|
|
|
|
char name[32]; /* unique name, cannot contain spaces */
|
|
|
|
char* caption;
|
|
|
|
char* description;
|
|
|
|
unsigned int type;
|
|
|
|
double maximum;
|
|
|
|
|
|
|
|
void* dynamicData; /* platform-specific meter data */
|
|
|
|
} DynamicMeter;
|
|
|
|
|
|
|
|
Hashtable* DynamicMeters_new(void);
|
|
|
|
|
2021-07-12 06:51:19 +00:00
|
|
|
const char* DynamicMeter_lookup(Hashtable* dynamics, unsigned int param);
|
2021-06-23 07:44:56 +00:00
|
|
|
|
2021-07-12 06:51:19 +00:00
|
|
|
bool DynamicMeter_search(Hashtable* dynamics, const char* name, unsigned int* key);
|
2021-06-23 07:44:56 +00:00
|
|
|
|
|
|
|
extern const MeterClass DynamicMeter_class;
|
|
|
|
|
|
|
|
#endif
|