Turn glibtop::machine from a value to a pointer, allocated on init.

This hides the glibtop_machine implementation.
This commit is contained in:
Benoit Dejean
2015-07-21 21:25:44 +02:00
committed by Benoît Dejean
parent 42e860e5ad
commit 0642c2d610
18 changed files with 55 additions and 45 deletions

View File

@@ -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());