Turn glibtop::machine from a value to a pointer, allocated on init.
This hides the glibtop_machine implementation.
This commit is contained in:
committed by
Benoît Dejean
parent
42e860e5ad
commit
0642c2d610
@@ -26,6 +26,7 @@
|
||||
#include <glibtop/union.h>
|
||||
#include <glibtop/sysdeps.h>
|
||||
#include <glibtop/error.h>
|
||||
#include <glibtop/machine.h>
|
||||
|
||||
#include <sys/utsname.h>
|
||||
|
||||
@@ -75,6 +76,8 @@ main(int argc, char *argv[])
|
||||
}
|
||||
#endif
|
||||
|
||||
glibtop_machine_new (glibtop_global_server);
|
||||
|
||||
glibtop_init_p (glibtop_global_server, 0, 0);
|
||||
|
||||
glibtop_debug ("uid=%d euid=%d gid=%d egid=%d", getuid(), geteuid(), getgid(), getegid());
|
||||
|
Reference in New Issue
Block a user