Add a new convenience routine pb_log_get_stream() that returns the
current PB_log stream. Used to setup the ps3-utils library to log
to the pb_log.
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
+FILE * pb_log_get_stream(void)
+{
+ return logf;
+}
+
void pb_log_always_flush(int state)
{
always_flush = state;
void pb_log_always_flush(int state)
{
always_flush = state;
void pb_log(const char *fmt, ...);
void pb_log_set_stream(FILE *stream);
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 */
void pb_log_always_flush(int state);
#endif /* _LOG_H */