summaryrefslogtreecommitdiffstats
path: root/pcilib/error.c
diff options
context:
space:
mode:
authorVasilii Chernov <vchernov@inr.ru>2016-02-11 12:00:54 +0100
committerVasilii Chernov <vchernov@inr.ru>2016-02-11 12:00:54 +0100
commitf526c4a5a3e4f35bb1c4b03af1f3244a8c0db48a (patch)
treea818ed42d630e807e9886767e326c8970a77c78d /pcilib/error.c
parentd9a31945a92a76e590657dc2e65bb20b6ea95d90 (diff)
downloadpcitool-f526c4a5a3e4f35bb1c4b03af1f3244a8c0db48a.tar.gz
pcitool-f526c4a5a3e4f35bb1c4b03af1f3244a8c0db48a.tar.bz2
pcitool-f526c4a5a3e4f35bb1c4b03af1f3244a8c0db48a.tar.xz
pcitool-f526c4a5a3e4f35bb1c4b03af1f3244a8c0db48a.zip
Change error logging method in Python wrap. Move functions, that converts values between PyObject and pcilib_value_t to py.c
Diffstat (limited to 'pcilib/error.c')
-rw-r--r--pcilib/error.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/pcilib/error.c b/pcilib/error.c
index 06af292..87380e7 100644
--- a/pcilib/error.c
+++ b/pcilib/error.c
@@ -76,3 +76,14 @@ 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_logger_min_prio() {
+ return pcilib_logger_min_prio;
+}
+void* pcilib_get_logger_argument() {
+ return pcilib_logger_argument;
+}
+