aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/core/logging.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-04-20 10:41:27 +0200
committerHarald Welte <laforge@gnumonks.org>2016-05-05 18:49:22 +0200
commit69e6c3c7cdaeabbe31f66fffe9606cb6ee2ec8ee (patch)
treefcd391571c6ba74faba4df043bd1cf8e6413b679 /include/osmocom/core/logging.h
parentcd9cb90f452ed83a3df0bf9d136aea19186c7f7b (diff)
Add log_fini() function to release all memory allocated by logging framework
This is e.g. quite useful to call at the end of test code, in order to show that all memory allocated actually is released before exit().
Diffstat (limited to 'include/osmocom/core/logging.h')
-rw-r--r--include/osmocom/core/logging.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmocom/core/logging.h b/include/osmocom/core/logging.h
index e51487b5..31934111 100644
--- a/include/osmocom/core/logging.h
+++ b/include/osmocom/core/logging.h
@@ -214,6 +214,7 @@ void logp2(int subsys, unsigned int level, const char *file,
int line, int cont, const char *format, ...)
__attribute__ ((format (printf, 6, 7)));
int log_init(const struct log_info *inf, void *talloc_ctx);
+void log_fini(void);
int log_check_level(int subsys, unsigned int level);
/* context management */