From f526c4a5a3e4f35bb1c4b03af1f3244a8c0db48a Mon Sep 17 00:00:00 2001 From: Vasilii Chernov Date: Thu, 11 Feb 2016 12:00:54 +0100 Subject: Change error logging method in Python wrap. Move functions, that converts values between PyObject and pcilib_value_t to py.c --- pcilib/error.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'pcilib/error.c') 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; +} + -- cgit v1.2.3