summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/log/log.c5
-rw-r--r--lib/log/log.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/log/log.c b/lib/log/log.c
index 41b44cc..697af6c 100644
--- a/lib/log/log.c
+++ b/lib/log/log.c
@@ -27,6 +27,11 @@ void pb_log_set_stream(FILE *stream)
logf = stream;
}
+FILE * pb_log_get_stream(void)
+{
+ return logf;
+}
+
void pb_log_always_flush(int state)
{
always_flush = state;
diff --git a/lib/log/log.h b/lib/log/log.h
index 813a19e..2a5d375 100644
--- a/lib/log/log.h
+++ b/lib/log/log.h
@@ -5,6 +5,7 @@
void pb_log(const char *fmt, ...);
void pb_log_set_stream(FILE *stream);
+FILE * pb_log_get_stream(void);
void pb_log_always_flush(int state);
#endif /* _LOG_H */
OpenPOWER on IntegriCloud