[libgtop] Add missing file.



commit 106ee901bbbaab588b86fc6008debc82a5ca9b73
Author: Benoit Dejean <bdejean gmail com>
Date:   Tue Jul 21 23:45:19 2015 +0200

    Add missing file.

 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 0000000..1321702
--- /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 */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]