~martin-sucha/helenos/testing

« back to all changes in this revision

Viewing changes to uspace/lib/c/include/io/logctl.h

  • Committer: Martin Sucha
  • Date: 2013-04-25 17:59:50 UTC
  • Revision ID: sucha14@uniba.sk-20130425175950-wp5b51hvfwmw6zo2
Fix log_sink_t missing _t at the end and expose function to control another logger.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
#define LIBC_IO_LOGCTL_H_
35
35
 
36
36
#include <io/log.h>
 
37
#include <async.h>
37
38
 
38
 
typedef void (*log_sink)(const char *log_name, log_level_t, const char *msg);
 
39
typedef void (*log_sink_t)(const char *log_name, log_level_t, const char *msg);
39
40
 
40
41
extern int logctl_set_default_level(log_level_t);
41
42
extern int logctl_set_log_level(const char *, log_level_t);
42
 
extern int logctl_register_sink(log_sink);
 
43
extern int logctl_register_sink(log_sink_t);
 
44
extern int logctl_exch_register_sink(async_exch_t *, log_sink_t);
43
45
 
44
46
#endif
45
47