summaryrefslogtreecommitdiff
path: root/include/glibtop
diff options
context:
space:
mode:
authorBenoit Dejean <bdejean@gmail.com>2015-07-21 23:45:19 +0200
committerBenoƮt Dejean <bdejean@gmail.com>2015-08-08 11:08:50 +0200
commit106ee901bbbaab588b86fc6008debc82a5ca9b73 (patch)
treeb2c2d6e038ea6a82f87186161deda2168f51fec9 /include/glibtop
parent0642c2d610d19097a9bd83f20f5ad53e2a63035f (diff)
downloadlibgtop-106ee901bbbaab588b86fc6008debc82a5ca9b73.tar.gz
Add missing file.
Diffstat (limited to 'include/glibtop')
-rw-r--r--include/glibtop/machine.h22
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 */