summaryrefslogtreecommitdiff
path: root/src/logerr.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/logerr.h')
-rw-r--r--src/logerr.h25
1 files changed, 23 insertions, 2 deletions
diff --git a/src/logerr.h b/src/logerr.h
index 736da7a..346989d 100644
--- a/src/logerr.h
+++ b/src/logerr.h
@@ -1,10 +1,19 @@
-#define logerr(...) vlogerr(__FILE__, __func__, __LINE__, stderr, __VA_ARGS__)
+#define logerr(...) logerrf(__FILE__, __func__, __LINE__, __VA_ARGS__)
void
-vlogerr(
+vflogerrf(
+ const char *const file,
+ const char *const function,
+ const int lineno,
+ FILE *restrict stream,
+ const char *restrict format,
+ va_list args
+);
+void
+flogerrf(
const char *const file,
const char *const function,
const int lineno,
@@ -12,3 +21,15 @@ vlogerr(
const char *restrict format,
...
);
+
+void
+logerrf(
+ const char *const file,
+ const char *const function,
+ const int lineno,
+ const char *restrict format,
+ ...
+);
+
+void
+logerr_set_stream(FILE *stream);