From f526c4a5a3e4f35bb1c4b03af1f3244a8c0db48a Mon Sep 17 00:00:00 2001
From: Vasilii Chernov <vchernov@inr.ru>
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


From 3269dce32883e14b45cc490a0cc0037b4c808a68 Mon Sep 17 00:00:00 2001
From: Vasilii Chernov <vchernov@inr.ru>
Date: Wed, 17 Feb 2016 11:01:22 +0100
Subject: 1. Add cmake BUILD_PYTHON_MODULES option. 2. Rename log options
 getting functions. 3. py:    - pcilib_init_py() - extract
 pcilib_py_add_script_dir()    - pcilib_py_init_script() - extract
 view-specialized code to      pcilib_py_get_transform_script_properties() 3.
 pcilib_open():    - move pcilib_init_py() to previous position.    - add
 extract pcilib_py_add_script_dir() 4. pcilib_script_s - change hash key. Now
 it is (const char*) and contains    script file name with extension 5.
 pcipywrap:    - Add pcipywrap.h to remove swig generated file complile
 warnings    - remove -includeall swig flag to prevent crash in multi-thread
 scripts    - change set python expetion mechanic

---
 pcilib/error.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'pcilib/error.c')

diff --git a/pcilib/error.c b/pcilib/error.c
index 87380e7..a2e5a04 100644
--- a/pcilib/error.c
+++ b/pcilib/error.c
@@ -80,10 +80,10 @@ int pcilib_set_logger(pcilib_log_priority_t min_prio, pcilib_logger_t logger, vo
 pcilib_logger_t pcilib_get_logger() {
     return pcilib_logger;
 }
-pcilib_log_priority_t pcilib_get_logger_min_prio() {
+pcilib_log_priority_t pcilib_get_log_level() {
 	return pcilib_logger_min_prio;
 }
-void* pcilib_get_logger_argument() {
+void* pcilib_get_logger_context() {
 	return pcilib_logger_argument;
 }
 
-- 
cgit v1.2.3