aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/libpyside/pysideclassinfo.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-01-27 14:38:43 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2022-02-09 07:34:13 +0100
commit383e0bfc56e39d5f097e7957f986eb60e8052831 (patch)
treeb4ebc641285fce121ec471ba5fa4dd6783f701bd /sources/pyside6/libpyside/pysideclassinfo.h
parentc69b51fc296e484c30582d5d2fdaf40619cc43fe (diff)
libpyside: Factor out helpers for class decorators with parameters
Class decorators with parameters (as opposed to parameterless decorators which are simple functions) requires Python types with call operators to be registered. Add Decorator C struct with a pointer to a class derived from DecoratorPrivate that has virtual functions for the tp_init()/tp_call() functions. Provide templates that help to create the slot arrays for the type registration. Provide predefined types for decorators with string/type parameters. Task-number: PYSIDE-1709 Change-Id: I2946b4505c01b49532af534adcedff7a51634929 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside6/libpyside/pysideclassinfo.h')
-rw-r--r--sources/pyside6/libpyside/pysideclassinfo.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/sources/pyside6/libpyside/pysideclassinfo.h b/sources/pyside6/libpyside/pysideclassinfo.h
index 427719bd1..ec698ecc5 100644
--- a/sources/pyside6/libpyside/pysideclassinfo.h
+++ b/sources/pyside6/libpyside/pysideclassinfo.h
@@ -47,22 +47,10 @@
#include <QtCore/QMap>
#include <QtCore/QByteArray>
-extern "C"
-{
- extern PYSIDE_API PyTypeObject *PySideClassInfo_TypeF(void);
-
- struct PySideClassInfoPrivate;
- struct PYSIDE_API PySideClassInfo
- {
- PyObject_HEAD
- PySideClassInfoPrivate* d;
- };
-};
-
namespace PySide { namespace ClassInfo {
PYSIDE_API bool checkType(PyObject* pyObj);
-PYSIDE_API QMap<QByteArray, QByteArray> getMap(PySideClassInfo* obj);
+PYSIDE_API QMap<QByteArray, QByteArray> getMap(PyObject *obj);
} //namespace ClassInfo
} //namespace PySide