summaryrefslogtreecommitdiffstats
path: root/src/blogc/sysinfo.h
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2019-02-03 14:49:20 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2019-02-03 14:49:20 +0100
commitadca120fdf42d8285d10173d584abec6a08ab1fc (patch)
tree04a2b29ee93b520f81ed9aebd29345fe0f84a380 /src/blogc/sysinfo.h
parent8a749d44699853f1df894443065dbf794264c8fa (diff)
downloadblogc-adca120fdf42d8285d10173d584abec6a08ab1fc.tar.gz
blogc-adca120fdf42d8285d10173d584abec6a08ab1fc.tar.bz2
blogc-adca120fdf42d8285d10173d584abec6a08ab1fc.zip
blogc: added datetime template variable
Diffstat (limited to 'src/blogc/sysinfo.h')
-rw-r--r--src/blogc/sysinfo.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/blogc/sysinfo.h b/src/blogc/sysinfo.h
index 0104911..f26662a 100644
--- a/src/blogc/sysinfo.h
+++ b/src/blogc/sysinfo.h
@@ -19,9 +19,15 @@
#endif /* HAVE_GETHOSTNAME */
#endif /* HAVE_UNISTD_H */
+#ifdef HAVE_TIME_H
+#define HAVE_SYSINFO_DATETIME 1
+#endif /* HAVE_TIME_H */
+
#include "../common/utils.h"
char* blogc_sysinfo_get_hostname(void);
void blogc_sysinfo_inject_hostname(bc_trie_t *global);
+char* blogc_sysinfo_get_datetime(void);
+void blogc_sysinfo_inject_datetime(bc_trie_t *global);
#endif /* ___SYSINFO_H */