git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
follow language list changes
[enigma2.git]
/
lib
/
base
/
nconfig.cpp
diff --git
a/lib/base/nconfig.cpp
b/lib/base/nconfig.cpp
index 562b3503c838d5704e12179611ef7598c31dfb4a..31b0a36f1d007b0293ad78a72534d786a25ca74c 100644
(file)
--- a/
lib/base/nconfig.cpp
+++ b/
lib/base/nconfig.cpp
@@
-1,9
+1,9
@@
#include <lib/base/nconfig.h>
#include <lib/base/nconfig.h>
-#include <
P
ython.h>
+#include <
lib/python/p
ython.h>
-
PyObject *
ePythonConfigQuery::m_queryFunc;
+
ePyObject
ePythonConfigQuery::m_queryFunc;
-void ePythonConfigQuery::setQueryFunc(
PyObject *
queryFunc)
+void ePythonConfigQuery::setQueryFunc(
ePyObject
queryFunc)
{
if (m_queryFunc)
Py_DECREF(m_queryFunc);
{
if (m_queryFunc)
Py_DECREF(m_queryFunc);
@@
-16,9
+16,9
@@
RESULT ePythonConfigQuery::getConfigValue(const char *key, std::string &value)
{
if (key && PyCallable_Check(m_queryFunc))
{
{
if (key && PyCallable_Check(m_queryFunc))
{
-
PyObject *
pArgs = PyTuple_New(1);
+
ePyObject
pArgs = PyTuple_New(1);
PyTuple_SET_ITEM(pArgs, 0, PyString_FromString(key));
PyTuple_SET_ITEM(pArgs, 0, PyString_FromString(key));
-
PyObject *
pRet = PyObject_CallObject(m_queryFunc, pArgs);
+
ePyObject
pRet = PyObject_CallObject(m_queryFunc, pArgs);
Py_DECREF(pArgs);
if (pRet)
{
Py_DECREF(pArgs);
if (pRet)
{