diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2017-06-22 14:54:19 +0200 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2017-06-22 14:54:19 +0200 |
commit | df0fd496fbc7dfcf468f72881e81ef6424fe39fd (patch) | |
tree | 24fb915bb70e01ddf7146eb83f5910538e80c1df /src/blob.h | |
parent | f12586c0fa5c8a877b4a6538d9ebb0c0a1a33745 (diff) | |
parent | f472f1a6382abc698f74a1afbb07b2274b3a3d45 (diff) |
merge master
Diffstat (limited to 'src/blob.h')
-rw-r--r-- | src/blob.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/blob.h b/src/blob.h new file mode 100644 index 0000000..faaef64 --- /dev/null +++ b/src/blob.h @@ -0,0 +1,24 @@ +#ifndef PYSQLITE_BLOB_H +#define PYSQLITE_BLOB_H +#include "Python.h" +#include "sqlite3.h" +#include "connection.h" + +typedef struct +{ + PyObject_HEAD + pysqlite_Connection* connection; + sqlite3_blob *blob; + unsigned int offset; + + PyObject* in_weakreflist; /* List of weak references */ +} pysqlite_Blob; + +extern PyTypeObject pysqlite_BlobType; + +int pysqlite_blob_init(pysqlite_Blob* self, pysqlite_Connection* connection, sqlite3_blob *blob); +PyObject* pysqlite_blob_close(pysqlite_Blob *self); + +int pysqlite_blob_setup_types(void); + +#endif |