mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Move generic (shared) code into its own sub-directory
Code that is shared across some (but not all) platforms is moved into a 'generic' home. Makefile.am cleanups to match plus some minor alphabetic reordering/formatting. As discussed in https://github.com/htop-dev/htop/pull/553
This commit is contained in:
@ -14,7 +14,8 @@ in the source distribution for its full text.
|
||||
#include "Action.h"
|
||||
#include "BatteryMeter.h"
|
||||
#include "DiskIOMeter.h"
|
||||
#include "Generic.h"
|
||||
#include "generic/hostname.h"
|
||||
#include "generic/uname.h"
|
||||
#include "Meter.h"
|
||||
#include "NetworkIOMeter.h"
|
||||
#include "Process.h"
|
||||
@ -74,11 +75,11 @@ bool Platform_getNetworkIO(NetworkIOData* data);
|
||||
void Platform_getBattery(double *percent, ACPresence *isOnAC);
|
||||
|
||||
static inline void Platform_getHostname(char* buffer, size_t size) {
|
||||
Generic_Hostname(buffer, size);
|
||||
Generic_hostname(buffer, size);
|
||||
}
|
||||
|
||||
static inline void Platform_getRelease(char** string) {
|
||||
*string = Generic_OSRelease();
|
||||
*string = Generic_uname();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user