diff options
Diffstat (limited to 'Modules/_sqlite/module.h')
-rw-r--r-- | Modules/_sqlite/module.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Modules/_sqlite/module.h b/Modules/_sqlite/module.h index a40e86e..3f29035 100644 --- a/Modules/_sqlite/module.h +++ b/Modules/_sqlite/module.h @@ -31,9 +31,20 @@ typedef struct { PyObject *lru_cache; + PyTypeObject *ConnectionType; + PyTypeObject *CursorType; + PyTypeObject *PrepareProtocolType; + PyTypeObject *RowType; + PyTypeObject *StatementType; } pysqlite_state; -extern pysqlite_state *pysqlite_get_state(PyObject *module); +extern pysqlite_state pysqlite_global_state; + +static inline pysqlite_state * +pysqlite_get_state(PyObject *Py_UNUSED(module)) +{ + return &pysqlite_global_state; +} extern PyObject* pysqlite_Error; extern PyObject* pysqlite_Warning; |