summaryrefslogtreecommitdiffstats
path: root/pcilib/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'pcilib/error.c')
-rw-r--r--pcilib/error.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/pcilib/error.c b/pcilib/error.c
index 06af292..ae8bacb 100644
--- a/pcilib/error.c
+++ b/pcilib/error.c
@@ -76,3 +76,15 @@ int pcilib_set_logger(pcilib_log_priority_t min_prio, pcilib_logger_t logger, vo
return 0;
}
+
+pcilib_logger_t pcilib_get_logger() {
+ return pcilib_logger;
+}
+
+pcilib_log_priority_t pcilib_get_log_level() {
+ return pcilib_logger_min_prio;
+}
+
+void* pcilib_get_logger_context() {
+ return pcilib_logger_argument;
+}