aboutsummaryrefslogtreecommitdiff
path: root/include/log.h
diff options
context:
space:
mode:
authordacctal <donotcontactmevia@email.invalid>2026-07-01 11:08:21 +0000
committerdacctal <donotcontactmevia@email.invalid>2026-07-01 11:08:21 +0000
commitfe3caeefac7a2081f5c9db90bf5c821624a71082 (patch)
treed954657fe8f8ed8b28404739f33685ad0f0ae0fd /include/log.h
parent166b788d61a443a1576f8b56abdf06fea5a2178e (diff)
checkpoint!
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