summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenoit Dejean <bdejean@gmail.com>2015-07-21 21:25:44 +0200
committerBenoƮt Dejean <bdejean@gmail.com>2015-08-08 11:00:57 +0200
commit0642c2d610d19097a9bd83f20f5ad53e2a63035f (patch)
tree7ddf9c7f6287616460805c7c2cf044f7d4bbc71f /src
parent42e860e5add714d0d8ccbc9747784bd4eea1ea3e (diff)
downloadlibgtop-0642c2d610d19097a9bd83f20f5ad53e2a63035f.tar.gz
Turn glibtop::machine from a value to a pointer, allocated on init.
This hides the glibtop_machine implementation.
Diffstat (limited to 'src')
-rw-r--r--src/daemon/server.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/daemon/server.c b/src/daemon/server.c
index eafa25a2..60427e89 100644
--- a/src/daemon/server.c
+++ b/src/daemon/server.c
@@ -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());