diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-05-09 15:44:42 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-05-09 15:44:42 +0000 |
| commit | 5ecd4e3f3035d831a8c7581401651911234c2d92 (patch) | |
| tree | c98777df0f58820d482e8c1be94c84bbbcf764d3 /src/include/libpq/pqformat.h | |
| parent | 4207d6bf300538d4dde2d26b81cbe5deb5473447 (diff) | |
| download | postgresql-5ecd4e3f3035d831a8c7581401651911234c2d92.tar.gz | |
Binary send/receive routines for a few basic datatypes --- enough for
testing purposes.
Diffstat (limited to 'src/include/libpq/pqformat.h')
| -rw-r--r-- | src/include/libpq/pqformat.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/include/libpq/pqformat.h b/src/include/libpq/pqformat.h index 7167c6d63a..bbeff288c4 100644 --- a/src/include/libpq/pqformat.h +++ b/src/include/libpq/pqformat.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: pqformat.h,v 1.16 2003/05/08 18:16:37 tgl Exp $ + * $Id: pqformat.h,v 1.17 2003/05/09 15:44:42 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -20,17 +20,24 @@ extern void pq_sendbyte(StringInfo buf, int byt); extern void pq_sendbytes(StringInfo buf, const char *data, int datalen); extern void pq_sendcountedtext(StringInfo buf, const char *str, int slen, bool countincludesself); +extern void pq_sendtext(StringInfo buf, const char *str, int slen); extern void pq_sendstring(StringInfo buf, const char *str); extern void pq_sendint(StringInfo buf, int i, int b); +extern void pq_sendint64(StringInfo buf, int64 i); extern void pq_endmessage(StringInfo buf); +extern void pq_begintypsend(StringInfo buf); +extern bytea *pq_endtypsend(StringInfo buf); + extern void pq_puttextmessage(char msgtype, const char *str); extern void pq_putemptymessage(char msgtype); extern int pq_getmsgbyte(StringInfo msg); extern unsigned int pq_getmsgint(StringInfo msg, int b); +extern int64 pq_getmsgint64(StringInfo msg); extern const char *pq_getmsgbytes(StringInfo msg, int datalen); extern void pq_copymsgbytes(StringInfo msg, char *buf, int datalen); +extern char *pq_getmsgtext(StringInfo msg, int rawbytes, int *nbytes); extern const char *pq_getmsgstring(StringInfo msg); extern void pq_getmsgend(StringInfo msg); |
