diff options
| author | Byron Nikolaidis <byronn@insightdist.com> | 1998-06-08 16:15:12 +0000 |
|---|---|---|
| committer | Byron Nikolaidis <byronn@insightdist.com> | 1998-06-08 16:15:12 +0000 |
| commit | 0e708e595ebad1774df0ef7ff45f995955f762ee (patch) | |
| tree | 9912b323b0e801b162a7ac2e3b394aea56de0c02 /src/interfaces/odbc/lobj.h | |
| parent | 556e603b257df487106eff829a8a4040b0d7aca4 (diff) | |
Update driver to official 6.30.0244 release.
Diffstat (limited to 'src/interfaces/odbc/lobj.h')
| -rw-r--r-- | src/interfaces/odbc/lobj.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/interfaces/odbc/lobj.h b/src/interfaces/odbc/lobj.h new file mode 100644 index 00000000000..b5ff7e37420 --- /dev/null +++ b/src/interfaces/odbc/lobj.h @@ -0,0 +1,48 @@ + +/* File: lobj.h + * + * Description: See "lobj.c" + * + * Comments: See "notice.txt" for copyright and license information. + * + */ + +#ifndef __LOBJ_H__ +#define __LOBJ_H__ + + +#include "psqlodbc.h" + +typedef struct lo_arg { + int isint; + int len; + union + { + int integer; + char *ptr; + } u; +}; + +#define LO_CREAT 957 +#define LO_OPEN 952 +#define LO_CLOSE 953 +#define LO_READ 954 +#define LO_WRITE 955 +#define LO_LSEEK 956 +#define LO_TELL 958 +#define LO_UNLINK 964 + +#define INV_WRITE 0x00020000 +#define INV_READ 0x00040000 + +Oid lo_creat(ConnectionClass *conn, int mode); +int lo_open(ConnectionClass *conn, int lobjId, int mode); +int lo_close(ConnectionClass *conn, int fd); +int lo_read(ConnectionClass *conn, int fd, char *buf, int len); +int lo_write(ConnectionClass *conn, int fd, char *buf, int len); +int lo_lseek(ConnectionClass *conn, int fd, int offset, int len); +int lo_tell(ConnectionClass *conn, int fd); +int lo_unlink(ConnectionClass *conn, Oid lobjId); + +#endif + |
