aboutsummaryrefslogtreecommitdiff
path: root/include/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/log.h')
-rw-r--r--include/log.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/log.h b/include/log.h
new file mode 100644
index 0000000..5b275cc
--- /dev/null
+++ b/include/log.h
@@ -0,0 +1,17 @@
+#ifndef PKGIT_LOG_H
+#define PKGIT_LOG_H
+
+// XXX: im lazy.
+#define PKGIT_PREFIX_PKGIT PKGIT_PREFIX
+#define LOG_FUNCTIONS \
+ X(error, ERROR) \
+ X(warn, WARNING) \
+ X(info, INFO) \
+ X(success, SUCCESS) \
+ X(pkgit, PKGIT)
+
+#endif
+
+#define X(n, N) void log_##n(const char *format, ...);
+LOG_FUNCTIONS
+#undef X