diff options
author | Benoit Dejean <bdejean@gmail.com> | 2015-07-21 21:25:44 +0200 |
---|---|---|
committer | BenoƮt Dejean <bdejean@gmail.com> | 2015-08-08 11:00:57 +0200 |
commit | 0642c2d610d19097a9bd83f20f5ad53e2a63035f (patch) | |
tree | 7ddf9c7f6287616460805c7c2cf044f7d4bbc71f /src | |
parent | 42e860e5add714d0d8ccbc9747784bd4eea1ea3e (diff) | |
download | libgtop-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.c | 3 |
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()); |