diff options
author | nia <nia@NetBSD.org> | 2021-07-13 17:46:04 +0200 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-07-13 19:05:24 +0200 |
commit | 67ca214cbe596e68ba9a64bf996ec8e917d20d6a (patch) | |
tree | 911a256e7421fc34664207198cf2c3d50efa4d2c | |
parent | e7aaf79166c089dde2ffb34de7e0559c903aceae (diff) |
netbsd: Add dyanmicMeters stubs to fix the build
Signed-off-by: Nia Alarie <nia@NetBSD.org>
-rw-r--r-- | netbsd/NetBSDProcessList.c | 4 | ||||
-rw-r--r-- | netbsd/NetBSDProcessList.h | 2 | ||||
-rw-r--r-- | netbsd/Platform.h | 8 |
3 files changed, 11 insertions, 3 deletions
diff --git a/netbsd/NetBSDProcessList.c b/netbsd/NetBSDProcessList.c index c3b5e004..35afd9ec 100644 --- a/netbsd/NetBSDProcessList.c +++ b/netbsd/NetBSDProcessList.c @@ -38,7 +38,7 @@ static long fscale; static int pageSize; static int pageSizeKB; -ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidMatchList, uid_t userId) { +ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* dynamicMeters, Hashtable* pidMatchList, uid_t userId) { const int mib[] = { CTL_HW, HW_NCPU }; const int fmib[] = { CTL_KERN, KERN_FSCALE }; int r; @@ -47,7 +47,7 @@ ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidMatchList, ui NetBSDProcessList* npl = xCalloc(1, sizeof(NetBSDProcessList)); ProcessList* pl = (ProcessList*) npl; - ProcessList_init(pl, Class(NetBSDProcess), usersTable, pidMatchList, userId); + ProcessList_init(pl, Class(NetBSDProcess), usersTable, dynamicMeters, pidMatchList, userId); size = sizeof(pl->cpuCount); r = sysctl(mib, 2, &pl->cpuCount, &size, NULL, 0); diff --git a/netbsd/NetBSDProcessList.h b/netbsd/NetBSDProcessList.h index ecb486f1..495fd88c 100644 --- a/netbsd/NetBSDProcessList.h +++ b/netbsd/NetBSDProcessList.h @@ -47,7 +47,7 @@ typedef struct NetBSDProcessList_ { } NetBSDProcessList; -ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidMatchList, uid_t userId); +ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* dynamicMeters, Hashtable* pidMatchList, uid_t userId); void ProcessList_delete(ProcessList* this); diff --git a/netbsd/Platform.h b/netbsd/Platform.h index 320ca5bf..cfde17f1 100644 --- a/netbsd/Platform.h +++ b/netbsd/Platform.h @@ -94,4 +94,12 @@ static inline void Platform_gettime_monotonic(uint64_t* msec) { Generic_gettime_monotonic(msec); } +static inline Hashtable* Platform_dynamicMeters(void) { return NULL; } + +static inline void Platform_dynamicMeterInit(ATTR_UNUSED Meter* meter) { } + +static inline void Platform_dynamicMeterUpdateValues(ATTR_UNUSED Meter* meter) { } + +static inline void Platform_dynamicMeterDisplay(ATTR_UNUSED const Meter* meter, ATTR_UNUSED RichString* out) { } + #endif |