summaryrefslogtreecommitdiff
path: root/psycopg/lobject.h
diff options
context:
space:
mode:
authorFederico Di Gregorio <fog@initd.org>2006-09-02 04:57:50 +0000
committerFederico Di Gregorio <fog@initd.org>2006-09-02 04:57:50 +0000
commit64bd7ae61cd1d71888a594cb3d1fc3c647a4baa3 (patch)
treebbfbbbef6c58f36cd8def34891b31f5ec40c3d11 /psycopg/lobject.h
parent36785f753b49e56bd3c1f72a17cc3b7e67dbe416 (diff)
downloadpsycopg2-64bd7ae61cd1d71888a594cb3d1fc3c647a4baa3.tar.gz
Large objects landing..
Diffstat (limited to 'psycopg/lobject.h')
-rw-r--r--psycopg/lobject.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/psycopg/lobject.h b/psycopg/lobject.h
index e1fed7d..76c5cfb 100644
--- a/psycopg/lobject.h
+++ b/psycopg/lobject.h
@@ -51,8 +51,17 @@ typedef struct {
extern int lobject_open(lobjectObject *self, connectionObject *conn,
Oid oid, int mode, Oid new_oid, char *new_file);
+extern int lobject_unlink(lobjectObject *self);
+extern int lobject_export(lobjectObject *self, char *filename);
+
+extern size_t lobject_read(lobjectObject *self, char *buf, size_t len);
+extern size_t lobject_write(lobjectObject *self, char *buf, size_t len);
+extern int lobject_seek(lobjectObject *self, int pos, int whence);
+extern int lobject_tell(lobjectObject *self);
+extern void lobject_close(lobjectObject *self);
/* exception-raising macros */
+
#define EXC_IF_LOBJ_CLOSED(self) \
if ((self)->closed || ((self)->conn && (self)->conn->closed)) { \
PyErr_SetString(InterfaceError, "lobject already closed"); \