diff options
author | Benoit Dejean <bdejean@gmail.com> | 2015-07-21 23:45:19 +0200 |
---|---|---|
committer | BenoƮt Dejean <bdejean@gmail.com> | 2015-08-08 11:08:50 +0200 |
commit | 106ee901bbbaab588b86fc6008debc82a5ca9b73 (patch) | |
tree | b2c2d6e038ea6a82f87186161deda2168f51fec9 /include/glibtop | |
parent | 0642c2d610d19097a9bd83f20f5ad53e2a63035f (diff) | |
download | libgtop-106ee901bbbaab588b86fc6008debc82a5ca9b73.tar.gz |
Add missing file.
Diffstat (limited to 'include/glibtop')
-rw-r--r-- | include/glibtop/machine.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/glibtop/machine.h b/include/glibtop/machine.h new file mode 100644 index 00000000..1321702e --- /dev/null +++ b/include/glibtop/machine.h @@ -0,0 +1,22 @@ +#ifndef GLIBTOP_SYSDEPS_COMMON_MACHINE_H_1437506041 +#define GLIBTOP_SYSDEPS_COMMON_MACHINE_H_1437506041 + +#include <glib.h> +#include <glibtop_machine.h> + +/* private */ +static inline void +glibtop_machine_new(glibtop *server) +{ + server->machine = g_new0(glibtop_machine, 1); +} + +/* private */ +static inline void +glibtop_machine_delete(glibtop *server) +{ + g_free(server->machine); + server->machine = NULL; +} + +#endif /* GLIBTOP_SYSDEPS_COMMON_MACHINE_H_1437506041 */ |