aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc/sysinfo.h
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2019-02-03 13:33:09 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2019-02-03 13:33:09 +0100
commitf0725f2db0e34488f5f269cdb442c50458263cf6 (patch)
tree9de89805faf542c80ddfc25512070cc367e1e1a0 /src/blogc/sysinfo.h
parent0b5ff9516f6ffda69b779a560d01c1a2dfb5e825 (diff)
downloadblogc-f0725f2db0e34488f5f269cdb442c50458263cf6.tar.gz
blogc-f0725f2db0e34488f5f269cdb442c50458263cf6.tar.bz2
blogc-f0725f2db0e34488f5f269cdb442c50458263cf6.zip
blogc: added hostmane template variable
Diffstat (limited to 'src/blogc/sysinfo.h')
-rw-r--r--src/blogc/sysinfo.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/blogc/sysinfo.h b/src/blogc/sysinfo.h
new file mode 100644
index 0000000..51640e0
--- /dev/null
+++ b/src/blogc/sysinfo.h
@@ -0,0 +1,25 @@
+/*
+ * blogc: A blog compiler.
+ * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+ *
+ * This program can be distributed under the terms of the BSD License.
+ * See the file LICENSE.
+ */
+
+#ifndef ___SYSINFO_H
+#define ___SYSINFO_H
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif /* HAVE_CONFIG_H */
+
+#ifdef HAVE_UNISTD_H
+#define HAVE_SYSINFO_HOSTNAME 1
+#endif /* HAVE_UNISTD_H */
+
+#include "../common/utils.h"
+
+char* blogc_sysinfo_get_hostname(void);
+void blogc_sysinfo_inject_hostname(bc_trie_t *global);
+
+#endif /* ___SYSINFO_H */