summaryrefslogtreecommitdiffstats
path: root/siplib/siplib.c
diff options
context:
space:
mode:
Diffstat (limited to 'siplib/siplib.c')
-rw-r--r--siplib/siplib.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/siplib/siplib.c b/siplib/siplib.c
index 2e0a5d5..1c460c4 100644
--- a/siplib/siplib.c
+++ b/siplib/siplib.c
@@ -307,6 +307,7 @@ static const sipAPIDef sip_api = {
sip_api_register_attribute_getter,
sip_api_is_api_enabled,
sip_api_bad_callable_arg,
+ sip_api_get_address,
/*
* The following are deprecated parts of the public API.
*/
@@ -901,7 +902,7 @@ static PyObject *dumpWrapper(PyObject *self, PyObject *args)
#else
printf(" Reference count: %d\n", Py_REFCNT(sw));
#endif
- printf(" Address of wrapped object: %p\n", sipGetAddress(sw));
+ printf(" Address of wrapped object: %p\n", sip_api_get_address(sw));
printf(" To be destroyed by: %s\n", (sipIsPyOwned(sw) ? "Python" : "C/C++"));
printf(" Derived class?: %s\n", (sipIsDerived(sw) ? "yes" : "no"));
@@ -1071,7 +1072,7 @@ static PyObject *isDeleted(PyObject *self, PyObject *args)
if (!PyArg_ParseTuple(args, "O!:isdeleted", &sipSimpleWrapper_Type, &sw))
return NULL;
- res = (sipGetAddress(sw) == NULL ? Py_True : Py_False);
+ res = (sip_api_get_address(sw) == NULL ? Py_True : Py_False);
Py_INCREF(res);
return res;
@@ -7369,7 +7370,7 @@ static PyObject *sip_api_get_pyobject(void *cppPtr, const sipTypeDef *td)
/*
* Return the C/C++ pointer from a wrapper without any checks.
*/
-void *sipGetAddress(sipSimpleWrapper *sw)
+void *sip_api_get_address(sipSimpleWrapper *sw)
{
if (sipIsAccessFunc(sw))
return (*sw->u.afPtr)();
@@ -7416,7 +7417,7 @@ static void *getComplexCppPtr(sipSimpleWrapper *sw, const sipTypeDef *td)
*/
void *sip_api_get_cpp_ptr(sipSimpleWrapper *sw, const sipTypeDef *td)
{
- void *ptr = sipGetAddress(sw);
+ void *ptr = sip_api_get_address(sw);
if (checkPointer(ptr, sw) < 0)
return NULL;
@@ -9213,7 +9214,7 @@ static int sipWrapper_clear(sipWrapper *self)
/* Remove any slots connected via a proxy. */
if (sipTQtSupport != NULL && sipPossibleProxy(sw))
{
- void *tx = sipGetAddress(sw);
+ void *tx = sip_api_get_address(sw);
if (tx != NULL)
{
@@ -9281,7 +9282,7 @@ static int sipWrapper_traverse(sipWrapper *self, visitproc visit, void *arg)
/* This should be handwritten code in PyTQt. */
if (sipTQtSupport != NULL)
{
- void *tx = sipGetAddress(sw);
+ void *tx = sip_api_get_address(sw);
if (tx != NULL)
{