summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-08-25 19:24:00 +0200
committerHarald Welte <laforge@gnumonks.org>2010-08-25 19:24:00 +0200
commit72d0c536e9581a54ff9b6c9d66ce9af29256aeb6 (patch)
tree9a6bfb7e9aa9822c53512ad8e8a52c75148398d4
parent3086c394de1ddae3ca1bf2e8c315b235a4c70321 (diff)
logging: add missing include file changes for last commit (logfile)
-rw-r--r--include/osmocore/logging.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/osmocore/logging.h b/include/osmocore/logging.h
index 70e8f149..7f33155a 100644
--- a/include/osmocore/logging.h
+++ b/include/osmocore/logging.h
@@ -84,6 +84,7 @@ struct log_target {
union {
struct {
FILE *out;
+ const char *fname;
} tgt_file;
struct {
@@ -123,7 +124,11 @@ void log_set_category_filter(struct log_target *target, int category,
/* management of the targets */
struct log_target *log_target_create(void);
+void log_target_destroy(struct log_target *target);
struct log_target *log_target_create_stderr(void);
+struct log_target *log_target_create_file(const char *fname);
+int log_target_file_reopen(struct log_target *tgt);
+
void log_add_target(struct log_target *target);
void log_del_target(struct log_target *target);