aboutsummaryrefslogtreecommitdiffstats
path: root/pingu_host.h
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-09-09 13:32:12 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2011-09-09 13:32:12 +0200
commite7828c0ba51dc8819cb00de378828ef549d1f190 (patch)
tree76e5fbc044e9974d176ecc6056d37bb946370da7 /pingu_host.h
parente148ba2db8e2b2e38c5e4f8ec672de74f72fcf6d (diff)
downloadpingu-e7828c0ba51dc8819cb00de378828ef549d1f190.tar.bz2
pingu-e7828c0ba51dc8819cb00de378828ef549d1f190.tar.xz
pingu_host: cleanup. use constant to indicate host online/offline
This is to make code cleaner and easier to read.
Diffstat (limited to 'pingu_host.h')
-rw-r--r--pingu_host.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/pingu_host.h b/pingu_host.h
index 80a1f53..78afbaf 100644
--- a/pingu_host.h
+++ b/pingu_host.h
@@ -5,6 +5,12 @@
#include "pingu_burst.h"
+#define PINGU_HOST_STATUS_OFFLINE 0
+#define PINGU_HOST_STATUS_ONLINE 1
+
+/* consider online by default */
+#define PINGU_HOST_DEFAULT_STATUS PINGU_HOST_STATUS_ONLINE
+
struct pingu_host {
struct list_head host_list_entry;
char *host;