Merge branch 'cleanup-init-done' into master

This commit is contained in:
Nathan Scott
2020-11-23 17:34:44 +11:00
15 changed files with 159 additions and 87 deletions

View File

@ -131,11 +131,20 @@ const MeterClass* const Platform_meterTypes[] = {
NULL
};
void Platform_setBindings(Htop_Action* keys) {
(void) keys;
int Platform_numberOfFields = 100;
void Platform_init(void) {
/* no platform-specific setup needed */
}
int Platform_numberOfFields = 100;
void Platform_done(void) {
/* no platform-specific cleanup needed */
}
void Platform_setBindings(Htop_Action* keys) {
/* no platform-specific key bindings */
(void) keys;
}
int Platform_getUptime() {
struct timeval bootTime, currTime;

View File

@ -19,20 +19,23 @@ in the source distribution for its full text.
#include "ProcessLocksScreen.h"
#include "SignalsPanel.h"
extern ProcessFieldData Process_fields[];
extern ProcessField Platform_defaultFields[];
extern int Platform_numberOfFields;
extern const SignalItem Platform_signals[];
extern const unsigned int Platform_numberOfSignals;
extern ProcessFieldData Process_fields[];
extern const MeterClass* const Platform_meterTypes[];
void Platform_setBindings(Htop_Action* keys);
void Platform_init(void);
extern int Platform_numberOfFields;
void Platform_done(void);
void Platform_setBindings(Htop_Action* keys);
int Platform_getUptime(void);